Variables vs PVars?
#1

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.
Reply
#2

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!"
Reply
#3

Alright, I'll take that into consideration.. thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)