Problem with defining.
#1

I have one define that's: #define AUTOLIIMIT 100
And variable: new autosysteem;

I've tried that: new CarInfo[AUTOLIIMIT+autosysteem][cInfo];

But it will show errors and warnings.

Any idea how fix that problem? Thanks!

Error & Warning
Код:
 error 008: must be a constant expression; assumed zero
 warning 224: indeterminate array size in "sizeof" expression (symbol "")
 warning 224: indeterminate array size in "sizeof" expression (symbol "")
 warning 224: indeterminate array size in "sizeof" expression (symbol "")
 warning 224: indeterminate array size in "sizeof" expression (symbol "")
 warning 224: indeterminate array size in "sizeof" expression (symbol "")
 warning 224: indeterminate array size in "sizeof" expression (symbol "")
 warning 224: indeterminate array size in "sizeof" expression (symbol "") 
 warning 224: indeterminate array size in "sizeof" expression (symbol "")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
Problem with defining. - by Typhome - 11.01.2012, 16:58
Re: Problem with defining. - by Psymetrix - 11.01.2012, 17:58
Re: Problem with defining. - by Typhome - 11.01.2012, 18:14
Re: Problem with defining. - by Psymetrix - 11.01.2012, 18:26

Forum Jump:


Users browsing this thread: 1 Guest(s)