SA-MP Forums Archive
Use PVars? - 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: Use PVars? (/showthread.php?tid=428156)



Use PVars? - Psycho77 - 04.04.2013

Hey Guys

First Im sorry for my bad english.


I have a question which nobody could answer yet.
Should I Use PVars instead of Player relative vars

What are the pros and cons.

I hope you can help me.


Re: Use PVars? - Vince - 04.04.2013

Already asked and answered many times. Search.
Short answer: only use them if you want to exchange information between different scripts.


Re: Use PVars? - DiGiTaL_AnGeL - 04.04.2013

The pvars are used only if you want to use a variable in every script(in your gm but also in a/some filterscript/s). You should not used pvars if you don't need them, they are a waste of memory. Y Less explained everything you need to know here.


AW: Use PVars? - Psycho77 - 04.04.2013

Thanks I edit my script


Re: Use PVars? - MP2 - 04.04.2013

That's not the ONLY reason to use pVars. ****** made a topic about this (which, if you would have searched (as I did to find it) you would know):

https://www.******.co.uk/search?q=sa...n+to+use+pvars

->

https://sampforum.blast.hk/showthread.php?tid=268499