Help with resources - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with resources (
/showthread.php?tid=243843)
Help with resources -
[NRP]Blade - 25.03.2011
Well i got serverFFS and it is using to much resources. Was just wondering if instead of using strcmp, going to y_commands, or something would help? If not what would? Thanks in advance.
Re: Help with resources - [L3th4l] - 25.03.2011
I don't know about y'all, but this always helps out:
pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS (20) // Or the amount of slots you got.
Also use 'foreach' so you don't have to do unnecessary loops.
Yeah, y_ini or zcmd will help you A LOT.
Get rid of dini, slow and outdated.
- Actually, also take a look at ****** optimizations thread!!