update help
#1

I have the zGaming script and want to know how to update it so it will run faster and not lag when you /aduty, /ban etc
Reply
#2

It isn`t easy to "update" it...
You can convert the saving system dini to mysql.
But it is not very easy!
https://sampforum.blast.hk/showthread.php?tid=337810

In general ...
pawn Код:
SetTimer("Clock", 1000, true);
    SetTimer("ADTimer", 1000, true);
    SetTimer("NOPSetPlayerPos", 1000, true);
    SetTimer("AltTabTimer", 1000, true);
    SetTimer("WeaponCheat", 1000, true);
    SetTimer("FuelTimer", 1000, true);
    SetTimer("PrisonTimer", 1000, true);
They are all started on the same time!
And than they are called the same time because every timer is set to 1000ms.
Maybe they are "small", then it may be okey ...
But if the timers are really "big" and if there are many operations in it it can lagg!
Maybe change the time of some timers:
prime! -> 991 983 1009 1013
The difference in 1 minute is about one second ... (1000ms +/- 20ms)
I would change these:
ADTimer,NOPSetPlayerPos,AltTabTimer,WeaponCheat,Fu elTimer.
Prison and Clock should be "exact".

Greetz
~ Kevin
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)