for(new < bugs!!!!!
#10

pawn Код:
for(new i=1; i < MAX_FAMILY; i++)
Since you created the array FamilyInfo using something similar as this:
pawn Код:
new FamilyInfo[MAX_FAMILY][EnumFamily];
You're in fact creating an array with 1000 indices, going from index 0 to 999.
Your loop ran from 1 to 1000 because of the "i <= MAX_FAMILY".
You have to run it from 1 to MAX_FAMILY-1, or just use the above code (i < MAX_FAMILY).

That's why your command gave you "Unknown command" because it crashed while accessing the array at index 1000, while the max index is only 999 (index-out-of-bounds error).
And that's also when you set the loop to run from 1 to 950, everything works fine, because you won't go outside the array's lower or upper indices.
Reply


Messages In This Thread
for(new < bugs!!!!! - by SequenceCuz - 06.12.2014, 10:19
Re: for(new < bugs!!!!! - by AnthonyTimmers - 06.12.2014, 10:47
Re: for(new < bugs!!!!! - by SequenceCuz - 06.12.2014, 10:57
Re: for(new < bugs!!!!! - by DrumYum - 06.12.2014, 11:01
Re: for(new < bugs!!!!! - by SequenceCuz - 06.12.2014, 11:06
Re: for(new < bugs!!!!! - by DrumYum - 06.12.2014, 11:35
Re: for(new < bugs!!!!! - by SequenceCuz - 06.12.2014, 11:41
Re: for(new < bugs!!!!! - by Kyance - 06.12.2014, 12:59
Re: for(new < bugs!!!!! - by SequenceCuz - 06.12.2014, 13:12
Re: for(new < bugs!!!!! - by PowerPC603 - 06.12.2014, 13:44

Forum Jump:


Users browsing this thread: 1 Guest(s)