Variable
#1

Which is more optimized?

new variable[3][MAX_PLAYERS];

or

new variable1[MAX_PLAYERS];
new variable2[MAX_PLAYERS];
new variable3[MAX_PLAYERS];
Reply
#2

Hmm, try using the
pawn Код:
new variable1[MAX_PLAYERS];
new variable2[MAX_PLAYERS];
new variable3[MAX_PLAYERS];
Because
pawn Код:
new variable[3][MAX_PLAYERS];
can be buggy.
Reply
#3

Quote:
Originally Posted by MatriXgaMer
Посмотреть сообщение
Hmm, try using the
pawn Код:
new variable1[MAX_PLAYERS];
new variable2[MAX_PLAYERS];
new variable3[MAX_PLAYERS];
Because
pawn Код:
new variable[3][MAX_PLAYERS];
can be buggy.
No it's not buggy unless you make it buggy. Both methods use the same amount of bytes. The efficient way is multidimensional arrays.
Reply
#4

Quote:
Originally Posted by MatriXgaMer
Посмотреть сообщение
can be buggy.
Whatever you say boss
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)