28.05.2010, 16:20
Why i make this
ERROR
Код:
public OnPlayerSpawn(playerid) { if(GetPlayerSkin(playerid) == 0 && !IsPlayerAdmin(playerid)) { ForceClassSelection(playerid); SetPlayerHealth(playerid,0) public OnPlayerRequestSpawn(playerid) { if(pClass[playerid] == 2 && !IsPlayerAdmin(playerid)) { SendClientMessage(playerid,COLOR_RED,"This skin is for RCON admins only!"); return 0; } return 1; } new pClass[MAX_PLAYERS]; public OnPlayerRequestClass(playerid, classid) //Ten Public To Wybiera?ka Skina { pClass[playerid] = classid; //Save the players classid to the array to use later. return 1; };
Код:
C:\Documents and Settings\zairol\Desktop\MC Drift\gamemodes\lvdm.pwn(95) : error 017: undefined symbol "pClass" C:\Documents and Settings\zairol\Desktop\MC Drift\gamemodes\lvdm.pwn(95) : warning 215: expression has no effect C:\Documents and Settings\zairol\Desktop\MC Drift\gamemodes\lvdm.pwn(95) : error 001: expected token: ";", but found "]" C:\Documents and Settings\zairol\Desktop\MC Drift\gamemodes\lvdm.pwn(95) : error 029: invalid expression, assumed zero C:\Documents and Settings\zairol\Desktop\MC Drift\gamemodes\lvdm.pwn(95) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.