28.10.2009, 18:52
Uum i'm intresed what is bool.
Some people put: new bool: And something Here?
Some people put: new bool: And something Here?
Originally Posted by $ЂЯĢ
Second example in your post about bools won't give warning because true represents 1 and false 0 anyway.
|
Originally Posted by Don Correlli
Quote:
|
new bool: a[200];
//onplayercommandtext
if(!strcmp(cmdtext,"/test",true))
{
if(a[playerid] == true) // a[playerid] or a[playerid] == true
{
SendClientMessage(playerid,COLOR_WHITE,"You are aleardy admin.");
return 1;
}
a[playerid] = 1;
SendClientMessage(playerid,COLOR_WHITE,"You are now admin.");
}