Strange Error [help]
#1

Код:
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
I Am Receiving These Errors, Please Help me?

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);
	}
}
Reply
#2

pawn Код:
if(PlayerInfo[playerid][Warns] == 5)
This line right?
Are you sure you have that variable (PlayerInfo)?
Reply
#3

Yes, its there
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)