31.07.2010, 13:41
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.
{
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.