vahicle help
#1

Lets say i got this:

new CarSpawns[7][eCars] = {
{405,-2125.7424,658.0462,52.2988,93.9612},//carid 90
{426,-2158.0222,657.3932,52.2775,272.8372},
{445,-1926.3204,585.6179,34.9963,359.8303},
{492,2229.2,-1170.2,25.7,86.9},
{507,-2214.8047,-82.7890,35.0474,0.6476},
{545,2217.0,-1157.2,25.7,269.8},
{547,405.9748,-1264.3921,50.1237,24.2110},

What else i need do to make these cars work Sometging under ongamemodeinit or smthing
Reply
#2

pawn Код:
for(new cars;cars<sizeof(CarSpawns);cars++)AddStaticVehicle(CarSpawns[cars][0],CarSpawns[cars][1],CarSpawns[cars][2],CarSpawns[cars][3],-1,-1);
Reply
#3

thank you for your help but now i have these:

C:\DOCUME~1\TouR\6808~1\server\GAMEMO~1\grp.pwn(25 7) : warning 213: tag mismatch
C:\DOCUME~1\TouR\6808~1\server\GAMEMO~1\grp.pwn(25 7) : warning 213: tag mismatch
C:\DOCUME~1\TouR\6808~1\server\GAMEMO~1\grp.pwn(25 7) : warning 213: tag mismatch
C:\DOCUME~1\TouR\6808~1\server\GAMEMO~1\grp.pwn(25 7) : warning 213: tag mismatch
C:\DOCUME~1\TouR\6808~1\server\GAMEMO~1\grp.pwn(25 7) : warning 202: number of arguments does not match definition

btw i have not only 7 cars i have 182 i dont know if it is the prob
Reply
#4

Show enum eCars
Reply
#5

i dont have it...

That's why i posted dude
Reply
#6

Quote:
Originally Posted by tour15
i dont have it...

That's why i posted dude
And compiler shows no errors with this line?

pawn Код:
new CarSpawns[7][eCars] = {
Reply
#7

yeah only warnings

I took this from an rp...

I want cars for los santos i hope if someone can give me some it would help me a lot!
Reply
#8

pawn Код:
enum eCars
{
    car_model,
    Float:car_x,
    Float:car_y,
    Float:car_z,
    Float:car_angle
}
new CarSpawns[7][eCars] = {
  {405,-2125.7424,658.0462,52.2988,93.9612},//carid 90
  {426,-2158.0222,657.3932,52.2775,272.8372},
  {445,-1926.3204,585.6179,34.9963,359.8303},
  {492,2229.2,-1170.2,25.7,86.9},
  {507,-2214.8047,-82.7890,35.0474,0.6476},
  {545,2217.0,-1157.2,25.7,269.8},
  {547,405.9748,-1264.3921,50.1237,24.2110},
And then in OnGameModeInit

pawn Код:
for(new cars; cars<sizeof(CarSpawns); cars++)
{
    AddStaticVehicle(CarSpawns[cars][0],CarSpawns[cars][1], CarSpawns[cars][2], CarSpawns[cars][3], CarSpawns[cars][4],-1,-1);
}
Reply
#9

C:\DOCUME~1\TouR\6808~1\server\GAMEMO~1\grp.pwn(75 ) : warning 201: redefinition of constant/macro (symbol "eCars")
C:\DOCUME~1\TouR\6808~1\server\GAMEMO~1\grp.pwn(27 2) : warning 213: tag mismatch
C:\DOCUME~1\TouR\6808~1\server\GAMEMO~1\grp.pwn(27 2) : warning 213: tag mismatch
C:\DOCUME~1\TouR\6808~1\server\GAMEMO~1\grp.pwn(27 2) : warning 213: tag mismatch
C:\DOCUME~1\TouR\6808~1\server\GAMEMO~1\grp.pwn(27 2) : warning 213: tag mismatch
C:\DOCUME~1\TouR\6808~1\server\GAMEMO~1\grp.pwn(27 2) : warning 213: tag mismatch




omg i will never do that )
Reply
#10

kala re papagale auto dn ikseres n kaneis?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)