Regarding PVars
#1

I've been using them for a while, without any obvious problems, however I have a few questions that have arisen from reading other scripts, and the wiki.

1) I Understand PVars are more memory efficient, but are they slower than normal Arrays?

2) I have noticed some scripters delete them OnPlayerDisconnect, is this nescessary? does doing this conserve resources?

3) I have some PVar manipulation under OnQueryFinish, will this cause problems if a PVar is set / changed for a player that has disconnected? and if not will the PVar be reset when another player joins? ( this question also applies to any accidental PVar manipulation )

4) Are there any issues with setting PVars for NPC's?
Reply
#2

1. yes they are slower there has been test but I prefer to use them anyway.

2. they get deleted when a player disconnects so it's not necessary

3. umm not sure I understand, PVars will survive until OnPlayerDisconnect has finished being called

4. never used bots before but I assume they'd be fine to use
Reply
#3

PVars work fine for bots.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)