22.01.2011, 18:05
I have a multi-dimensional array looking like this..
I'm trying to access the skin IDs by first counting how many skins are in any array...
Instead of compiling code to count how many black males there are, Pawno decided it would be easier to throw this error:
Any reason for this?
Код:
new PedCategories[][][] = { // male { // asian {49,57,58...} // black {...} // hispanic {...} // white {...} } // female { // asian {...} // black {...} // hispanic {...} // white {...} }
Код:
i = sizeof(PedCategories[male][black]);
Код:
***.pwn(436) : error 001: expected token: "]", but found "-identifier-" ***.pwn(436) : warning 215: expression has no effect ***.pwn(436) : error 001: expected token: ";", but found "]" ***.pwn(436) : error 029: invalid expression, assumed zero ***.pwn(436) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.