SA-MP Forums Archive
Updating Help - 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: Updating Help (/showthread.php?tid=596018)



Updating Help - NeamPojma - 11.12.2015

Hello all i have level system but im not sure where to put it , i dont know if i put that all OnPlayerUpdate it will cause massive lags? Here is my code please make suggestion


Re: Updating Help - vassilis - 11.12.2015

Hello, create a function named LevelUpdating. Use a timer which will be called inside your GamemodeInit which will be every 5seconds or choose your own. Inside timer call the LevelUpdating function.


P.S: Brate moj kako si.. Greetings from Atena


Re: Updating Help - NeamPojma - 11.12.2015

I created function and timer,should i put all my code in that function or? i tried that but it says undefined symbol playerid?

P.S. Pozdrav iz Beograda!


Re: Updating Help - vassilis - 11.12.2015

PHP код:
StatsUpdating(playerid)
{
your code...
return 
1;




Re: Updating Help - NeamPojma - 11.12.2015

Oh, Now it work,repped!

P.S. Hvala puno brate


Re: Updating Help - vassilis - 11.12.2015

Nista druje moj !