Problem with Error:017 - 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: Problem with Error:017 (
/showthread.php?tid=343656)
Problem with Error:017 -
Tom Kingston - 18.05.2012
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...
Re: Problem with Error:017 -
Tom1412 - 18.05.2012
which is line 441?
Re: Problem with Error:017 -
MP2 - 18.05.2012
The line is irrelevant. You haven't declared the PlayerInfo array/enum.
Re: Problem with Error:017 -
Tom Kingston - 18.05.2012
The line(441) is This:
Код:
if(PlayerInfo[playerid][AFK] == 1)