Problem with Error:017
#1

Alright,so the title of the thread shows what is my problem.

First,I try to do an AFK script-

pawn Код:
CMD:afk(playerid, params[])
{
    new string[128];
    if(PlayerInfo[playerid][AFK] == 1)
    {
        SendClientMessage(playerid, COLOR_RED, "You Are Already AFK");
    }
    else if(PlayerInfo[playerid][AFK] == 0)
    {
        new pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pName, sizeof(pName));
        format(string, sizeof(string), "%s Is Now AFK", pName);
        SendClientMessageToAll(COLOR_RED, string); /pName used /afk and he is AFK now
        TogglePlayerControllable(playerid, 0);
        PlayerInfo[playerid][AFK] = 1;
    }
    return 1;
}
Than when I click on "Compile",I get this error-
Код:
C:\Documents and Settings\user\Desktop\USELESS PIZ OV SHIT!\SAMP RELEATED\GTA SAMP Server\gamemodes\Multi.pwn(441) : error 017: undefined symbol "PlayerInfo"
...

Can someone help me and tell me what I need to do? Is it a file I need to add in include(s)? Or I need a plugin or something...
Reply
#2

which is line 441?
Reply
#3

The line is irrelevant. You haven't declared the PlayerInfo array/enum.
Reply
#4

The line(441) is This:
Код:
    if(PlayerInfo[playerid][AFK] == 1)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)