Problem with team cars..... + Rep
#1

Код:
error 001: expected token: "-identifier-", but found "-integer value-"
warning 213: tag mismatch
error 032: array index out of bounds (variable "Cars")
enum TeamCars
{
Pirates,
Pirates1,
Police,
WaterP,
Mafia,
Mafia1
} //First error here

Cars[Mafia] = CreateVehicle(533,-679.59997559,949.40002441,11.89999962,0.00000000,-1,-1); //Feltzer // second and 3. error
Reply
#2

Quote:

enum TeamCars
{
Pirates,
Pirates1,
Police,
WaterP,
Mafia,
Mafia1
};

You forgot the ;
Reply
#3

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
Код:
error 001: expected token: "-identifier-", but found "-integer value-"
warning 213: tag mismatch
error 032: array index out of bounds (variable "Cars")
enum TeamCars
{
Pirates,
Pirates1,
Police,
WaterP,
Mafia,
Mafia1
} //First error here

Cars[Mafia] = CreateVehicle(533,-679.59997559,949.40002441,11.89999962,0.00000000,-1,-1); //Feltzer // second and 3. error
after the enum add

pawn Код:
new tCars[TeamCars];
and

change Cars[Mafia] to tCars[Mafia] and try..

Quote:
Originally Posted by ]Rafaellos[
Посмотреть сообщение
You forgot the ;
My dear you made me LAUGH OUT LOUDLY ^^ There is no need of semi column or whatever it is called ";" in enum lol.

This might help!

-FalconX
Reply
#4

In my script the enum if i dont put }; it have error.
Reply
#5

Quote:
Originally Posted by ]Rafaellos[
Посмотреть сообщение
In my script the enum if i dont put }; it have error.
Strange script eh

Well I don't think there is a need of ";" in the script when It works without the ";" anyways, I don't use ; with enums :P

-FalconX
Reply
#6

Thank you all
Reply
#7

Same error!
Reply
#8

pawn Код:
enum TeamCars
{
Pirates,
Pirates1,
Police,
WaterP,
Mafia,
Mafia1,
}

new Cars[TeamCars];

//OnGameModeInit
Cars[Mafia] = CreateVehicle(533,-679.59997559,949.40002441,11.89999962,0.00000000,-1,-1,-1); //Feltzer
Made in 15 seconds, I tested it in my script, didnt get any errors, enjoy.
Reply
#9

Quote:
Originally Posted by Scrillex
Посмотреть сообщение
Same error!
Which one and what's your current code?
Reply
#10

The same as previous error.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)