SA-MP Forums Archive
Is it good or bad - 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: Is it good or bad (/showthread.php?tid=335632)



Is it good or bad - RollTi - 19.04.2012

Is it good to have so many arrays and variables in one script gamemode?

i notice that when i use more arrays and variables my AMX KB is getting higher


Re: Is it good or bad - MP2 - 19.04.2012

Of course if you have more stuff it's going to be a bigger file. That's how things work. If you want to save memory; use pvars, use less arrays, redefine MAX_PLAYERS to how many actual slots you have on your server, use smaller strings and generally use memory efficiently.


Re: Is it good or bad - Moh_ - 19.04.2012

my amx have almost 4mb
it works as always...good xD
the vars/variables are working very well


Re: Is it good or bad - RollTi - 19.04.2012

Quote:
Originally Posted by MP2
Посмотреть сообщение
Of course if you have more stuff it's going to be a bigger file. That's how things work. If you want to save memory; use pvars, use less arrays, redefine MAX_PLAYERS to how many actual slots you have on your server, use smaller strings and generally use memory efficiently.
Thanks for Hint

Quote:
Originally Posted by Moh_
Посмотреть сообщение
my amx have almost 4mb
it works as always...good xD
the vars/variables are working very well
Woah, mine is working as well like yours too actually my script is Roleplay script
which is created by me (not a GF Edit)

Now i have one little small question should i backup my Roleplay script incase?

Currently my AMX is

552KB and my PWN file is 102KB