/stats - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /stats (
/showthread.php?tid=609610)
/stats -
Micko123 - 14.06.2016
So i created new stats textdraw and there is one problem. When i type /stats it won't show whole player's stats only 70% of it. What could be the problem??
PHP Code:
new PlayerText:UPSTATS[52][MAX_PLAYERS];
And this is how stats is displayer for player
PHP Code:
for(new i = 0; i < 37; i++) PlayerTextDrawShow(playerid, UPSTATS[i][playerid]);
If you need more codes for this tell me.
EDIT: I fexed it. Instead of
PHP Code:
for(new i = 0; i < 37; i++)
It should be
PHP Code:
for(new i = 0; i < 52; i++)
Re: /stats -
SyS - 14.06.2016
PHP Code:
for(new i = 0; i < 37; i++) PlayerTextDrawShow(playerid, UPSTATS[i][playerid]);
there is something wrong yeah some logical error.Why are you placing i variable in length?can u show that cmd full?
Re: /stats -
Micko123 - 15.06.2016
Command works perfectly. What do you want me to show?
Re: /stats -
SyS - 15.06.2016
Quote:
Originally Posted by Micko123
Command works perfectly. What do you want me to show?
|
I know that command compiles with out any error but there is a logical error that wont give you desired pls explain that for loop to me