need help with enum
#1

Код:
 error 001: expected token: ";", but found "enum"
Код:
enum pInfo
{
	 AdminLevel,
	 eadmin,
	 Respect,
	 aHouse,
	 Job,
	 Bussines,
         Cash,
};
thank you for your reply...
Reply
#2

the error is before "enum" so you need a ";" on the line before "enum pInfo" this line if you understand
Reply
#3

thanks mate you helped me out... just 2 nights didn't sleep : D
Reply
#4

Couldn't it be that the last thing on the Enum called "Cash" it shouldn't have a "," there either?
Reply
#5

Quote:
Originally Posted by getty154
Посмотреть сообщение
Couldn't it be that the last thing on the Enum called "Cash" it shouldn't have a "," there either?
That wouldnt be the error as the found thing is enum meaning its before that as somone posted earlyer that would give him a warning but thats about all it would give him
Reply
#6

enum pInfo
{
AdminLevel,
eadmin,
Respect,
aHouse,
Job,
Bussines,
Cash
};
Reply
#7

Quote:
Originally Posted by PGTips
Посмотреть сообщение
That wouldnt be the error as the found thing is enum meaning its before that as somone posted earlyer that would give him a warning but thats about all it would give him
No, it would actually give him an error! Remove that "," and it will work.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)