Posts: 1,008
Threads: 101
Joined: Apr 2008
Reputation:
0
Well, deciding between using Pvar or a global variable.
like..
SetPVar Kills
or..
new Kills[MAX_PLAYERS]
or...
using my account system to save it.
enum
kills
-
Witch would be more relieable.
Posts: 6,129
Threads: 36
Joined: Jan 2009
Posts: 1,959
Threads: 40
Joined: Nov 2009
Reputation:
0
PVars are slower, but they use less memory. Global variables are faster, and they use memory.
I'm using global variables in a lot of things, and using PVars in some circumstances (such as Strings)
Yeah, i agree with MrDeath.
Posts: 119
Threads: 10
Joined: Jan 2011
Reputation:
0
If you want to save user's stats and change them in the future, use global vars. I'm suing PVars for smaller things, like a one-time restore of a variable(Health,ID of a player, etc').
Edit: if you have already got an account system, USE IT! (enum)