26.04.2013, 14:08
Code:
CMD:robstore(playerid,params[]) { if(!IsPlayerInCheckpoint(playerid)) { SendClientMessage(playerid, COLOR_ERROR, "You are not in the checkpoint!"); return 1; } if(gTeam[playerid] == POLICE || gTeam[playerid] == SWAT || gTeam[playerid] == ARMY ) return SendClientMessage(playerid, COLOR_ERROR, "You cannot rob anything."); if(GetPVarInt(playerid, "RobbedRecently") > 1) return SendClientMessage(playerid, COLOR_ERROR, "You have robbed a store recently. Please wait."); new string[120]; new crand = random(100); if(checkpointid == Checkpoint[1]) { if(crand < 10) { SetPVarInt(playerid, "RobbedRecently", 65); SetGVarInt("PizzaRobbed", 60); return SendClientMessage(playerid, COLOR_ERROR, "Robbery failed."); } if(GetGVarInt("PizzaRobbed") > 1) return SendClientMessage(playerid, COLOR_ERROR, "The Well Stacked Pizza has been robbed recently."); format(string, 120, "[ROBBERY] %s has started a robbery at the Well Stacked Pizza", playerid); SendClientMessageToAll(SWAT_COLOUR, string); format(string, 120, "[DISPATCH] %s has started a robbery at the Well Stacked Pizza", playerid); SendCopMessage(string); SetPVarInt(playerid, "RobbingPizza", 15); SetPVarInt(playerid, "RobbedRecently", 120); SetGVarInt("PizzaRobbed", 120); SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+4); return 1; } return 1; }
Code:
C:\Users\****\Desktop\samp\gamemodes\boss.pwn(716) : error 017: undefined symbol "checkpointid"