if(player.hasbighead == true){
// means if something is true, it will do whats below here
player sayall("I try");
}
you can also use it for other things like:
if(i == 5){
self sayall("Yeh");
}
means if the i is 5, it will do something thats below.
if not.
it don't do it.
EDIT:
More: ( The IF statment)
i = 5;
if(i == 5){
self sayall("The value is 5");
}
self waittill("death");
i = 0;
if(i == 0){
self sayall("The value is now 0");
}
EDIT: more... (The ELSE statment)
i = 5;
if(i == 5){
self sayall("The value is 5");
}
else
{
self sayall("The value is not 5");
}
self waittill("death");
i = 0;
if(i == 0){
self sayall("The value is now 0");
}
else
{
self sayall("The value is not 0");
}
The else means if the IF is not right, it will do the ELSE
Nice, thanks.
Originally Posted by TechnoX
What does else mean...
You saw below?
It will do something if the IF statment is false (Not right/correct)
Edited it before you posted, your a fast guy
Originally Posted by TechnoX
Edited it before you posted, your a fast guy
Yeh, I have to try to do that.....
So you can feel you get fast answers
(But, for 3 days after today. I won't be answering here )
0 = false
1 (or higher) = true
if(self isHost() == 1) is the same as if(self isHost())
if(self isHost() == 0) is the same as if(!self isHost())