SA-MP Forums Archive
Problem undefined symbol - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem undefined symbol (/showthread.php?tid=164466)



Problem undefined symbol - [Ha]Lommo - 31.07.2010

sStats()
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
new name[MAX_PLAYER_NAME];
new string[44];
new File:fhandle;
new temp[256];
new Score;
Score = GetPlayerScore(i);
new Float:ratio = Float:Score / FloateathCount[i];
GetPlayerName(playerid, name, sizeof(name));

fhandle = fopen("ClanStats.txt",io_append);
format(temp,sizeof(temp),"%s Kills: %d Deaths: %d Ratio: %0.2f\r\n",name,Score,DeathCount[i],ratio);
fwrite(fhandle,temp);
fclose(fhandle);
}
}
}
"error 017:undefined symbol:"playerid"

How to fix it? btw i use this clanconfig from $carface's clanbattle.


Re: Problem undefined symbol - Jakku - 31.07.2010

Use "i" instead of "playerid"


Re: Problem undefined symbol - [Ha]Lommo - 31.07.2010

thank you much. solved.