06.05.2010, 07:20
I have a problem with Stats Textdraw.
This is what i use:
Also i have a timer wich updates every 5 seconds , but after it updates it shows stats of ID 0 instead of your own.
How to solve/fix this problem?
Grtz.
This is what i use:
Код:
public StatsUpdate() { new string[128]; new playerid; format(string, sizeof(string), "~r~Stats: ~n~~r~Age: ~w~ %d ~n~~r~Exp: ~w~ %d ~n~~r~Money: ~w~ %d ~n~~r~Bank: ~w~ %d ~n~~r~Drugs: ~w~ %d" , PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pExp],GetPlayerMoney(playerid),PlayerInfo[playerid][pBank],PlayerInfo[playerid][pDrugs]); TextDrawSetString(StatsTextdraw, string); TextDrawShowForPlayer(playerid,StatsTextdraw); }
How to solve/fix this problem?
Grtz.