06.12.2010, 02:58
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?
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?