SA-MP Forums Archive
Undefined symbols - 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)
+--- Thread: Undefined symbols (/showthread.php?tid=402586)



Undefined symbols - Windrush - 27.12.2012

pawn Код:
public Detecthp()
{
    for(new i = 0; i< MAX_PLAYERS; i++)
    {
        if(GetPlayerHealth(i) != PInfo[i][Health])
        {
            new str[128];
            new LName[MAX_PLAYER_NAME];
            GetPlayerName(playerid, LName, sizeof(LName));
            format(str, sizeof(str), "%s has been banned from the server. (Reason:Health hack)", LName);
            Kick(playerid);
        }
    }
    return 1;
}
pawn Код:
C:\Users\carlo\Desktop\SA-MP Server\My Own Trucking\pawno\include\anti-cheat.inc(55) : warning 202: number of arguments does not match definition
C:\Users\carlo\Desktop\SA-MP Server\My Own Trucking\pawno\include\anti-cheat.inc(59) : error 017: undefined symbol "playerid"
C:\Users\carlo\Desktop\SA-MP Server\My Own Trucking\pawno\include\anti-cheat.inc(61) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
whole script
http://pastebin.com/hZ372zVr


Re: Undefined symbols - DaRk_RaiN - 27.12.2012

pawn Код:
forward Detecthp();
public Detecthp()
{
    for(new i = 0; i< MAX_PLAYERS; i++)
    {
        new Float:HP;
        if(GetPlayerHealth(i,HP) != PInfo[i][Health])
        {
            new str[128];
            new LName[MAX_PLAYER_NAME];
            GetPlayerName(i, LName, sizeof(LName));
            format(str, sizeof(str), "%s has been banned from the server. (Reason:Health hack)", LName);
            Kick(i);
        }
    }
    return 1;
}



Re: Undefined symbols - Windrush - 27.12.2012

Tnx REP+