Which one?
#2

Quote:
Originally Posted by Nightmare[TR]
Посмотреть сообщение
Hi,i know the answer but i want to ask you too.
Which one is faster?Type A or Type B?

Type A:
pawn Код:
new try[MAX_PLAYERS];
try[playerid] = 1;
Type B:
pawn Код:
SetPVarInt(playerid,"try",1);
I would go with type "A" because I believe variables are always faster then PVars. And it is also said by *******:

"99% of the time you do not need, and should not use, PVars"

https://sampforum.blast.hk/showthread.php?tid=268499

*Correct me if I am wrong.
Reply


Messages In This Thread
Which one? - by Nightmare[TR] - 12.08.2012, 20:04
Re: Which one? - by FalconX - 12.08.2012, 20:07

Forum Jump:


Users browsing this thread: 2 Guest(s)