01.03.2014, 22:23
Hello I'm having some trouble so recently I wanted to make my own anti-cheat on my script which would ban players who would spawn a jetpack and aren't admins and I keep getting this error
this is the command
line 337:
Please help me out
Код:
(337) : warning 219: local variable "pName" shadows a variable at a preceding level
Код:
CMD:jetpack(playerid, params[]) { if(User[playerid][USER_ADMIN] >= 4) { new string[90],pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), "%s has spawned jetpack", pName); SendClientMessageToAll(-1, string); SetPlayerSpecialAction(playerid, 2); } return 1; }
Код:
new string[90],pName[MAX_PLAYER_NAME];