18.05.2012, 12:44
Alright,so the title of the thread shows what is my problem.
First,I try to do an AFK script-
Than when I click on "Compile",I get this error-
...
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...
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;
}
Код:
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...