Why Lag my server? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Why Lag my server? (
/showthread.php?tid=482428)
Why Lag my server? -
Tuntun - 21.12.2013
Hello.I have 266 ping in my server.But when i log-in it makes me slow... the login dialog.... also in class select section... so what is the fact of this problem? .... maybe for the map? Map createObject's should be on OnPlayerConnect Right?.....
Re: Why Lag my server? -
qazwsx - 21.12.2013
There are some possibilties which make your server lag.
One of it, your host. Make sure you dont have problem with your host.
And about that createobject, i think it should be OnGameModeInit callback function.
Re: Why Lag my server? -
Mark Shade - 21.12.2013
Hello, your createobject's should be under your OnGameModeInit callback function as qazwsx stated above. The lag may be because of your host provider, or your connection. Try moving the createobject codes.
Re: Why Lag my server? -
denom - 21.12.2013
I already had this problem. Try to remove some mappings
Re: Why Lag my server? -
TheOriginal1337 - 21.12.2013
Indeed, could be something with your host. Or there is something in the code that makes your server lag. I used to have a problem with playerstats saving. There was a timer in my script saving every second all files of players. So when there were 50 players it started lagging because it had to save all the 50 files every second.
But try to check your script and make sure there is nothing like a timer running something every second as I had.