error 008: must be a constant expression; assumed zero
#1

What's wrong with this?

pawn Код:
new Business[System[Max_Businesses]][Business_Variables];
Reply
#2

Quote:

must be a constant expression

You can't use a variable to initialise array, so you have to change System[Max_Businesses] to some constant value.
Reply
#3

Quote:
Originally Posted by Misiur
Посмотреть сообщение
You can't use a variable to initialise array, so you have to change System[Max_Businesses] to some constant value.
So
pawn Код:
#define Max_Businesses 10
?
Reply
#4

Yyup
Reply
#5

Quote:
Originally Posted by arko123
Посмотреть сообщение
So
pawn Код:
#define Max_Businesses 10
?
Try it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)