Problem undefined symbol
#1

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.
Reply
#2

Use "i" instead of "playerid"
Reply
#3

thank you much. solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)