SA-MP Forums Archive
/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 037i++) PlayerTextDrawShow(playeridUPSTATS[i][playerid]); 
If you need more codes for this tell me.

EDIT: I fexed it. Instead of
PHP Code:
for(new 037i++) 
It should be
PHP Code:
for(new 052i++) 



Re: /stats - SyS - 14.06.2016

PHP Code:
for(new 037i++) PlayerTextDrawShow(playeridUPSTATS[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
View Post
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