Expected token - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Expected token (
/showthread.php?tid=635770)
Expected token -
Cyboorg - 13.06.2017
PHP код:
C:\Users\Desktop\weed.pwn(20) : error 001: expected token: ";", but found "enum"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Line 20
Код HTML:
enum weedinfo
{
planted,
finished,
Float:poswx,
Float:poswy,
Float:poswz,
Text3D:labelweed
}
Can anyone help me ?
Re: Expected token -
Stones - 13.06.2017
Код:
enum weedinfo
{
planted,
finished,
Float:poswx,
Float:poswy,
Float:poswz,
Text3D:labelweed
};
You missed the
Re: Expected token -
Cyboorg - 13.06.2017
Doesn't work!!!
Re: Expected token -
Stones - 13.06.2017
Do it for all your enums.
Re: Expected token -
Cyboorg - 13.06.2017
Same again!
Re: Expected token -
Whatname - 13.06.2017
are you sure that where you get the error because i copied it and it compiled fine for me
Re: Expected token -
Cyboorg - 13.06.2017
Ups ...I don't know,it is not compiling for me ..hell ?
Am i missing any thing ?
Re: Expected token -
leo9 - 13.06.2017
you forgot a semicolon before the enum
+ enums aren't necessary to finish with semicolon like
Код:
enum
{
pID,
....
}; //it isn't necessary
Re: Expected token -
Whatname - 13.06.2017
Quote:
Originally Posted by leo9
you forgot a semicolon before the enum
|
I dont use semicolons and i never get error
Re: Expected token -
leo9 - 13.06.2017
show a part of your code above that enum