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


Messages In This Thread
Problem with Error:017 - by Tom Kingston - 18.05.2012, 12:44
Re: Problem with Error:017 - by Tom1412 - 18.05.2012, 12:48
Re: Problem with Error:017 - by MP2 - 18.05.2012, 12:49
Re: Problem with Error:017 - by Tom Kingston - 18.05.2012, 13:00

Forum Jump:


Users browsing this thread: 2 Guest(s)