11.09.2017, 08:15
I don't really understand why some people insist on not using sizeof. Sizeof is an operator, not a function. Its value is determined at compile time and it has no impact on runtime speed whatsoever.
The fact that the same index is used to access two different arrays - which are not necessarily the same size - is making things complicated, though.
PHP код:
for(new i; i < sizeof(RestaurantItems); i++)