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=454698)



Stats - Ananisiki - 30.07.2013

^^^^^^^^


Re: Stats - Ananisiki - 30.07.2013

^^^^^^^^


Re: Stats - ScRipTeRi - 30.07.2013

settimer in OnGameModeInit()


Re: Stats - Richie© - 30.07.2013

Quote:
Originally Posted by ScRipTeRi
Посмотреть сообщение
settimer in OnGameModeInit()
No need for a timer, just update the textdraw string whenever kills, deaths or score is changed.


Re: Stats - CrazyChoco - 30.07.2013

Quote:
Originally Posted by Richie©
Посмотреть сообщение
No need for a timer, just update the textdraw string whenever kills, deaths or score is changed.
I recommend using SetTimerEx at onplayerconnect or onplayerspawn, Instead of your idea, since it uses less lines and probably less CPU usage. Correct me if i'm wrong.


Re: Stats - Scottas - 30.07.2013

less lines don't mean less CPU usage. Timer would update textdraw (or check for changes) repeatedly for every player. Richie's given method would only update textdraw when info changes, so it is more efficent.