26.08.2010, 01:57
Hello, i got this thing and it wont compile, it shows an error.
The Error:
error 017: undefined symbol "playerid"
On code:
public StatsInfromation()
{
new string[128];
(new i=0;i<MAX_PLAYERS;i++)
{
if (IsPlayerConnected(i))
{
format(string, sizeof(string), "Kills: %d - Deaths: %d" , PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths]);
TextDrawSetString(PlayerStats[i],string);
}
}
return 1;
}
how can i fix that?
The Error:
error 017: undefined symbol "playerid"
On code:
public StatsInfromation()
{
new string[128];
(new i=0;i<MAX_PLAYERS;i++)
{
if (IsPlayerConnected(i))
{
format(string, sizeof(string), "Kills: %d - Deaths: %d" , PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths]);
TextDrawSetString(PlayerStats[i],string);
}
}
return 1;
}
how can i fix that?