SA-MP Forums Archive
Server Lagging After Typing a Command - 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: Server Lagging After Typing a Command (/showthread.php?tid=442565)



Server Lagging After Typing a Command - ArmandoRamiraz - 08.06.2013

Title says it all. I type a certain command for example /createhouse and the house gets created but the server lags for a second before I can type another command or even see the house icon show up. Idk what could be the problem. It only happens on commands that involve saving things. Ex. Houses, objects, business etc. Any help would be appreciated.


Re: Server Lagging After Typing a Command - dEcooR - 08.06.2013

So is there only one way .. The command is sucked


Re: Server Lagging After Typing a Command - stundje - 08.06.2013

Quote:
Originally Posted by ArmandoRamiraz
Посмотреть сообщение
Title says it all. I type a certain command for example /createhouse and the house gets created but the server lags for a second before I can type another command or even see the house icon show up. Idk what could be the problem. It only happens on commands that involve saving things. Ex. Houses, objects, business etc. Any help would be appreciated.
Might be a big script, I bet it is more then 150MB. Try to make it smaller and it might work perfect.


Re: Server Lagging After Typing a Command - ArmandoRamiraz - 13.06.2013

My script has a little more than 87000 lines. Every other command works fine. Though /createhouse, /createbusiness, and even /gmx makes it lag more than it should.


Re: Server Lagging After Typing a Command - Stanford - 13.06.2013

Try changing the loading and saving way to .cfg


Re: Server Lagging After Typing a Command - ArmandoRamiraz - 13.06.2013

Quote:
Originally Posted by Stanford
Посмотреть сообщение
Try changing the loading and saving way to .cfg
They are lol they're in their own .cfg files.