error 001: expected token: "}", but found "enum"
#1

Код:
enum {
			CommonRed = 19006,
			CommonOrange,
			CommonGreen,
			CommonBlue,
			CommonPurple,
			CommonEspiral,
			CommonBlack,
			CommonEyes,
			CommonXadrex,
			CommonTransparent,
			CommonXRayVision,
			SquareFormatYellow,
			SquareFormatOrange,
			SquareFormatRed,
			SquareFormatBlue,
			SquareFormatGreen,
			RayBanGray,
			RayBanBlue,
			RayBanPurple,
			RayBanPink,
			RayBanRed,
			RayBanOrange,
			RayBanYellow,
			RayBanGreen,
			CircularNormal,
			CircularYellow,
			CircularRed,
			CircularBlack,
			CircularXadrex,
			CircularThunders,
			CopGlassesBlack = 19138,
			CopGlassesRed = 19139,
			CopGlassesBlue = 19140,
};
when i compile it give me an error: error 001: expected token: "}", but found "enum"

hmm?what is wrong here?help me pls!!!
Reply
#2

Nothing wrong with this i try it and it work maybe another thing cause this
Reply
#3

Im not pro but probably One line up of this script u pasted u forgot to type ''}''
Reply
#4

Show the line above the enum.
Reply
#5

Doesn't an enum usually need a name?

pawn Код:
enum randomshit
{

};
Reply
#6

As if we missed out the name of the enum, we such noobs.
Reply
#7

Quote:
Originally Posted by TheDominator
Посмотреть сообщение
As if we missed out the name of the enum, we such noobs.
I can't tell if you're being sarcastic, or I just can't interpret what you mean.
Reply
#8

He is sarcastic and the error just means that the compiler expected the token "}" but found "enum"

Also something like that
pawn Код:
new array[] = { 0
// missing closing bracket
enum {}
Reply
#9

pawn Код:
enum yourenumnamehere
{
    CommonRed = 19006,
    CommonOrange,
    CommonGreen,
    CommonBlue,
    CommonPurple,
    CommonEspiral,
    CommonBlack,
    CommonEyes,
    CommonXadrex,
    CommonTransparent,
    CommonXRayVision,
    SquareFormatYellow,
    SquareFormatOrange,
    SquareFormatRed,
    SquareFormatBlue,
    SquareFormatGreen,
    RayBanGray,
    RayBanBlue,
    RayBanPurple,
    RayBanPink,
    RayBanRed,
    RayBanOrange,
    RayBanYellow,
    RayBanGreen,
    CircularNormal,
    CircularYellow,
    CircularRed,
    CircularBlack,
    CircularXadrex,
    CircularThunders,
    CopGlassesBlack = 19138,
    CopGlassesRed = 19139,
    CopGlassesBlue = 19140,
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)