06.07.2011, 03:28
Код:
C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(98) : error 017: undefined symbol "PlayerInfo" C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(98) : warning 215: expression has no effect C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(98) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(98) : error 029: invalid expression, assumed zero C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(98) : fatal error 107: too many error messages on one line
This is the bad script.
Код:
public OnPlayerConnect(playerid) { IsLogged[playerid] = 0; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(file, sizeof(file), "HZadmin/users/%s.ini", name); if (!dini_Exists(file)) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Hi your not registered", "Welcome, your not registered, put your registration password below.", "Register", "Leave"); } if(fexist(file)) { ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Hi your registered", "You are registered, put your password below.", "Login", "Leave"); } if(PlayerInfo[playerid][Warns] == 5) { SendClientMessage(playerid, 0xFF00CC, "Your account is blocked for max. warns(5) reached, apply on forums to unblock your account."); Kick(playerid); } }