Why get errors in this script ?
#1

Errors:
PHP код:
C:\Users\Niko\Desktop\DeathMatch server by bustern\gamemodes\DeathMatch.pwn(475) : error 001expected token"-identifier-"but found "-integer value-" 
Script":
PHP код:
enum TeamCars
{
Grove,
Ballas,
LosAztecas,
LosSantosVagos,
DaNangBoys,
Triads,
Bikers

Reply
#2

Show us the lines 474, 475, 476.
Reply
#3

Try this:
pawn Код:
enum TeamCars
{
Grove,
Ballas,
LosAztecas,
LosSantosVagos,
DaNangBoys,
Triads,
Bikers
}; //there is a missing semicolon ";"
Reply
#4

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Show us the lines 474, 475, 476.
thise lines are what i added in my first post
Reply
#5

pawn Код:
enum TeamCars
{
Grove,
Ballas,
LosAztecas,
LosSantosVagos,
DaNangBoys,
Triads,
Bikers
}
I see 10 lines, should I guess which one is the line 475? ..
Reply
#6

473-enum TeamCars
474-{
475-Grove,
476-Ballas,
477-LosAztecas,
478-LosSantosVagos,
479-DaNangBoys,
480-Triads,
481-Bikers
482-}
Reply
#7

It compiles it for me without an error.
Reply
#8

Have you defined Grove at your script?
Reply
#9

Yes, i have defined it
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)