08.05.2012, 13:25
I am getting this error message ==> Undefined symbol playerid 2 times
This is my script :
This is my script :
Код:
public RobbingStores() { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerSpawned(i)) { //Drugs if(RobDrugs[i] > 1) { if (GetPlayerColor(playerid) == COLOR_WHITE || GetPlayerColor(playerid) == COLOR_PINK) { new string[250], robber[MAX_PLAYER_NAME], robtime; GetPlayerName(i, robber, sizeof(robber)); RobDrugs[i]--; robtime = (RobDrugs[i]); format(string, sizeof(string), "~w~STAY IN THE CHECKPOINT~n~~g~%d~w~ SECONDS REMAINING", robtime); GameTextForPlayer(i, string, 3000, 3); } else SendClientMessage(playerid,COLOR_ERROR,"You cannot rob !! "); }