Variables vs 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: Variables vs PVars? (
/showthread.php?tid=455662)
Variables vs PVars? -
Binx - 02.08.2013
Could someone kindly explain why setting a PVar is better(if it is better) than using a variable?
For example I make a /changename command(I've looked throughout a few scripts and they use PVars), Why is it better?
Regards.
Re: Variables vs PVars? -
Pottus - 02.08.2013
Don't even waste your time with PVars the uses are so limited you'll never need them and if you use them anyways your code will look ugly especially when you start nesting pvar functions inside one another it's not even a replacement for variables.
Review this.
https://sampforum.blast.hk/showthread.php?tid=268499
"Conclusion
I am not complaining about PVars - as I said they have their uses, but people need to understand when they should be used and that they are not a total replacement for normal arrays, not even close!"
Re: Variables vs PVars? -
Binx - 02.08.2013
Alright, I'll take that into consideration.. thanks!