11.01.2010, 13:26
Pretty obvious problem.
pawn Код:
public StatsInfromation(playerid)
{
new str[256];//--Should be here
for(new i=0;i<MAX_PLAYERS;i++)
{
if (IsPlayerConnected(i))
{
//new str[256]; --Shouldn't be here
//TextDrawHideForPlayer(i,LVL); -- Not Needed
format(str, sizeof(str), "~r~Lygis:~w~ %d~n~~r~ EXP: ~w~%d/800" ,PlayerData[i][Lygis],PlayerData[i][exp] = GetPlayerScore(i)); //You were using PlayerData[playerid], it should have been PlayerData[i]
TextDrawSetString(LVL[playerid],str);
//TextDrawShowForPlayer(i,LVL[playerid] ); -- Not Needed
}
}
return 1;
}