05.04.2009, 17:39
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]
[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]