Commands says wrong command, (return 0;)
#4

Try check at first IsPlayerInCheckpoint(playerid), because getCheckpointType(playerid) could crash if player isnt in checkpoint
[code=pawn] if(!IsPlayerInCheckpoint(playerid) || (getCheckpointType(playerid) != CP_BANK)){
SendClientMessage(playerid, COLOR_RED, "* You are not in the bank (24/7 store)");
return 1;
}[/code]
Reply


Messages In This Thread
Commands says wrong command, (return 0;) - by kevinsoftware - 05.04.2009, 16:01
Re: Commands says wrong command, (return 0;) - by Burridge - 05.04.2009, 16:08
Re: Commands says wrong command, (return 0;) - by kevinsoftware - 05.04.2009, 16:46
Re: Commands says wrong command, (return 0;) - by Bardokas - 05.04.2009, 17:39

Forum Jump:


Users browsing this thread: 3 Guest(s)