Help? LinkVehicleToInterior?
#1

Hi all, i have a problem, i put these codes in my gm for put a vehicles in liberty city

Код:
Vehicle = AddStaticVehicleEx(416,-955.6572265625,341.486328125,1337.1796875,0,-1,-1),1); 
         LinkVehicleToInterior(Vehicle, 1); 
        Vehicle2 = AddStaticVehicleEx(416,-955.37664794922,348.65664672852,1337.1796875,0,-1,-1),1; 
         LinkVehicleToInterior(Vehicle2, 1); 
        Vehicle3 = AddStaticVehicleEx(416,-955.99737548828,333.26248168945,1337.1796875,0,-1,-1),1;
         LinkVehicleToInterior(Vehicle3, 1);
I had these Warnings and Errors:


error 017: undefined symbol "Vehicle"
warning 202: number of arguments does not match definition
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

What did i do wrong?

Tanks.
Reply
#2

Extra numbers & on top Of Ur script "new Vehicle"
Reply
#3

pawn Код:
new Vehicle, Vehicle2, Vehicle3;

Vehicle = AddStaticVehicle(416,-955.6572265625,341.486328125,1337.1796875, 0.0000,-1,-1);
LinkVehicleToInterior(Vehicle, 1);
Vehicle2 = AddStaticVehicle(416,-955.37664794922,348.65664672852,1337.1796875, 0.0000,-1,-1);
LinkVehicleToInterior(Vehicle2, 1);
Vehicle3 = AddStaticVehicle(416,-955.99737548828,333.26248168945,1337.1796875, 0.0000,-1,-1);
LinkVehicleToInterior(Vehicle3, 1);
EDIT:
Sorry, didn't notice the "Ex"... I don't know what You're supposed to have but id, x, y, z, r, col1 and col2 but this should work..
Reply
#4

Tanks but now i have this errors and warnings:

warning 202: number of arguments does not match definition
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
warning 215: expression has no effect
warning 202: number of arguments does not match definition
warning 215: expression has no effect
warning 202: number of arguments does not match definition
warning 215: expression has no effect

Tanks! Now work lock!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)