10.10.2013, 11:29
Hello, i need a way to check if a player-variable (PVar) has been set. Because if you GetPVarInt from any variable it returns 0, which is a valid player ID.(Yes i'm storing them).
So is there a way to check if it's set?
This is irrelevant to the problem:
You may want to give me a link to the thread "PVars - when, and when not, to use them", i will explain why i am using them: I use them for selling a house, to store stuff like who is selling, what house is sold and the price. In my opinion(which may be wrong,i'm only human) houses won't be sold often in the server. So having global array of 500 slots is pretty useless. I assume that PVars use memory only when they are set(although more then a normal variable), and when are deleted they memory is up for grasp again.
So is there a way to check if it's set?
This is irrelevant to the problem:
You may want to give me a link to the thread "PVars - when, and when not, to use them", i will explain why i am using them: I use them for selling a house, to store stuff like who is selling, what house is sold and the price. In my opinion(which may be wrong,i'm only human) houses won't be sold often in the server. So having global array of 500 slots is pretty useless. I assume that PVars use memory only when they are set(although more then a normal variable), and when are deleted they memory is up for grasp again.