Expected token
#1

PHP код:
C:\Users\Desktop\weed.pwn(20) : error 001expected token";"but found "enum"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

Line 20

Код HTML:
enum weedinfo
{
	planted,
	finished,
	Float:poswx,
	Float:poswy,
	Float:poswz,
	Text3D:labelweed

}
Can anyone help me ?
Reply
#2

Код:
enum weedinfo
{
	planted,
	finished,
	Float:poswx,
	Float:poswy,
	Float:poswz,
	Text3D:labelweed
};
You missed the
Код:
;
Reply
#3

Doesn't work!!!
Reply
#4

Do it for all your enums.
Reply
#5

Same again!
Reply
#6

are you sure that where you get the error because i copied it and it compiled fine for me
Reply
#7

Ups ...I don't know,it is not compiling for me ..hell ?

Am i missing any thing ?
Reply
#8

you forgot a semicolon before the enum
+ enums aren't necessary to finish with semicolon like
Код:
enum
{
    pID,
    ....
}; //it isn't necessary
Reply
#9

Quote:
Originally Posted by leo9
Посмотреть сообщение
you forgot a semicolon before the enum
I dont use semicolons and i never get error
Reply
#10

show a part of your code above that enum
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)