SA-MP Forums Archive
About PVar limits - 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)
+---- Forum: Discussion (https://sampforum.blast.hk/forumdisplay.php?fid=84)
+---- Thread: About PVar limits (/showthread.php?tid=592425)



About PVar limits - uZ1 - 24.10.2015

SA-MP wiki says the limit of PVars are 800.
800 per player (800*1000 = 800000) or 800 altogether?


Re : About PVar limits - StreetRP - 24.10.2015

is 800 per player


Re: About PVar limits - Pottus - 24.10.2015

If you are worried about PVar limit then you are scripting wrong.


Re: About PVar limits - Ahmad45123 - 24.10.2015

800 per player.

And this should have been in the scripting help forum.


Re: About PVar limits - uZ1 - 24.10.2015

Thanks for the answers.
Quote:
Originally Posted by Pottus
View Post
If you are worried about PVar limit then you are scripting wrong.
Not really. I was only interested to know the limits, nothing more.

Quote:
Originally Posted by Ahmad45123
View Post
800 per player.

And this should have been in the scripting help forum.
I think I'm right here in the "Discussion" category about SA-MP's limits.


Re: About PVar limits - Gigi-The-Beast - 24.10.2015

Here you have all the samp limits, including PVars : https://sampwiki.blast.hk/wiki/Limits


Re: About PVar limits - Macluawn - 30.10.2015

Quote:
Originally Posted by Pottus
View Post
If you are worried about PVar limit then you are scripting wrong.
If you`re not at least curious of PVar limits, your codebase is too small to insult others.


Re: About PVar limits - Crayder - 30.10.2015

Quote:
Originally Posted by Macluawn
View Post
If you`re not at least curious of PVar limits, your codebase is too small to insult others.
No, Pottus is right. You should never need many PVar's, there only real use that makes sense is variables across filterscripts and gamemodes. If you are defending the use of 800 (or even more than 20) PVar's you clearly have a lot to learn.


Re: About PVar limits - [ABK]Antonio - 30.10.2015

Quote:
Originally Posted by Crayder
View Post
No, Pottus is right. You should never need many PVar's, there only real use that makes sense is variables across filterscripts and gamemodes. If you are defending the use of 800 (or even more than 20) PVar's you clearly have a lot to learn.
No, questioning the limits isn't a bad thing. Just because you aren't going to use that many, doesn't mean you shouldn't know how many you can use. That's just bad practice. If you use even one, you should know how many you can use.


Re: About PVar limits - Pottus - 31.10.2015

Quote:
Originally Posted by Crayder
View Post
No, Pottus is right. You should never need many PVar's, there only real use that makes sense is variables across filterscripts and gamemodes. If you are defending the use of 800 (or even more than 20) PVar's you clearly have a lot to learn.
I would say that having to set/get them would be more intensive than CallRemoteFunction() as your script would become littered with them just for the sake of cross script variable access.