Which one?
#1

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);
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)