SA-MP Forums Archive
Can anyone help? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Can anyone help? (/showthread.php?tid=256890)



Can anyone help? - Jay. - 22.05.2011

Well, I've downloaded this server and hosted it but the hoster thing says it is running too much resources. I'm really new to scripting and what does 'resources' mean? Like filterscripts, strings? or what.. We unloaded all filterscripts, so it was the gm.

So what should I change in the gm to make it lower on resources?

Thanks


Re: Can anyone help? - Zh3r0 - 22.05.2011

Check each loop, and each timer.


Re: Can anyone help? - Jay. - 22.05.2011

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
Check each loop, and each timer.
Check them for what about them? sorry, I really am new.


Re: Can anyone help? - xalith - 22.05.2011

if by resources they mean cpu usage, then the problem could be caused by a bug which causes the cpu usage to increase significantly, try to use less loops.and if you downloaded the gm from here, check its thread, it probably got updated and this type of bug was dealt with.


Re: Can anyone help? - Snipa - 22.05.2011

Use PVars instead of normal vars. Use foreach instead of regular loops. Use MySQL/y_ini for file saving. Don't use 256 sized strings. Use less filterscripts. Use zcmd/ycmd.


Re: Can anyone help? - playbox12 - 22.05.2011

Resources is as it is. For example it stresses the CPU to much or it uses to much RAM memory.

Like said before, try looking for loops inside loops, or alot of stuff under OnPlayerUpdate(playerid).

I'd like to note, that I'd preffer normal variables over PVars, unlike the poster above me. Normal variables are staticly allocated.