error 052: multi-dimensional arrays must be fully initialized
#9

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
This is incorrect:
pawn Код:
for(new x = 18; x != 0; x--)
The size of the array is 18 and that makes 0-17 as valid indexes. Your loops goes (backwards) from 18-1. Change to:
pawn Код:
for(new x = sizeof RankInfo - 1; x != -1; x--)
@[XST]O_x: "x" still starts at 18 and the first index will never be accessed.
Thank you, Konstantinos.

This problem has been solved.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)