Which option to use?
#4

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:
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++)
Reply


Messages In This Thread
Which option to use? - by darkHero - 12.11.2018, 20:51
Re: Which option to use? - by khRamin78 - 12.11.2018, 21:01
Re: Which option to use? - by CJ101 - 12.11.2018, 21:30
Re: Which option to use? - by Gammix - 12.11.2018, 22:20
Re: Which option to use? - by Nero_3D - 12.11.2018, 23:06

Forum Jump:


Users browsing this thread: 2 Guest(s)