04.05.2009, 06:28
DAMNIT!
I've made2 textdraws, named:
new Text:Underline;
new Text:TextdraMoney[MAX_PLAYERS];
The Underline, will be created by OnGameModeInit. And the money, if a player connect. Both will be showed when the player spawns.The money textdraw, checks your money every second, so i've made a timer and a Forwarded callback.
In that callback, i written:
Oke, i think, that will be good. So i go ingame, look at the money, it works! And perfectly! Then, i looked at the underline... In stead of the tekst i setted, the TextDrawSetSring sets also the underline, just for one time. So in my underline is standing: $000000000, always.
But how can that? How is it possible that that TextDraw changes, but i never allowed that to do?
Hope someone can help me
I've made2 textdraws, named:
new Text:Underline;
new Text:TextdraMoney[MAX_PLAYERS];
The Underline, will be created by OnGameModeInit. And the money, if a player connect. Both will be showed when the player spawns.The money textdraw, checks your money every second, so i've made a timer and a Forwarded callback.
In that callback, i written:
pawn Код:
new PlayerMoney;
new string[256];
PlayerMoney = GetPlayerMoney(playerid);
format(string, sizeof(string), "$%09d", PlayerMoney);
TextDrawSetString(TextdrawMoney[playerid], string);
But how can that? How is it possible that that TextDraw changes, but i never allowed that to do?
Hope someone can help me
