SA-MP Forums Archive
regular or pvar? - 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: regular or pvar? (/showthread.php?tid=396241)



regular or pvar? - Dr.Einstein - 29.11.2012

This question is not for global variables..
So, what should I use in pretty complex function, which may contain at least 10-30 variables?
What I am focusing on is performance. I haven't really worked much with pvars, but they seem simple enough, although I don't like typing too much.


Re: regular or pvar? - PlayLSX_Founder - 30.11.2012

There is no advantage over using Pvars to regular variables, the use more memory in fact. Regular variables may appear to make your game-mode a bit bigger in .amx size but overall performance, I would use regular variables.