SA-MP Forums Archive
Strange Error [help] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Strange Error [help] (/showthread.php?tid=266779)



Strange Error [help] - HayZatic - 06.07.2011

Код:
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);
	}
}



Re: Strange Error [help] - =WoR=Varth - 06.07.2011

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


Re: Strange Error [help] - HayZatic - 06.07.2011

Yes, its there