Quote:
Originally Posted by iggy1
pawn Код:
//create a global player array new bool: bIsInDM[MAX_PLAYERS];
//when you send a player to the DM (or whatever)
bIsInDM[playerid] = true;
COMMAND:leave(playerid, params[]) { if( bIsInDM[playerid] )//check if player is in DM { //player is in DM remove them bIsInDM[playerid] = false; } else { //player is not in dm } return 1; }
|
so what is the difference creating
new bool
and
new