03.06.2011, 18:21
Quote:
Thanx for your quick and precise response.
That's why my variable wasn't working well between scripts. I try not to read all the time from a file because I believe it's slower than other methods. I wasn't using Pvar's because i needed an enum to keep things in order, but I guess I have to do something with that. Maybe setting the array's variable to the same number as the Pvar in order to syncronize values. |
For example, if you were to store the players money in a PVar, and called the variable "money" - you could create a macro to return the data, rather than writing out GetPVarInt(...);
Like so:
pawn Код:
#define GetPMoney(%0) GetPVarInt(%0, "money")