Undefined symbol playerid..
#1

Code:

pawn Код:
public OnGameModeExit()
{
    g_bHasGameModeExited = true;
    IsPlayerAfk[playerid] = 0;
    HasNeon[playerid] = 0;
    new File[50];
    format(File, sizeof(File), PlayerFile, pName(playerid));
    new h,m,s; TotalPlayerTime(playerid, h, m, s);
    dini_IntSet(File, "Kills", PVar[playerid][pKills]);
    dini_IntSet(File, "Deaths", PVar[playerid][pDeaths]);
    dini_IntSet(File, "Level", PVar[playerid][pLevel]);
    dini_IntSet(File, "Banned", PVar[playerid][pBanned]);
    dini_IntSet(File, "Muted", PVar[playerid][pMuted]);
    dini_IntSet(File, "Jailed", PVar[playerid][pJailed]);
    dini_IntSet(File, "Warnings", PVar[playerid][pWarns]);
    dini_IntSet(File, "Hours", h);
    dini_IntSet(File, "Minutes", m);
    dini_IntSet(File, "Seconds", s);
    if(PVar[playerid][pGod] == 1)
    {
        PVar[playerid][pGod] = 0;
        KillTimer(godtimer[playerid]);
    }
    TextDrawHideForPlayer(playerid, Textdraw0);
    TextDrawHideForPlayer(playerid, Textdraw1);
    TextDrawHideForPlayer(playerid, Textdraw2);
    TextDrawHideForPlayer(playerid, Textdraw3);
    TextDrawHideForPlayer(playerid, Textdraw4);
    TextDrawHideForPlayer(playerid, Textdraw5);
    TextDrawHideForPlayer(playerid, Textdraw6);
    TextDrawHideForPlayer(playerid, Textdraw7);
    TextDrawHideForPlayer(playerid, Textdraw8);
    TextDrawHideForPlayer(playerid, Textdraw9);
    TextDrawHideForPlayer(playerid, Textdraw10);
    FirstTime[playerid] = false;
    return 1;
}
Errors:

pawn Код:
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5567) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5568) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5570) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5571) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5572) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5573) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5574) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5575) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5576) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5577) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5578) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5582) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5584) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5585) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5587) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5588) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5589) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5590) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5591) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5592) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5593) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5594) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5595) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5596) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5597) : error 017: undefined symbol "playerid"
C:\Users\iMarkx\Desktop\Server\gamemodes\XFS.pwn(5598) : error 017: undefined symbol "playerid"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Ummm WTF?
Reply
#2

You might want to put it udner OnPlayerDisconnect
or just use foreach()

pawn Код:
public OnGameModeExit()
{
    foreach(Player, playerid)
    {
        // code
    }
}
Reply
#3

Yere, you would be better chucking that under OnPlayerDisconnect.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)