3 variables vs 3 cell array
#1

Which is better?

pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
or
pawn Код:
new Float:playerPos[3];
GetPlayerPos(playerid, playerPos[0], playerPos[1], playerPos[2]);
If you don't know about efficiency and stuff, please don't bother replying.
Reply
#2

Certainly not tell you whether it is better, or faster to use it, the more I can say that it is easier to use thereby

pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
Reply
#3

As far as I know
Код:
new Variable[3];
is the equivalent of doing
Код:
new Variable0,Variable1,Variable2;
Just cleaner.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)