11.01.2010, 12:40
Solved

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;
}
public StatsInfromation() { new str[256]; for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { format(str, sizeof(str), "~r~Lygis:~w~ %d~n~~r~ EXP: ~w~%d/800" ,PlayerData[i][Lygis],PlayerData[i][exp] = GetPlayerScore(i)); TextDrawSetString(LVL[i],str); //TextDrawShowForPlayer(playerid,LVL[playerid]); to OnPlayerConnect } } }