Error with enum.
#1

pawn Код:
enum PropInfo
{
    PropPrice[MAX_PROPERTIES],
    PropName[MAX_PROPERTIES][56],
    bool:Buyed[MAX_PROPERTIES],
    Owner[MAX_PROPERTIES][MAX_PLAYER_NAME],
    OwnerID[MAX_PROPERTIES],
}
new Prop[PropInfo];
Error error 001: expected token: "}", but found "[" is here:
pawn Код:
PropName[MAX_PROPERTIES][56],
and here
pawn Код:
Owner[MAX_PROPERTIES][MAX_PLAYER_NAME],
How to fix this ?
Reply
#2

Quote:
Originally Posted by Dreftas
pawn Код:
enum PropInfo
{
    PropPrice[MAX_PROPERTIES],
    PropName[MAX_PROPERTIES][56],
    bool:Buyed[MAX_PROPERTIES],
    Owner[MAX_PROPERTIES][MAX_PLAYER_NAME],
    OwnerID[MAX_PROPERTIES],
}
new Prop[PropInfo];
Error error 001: expected token: "}", but found "[" is here:
pawn Код:
PropName[MAX_PROPERTIES][56],
and here
pawn Код:
Owner[MAX_PROPERTIES][MAX_PLAYER_NAME],
How to fix this ?
try this:

pawn Код:
enum PropInfo
{
    PropPrice,
    PropName[56],
    bool:Buyed,
    Owner[MAX_PLAYER_NAME],
    OwnerID
}
new Prop[MAX_PROPERTIES][PropInfo];
Because i think you cannot have more then 1 array in an enum array.
Reply
#3

Yup, thanks :] /lock.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)