Why get errors in this script ? - 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: Why get errors in this script ? (
/showthread.php?tid=463574)
Why get errors in this script ? -
bustern - 12.09.2013
Errors:
PHP код:
C:\Users\Niko\Desktop\DeathMatch server by bustern\gamemodes\DeathMatch.pwn(475) : error 001: expected token: "-identifier-", but found "-integer value-"
Script":
PHP код:
enum TeamCars
{
Grove,
Ballas,
LosAztecas,
LosSantosVagos,
DaNangBoys,
Triads,
Bikers
}
Re: Why get errors in this script ? -
Konstantinos - 12.09.2013
Show us the lines 474, 475, 476.
Re: Why get errors in this script ? -
x96664 - 12.09.2013
Try this:
pawn Код:
enum TeamCars
{
Grove,
Ballas,
LosAztecas,
LosSantosVagos,
DaNangBoys,
Triads,
Bikers
}; //there is a missing semicolon ";"
Re: Why get errors in this script ? -
bustern - 12.09.2013
Quote:
Originally Posted by Konstantinos
Show us the lines 474, 475, 476.
|
thise lines are what i added in my first post
Re: Why get errors in this script ? -
Konstantinos - 12.09.2013
pawn Код:
enum TeamCars
{
Grove,
Ballas,
LosAztecas,
LosSantosVagos,
DaNangBoys,
Triads,
Bikers
}
I see 10 lines, should I guess which one is the line 475? ..
Re: Why get errors in this script ? -
bustern - 12.09.2013
473-enum TeamCars
474-{
475-Grove,
476-Ballas,
477-LosAztecas,
478-LosSantosVagos,
479-DaNangBoys,
480-Triads,
481-Bikers
482-}
Re: Why get errors in this script ? -
x96664 - 12.09.2013
It compiles it for me without an error.
Re: Why get errors in this script ? -
Konstantinos - 12.09.2013
Have you defined
Grove at your script?
Re: Why get errors in this script ? -
bustern - 12.09.2013
Yes, i have defined it
Re: Why get errors in this script ? -
Konstantinos - 12.09.2013
Quote:
Originally Posted by bustern
Yes, i have defined it
|
Grove is used in your enum and it's defined too. Keep only one and rename the other one.