SetPVarInt question
#1

Am I better of using these PVar functions or should I be using arrays?

In the case of keeping track of a players cash. Which should I do?

pawn Код:
SetPVarInt(playerid,"pCash",100);
Or

pawn Код:
new pCash[MAX_PLAYERS];

// In a callback...
pCash[playerid] = 100;
What are the advantages and disadvantages of each? Which is faster?

I'll Rep+ anyone who can give me some useful information.
Reply


Messages In This Thread
SetPVarInt question - by Celson - 11.12.2011, 05:02
Re: SetPVarInt question - by suhrab_mujeeb - 11.12.2011, 05:04
Re: SetPVarInt question - by PrawkC - 11.12.2011, 05:07
Re: SetPVarInt question - by Celson - 11.12.2011, 05:13
Re: SetPVarInt question - by THE_KNOWN - 11.12.2011, 05:14
Re: SetPVarInt question - by Ash. - 11.12.2011, 08:06
Re: SetPVarInt question - by MadeMan - 11.12.2011, 10:09

Forum Jump:


Users browsing this thread: 2 Guest(s)