Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
Ok i got a stat bar, and it works fine till about 4-5 people come in, then it starts bugging out, your armour float drops to zero. your health float stays 100, and kills and deaths dont move or end up diffrent numbers. and cash is fake number Any ideas?
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
well I can't see where you've gone wrong, seems like its getting the data from another player maybe?
Posts: 425
Threads: 13
Joined: Dec 2006
Reputation:
0
It would help if you posted the code your using..
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
so you have 1 textdraw that cycles through every player and gets the health and sets the string, for the 1 textdraw.
if you're meant to have it for every player I suggest having it Textdraw1[MAX_PLAYERS]; and Textdraw1[playerid], lessening the timer from 500ms to at least 1000ms and after you set the textdraw string use TextDrawShowForPlayer
Posts: 1,571
Threads: 49
Joined: Dec 2009
Reputation:
0
Why is the string size 128?
It should be 15.
128 -
15
___
113 (wasted cells and memory)
"Cash:999999999" has 14 characters + 1 == 15.
Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
ok i did everything, and it still bugs?
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
show the updated code then
Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
Already deleted it, all it did, was lagg the server to hell and back.