#8

bool is good if you need a variabile to check it if is 1 or 0

e.g:
pawn Code:
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.");
}
Bool is specifed for binary base ( 0 - false ; 1 - true )

Reply


Messages In This Thread
Bool - by MB@ - 28.10.2009, 18:52
Re: Bool - by dice7 - 28.10.2009, 18:54
Re: Bool - by Correlli - 28.10.2009, 18:56
Re: Bool - by MB@ - 28.10.2009, 19:03
Re: Bool - by Sergei - 28.10.2009, 19:04
Re: Bool - by Correlli - 28.10.2009, 19:11
Re: Bool - by Sergei - 28.10.2009, 20:01
Re: Bool - by UsaBoy91 - 28.10.2009, 21:18

Forum Jump:


Users browsing this thread: 1 Guest(s)