SA-MP Forums Archive
help me pls for GOD sake - 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: help me pls for GOD sake (/showthread.php?tid=235052)



help me pls for GOD sake - enrique_uzair@hotmail.com - 04.03.2011

i changed my gamemode and changes my whole server but still im getting this error

We have restarted your server (#26491 - SA-MP Server) because it was using 100% CPU (peaked at 100% CPU) and 0.3% RAM for a period of time.
Considering your server only has 30 Players, this usage is way too high and has a bad influence on other servers we are hosting.
You should either optimize your custom settings (maps, gamemodes, addons, etc.) or, if you don't know how to do so, reinstall your server and run it on it's default settings.

i reduce the loop problem but still nothing happend my server keep freezing please guys help me , no one helping me , then i have one solution to close my server


Re: help me pls for GOD sake - enrique_uzair@hotmail.com - 05.03.2011

thanks for reply i used to gms first one was larp script and 2nd is gtarp i got same problem in both gms ..


Re: help me pls for GOD sake - Steven82 - 05.03.2011

That means, you need to optimize LA-RP/GTA-RP scripting. Possibly change the user account saving system to MySQL or delete un-needed objects/vehicles from your server.


Re: help me pls for GOD sake - enrique_uzair@hotmail.com - 05.03.2011

but in gtarp there is only vehciles in dealershop thats it no civ vehciles and we got only default objects in gtarp and about mysql i dont know how to make on mysql accounts


Re: help me pls for GOD sake - Steven82 - 05.03.2011

How many fs's do you have in the script?

Edit: I mean running off the script?


Re: help me pls for GOD sake - enrique_uzair@hotmail.com - 05.03.2011

filter script only gl_property


Re: help me pls for GOD sake - Mike Garber - 05.03.2011

Move EVERYTHING in OnPlayerUpdate to a 1-second timer If there's anything.
Reduce string sizes to just as much as needed or a few above, like do NOT use new string[256]; when you are gonna format(string,sizeof(string),"Hi there i am using too much");, if you know what I mean.

And try to move all "new string" lines above the loop and not in it.
I hope this helped.


Re: help me pls for GOD sake - Steven82 - 05.03.2011

Quote:
Originally Posted by Mike Garber
Посмотреть сообщение
Move EVERYTHING in OnPlayerUpdate to a 1-second timer If there's anything.
Reduce string sizes to just as much as needed or a few above, like do NOT use new string[256]; when you are gonna format(string,sizeof(string),"Hi there i am using too much");, if you know what I mean.

And try to move all "new string" lines above the loop and not in it.
I hope this helped.
Well hm...i didn't think about that haha, good job


Re: help me pls for GOD sake - enrique_uzair@hotmail.com - 05.03.2011

thx mike and steven i will try it and i will let u know guys if it works


Re: help me pls for GOD sake - bestr32 - 05.03.2011

Ok. sorry for that