12.11.2018, 22:20
If your entries are small in number, say only 5-10 entries, i would use the second option.
But if you have more entries or the number of entries may change in future, option one looks more ideal for this.
Also if you didn't know this already:
But if you have more entries or the number of entries may change in future, option one looks more ideal for this.
Also if you didn't know this already:
pawn Код:
// no need to hardcode the size (i.e. 4), you can get the size with sizeof
for(new i = 0; i < sizeof(ObjectFood); i++)