13.04.2011, 12:11
Hey all
How do I make a variable 50% percent to be true(or 1)?
Thx
How do I make a variable 50% percent to be true(or 1)?
Thx
if(var1 == 1) {
SendClientMessage(playerid,red,"TROLL");
} else {
SendClientMessage(playerid,red,"NOT TROLL");
}
new VaribleHere = -1; OnGamemodeInit new rand = random(100); if(rand <= 50) { VaribleHere = 1; } // True else { VaribleHere = 0 } //False
#define TRUE 2
#define MIDDLE 1
#define FALSE 0
new
variable;
switch(random(2))
{
case 0: SendClientMessage(playerid,red,"TROLL");
case 1: SendClientMessage(playerid,red,"NOT TROLL");
}