05.07.2011, 02:45
Okay Well Heres My Admin SKins Script.That is getting the Error.
And here are the errors
Код:
public OnPlayerRequestClass(playerid, classid) { SetupPlayerForClassSelection(playerid); new classid = GetPlayerSkin(playerid); if(classid == 117) { if(IsPlayerAdmin(playerid)) { return 1; SendClientMessage(playerid, RED, "Welcome Admin"); } else { GameTextForPlayer(playerid, "You aren't an admin!", 5000, 5); return 0; } } return 1;
Код:
C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\gamemodes\FreeRoam.pwn(383) : warning 219: local variable "classid" shadows a variable at a preceding level C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\gamemodes\FreeRoam.pwn(389) : warning 225: unreachable code