How come this don't work?
#1

if(IsPlayerConnected(para1))
{
new Float:testcar[3];
GetPlayerPos(para1, testcar[1], testcar[2], testcar[3]);
new Float:Angle;
GetPlayerFacingAngle(para1, Angle);
new car = CreateVehicle(vehicleid, testcar[1]+2.5, testcar[2]+2.5, testcar[3], Angle, color1, color2, 0);
}
Reply
#2

What about it doesn't work?
Reply
#3

pawn Код:
if(IsPlayerConnected(para1))
{
    new Float:x, Float:y, Float:z, Float:angle, car;
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, angle);
    car = CreateVehicle(vehicleid, x+2.5, y+2.5, z, angle, color1, color2, -1);  
}
The code is perfect, it's just that you have to always start at zero on multi-dimensional arrays.

But the above code will work perfectly, .

And are you sure that 'vehicleid' is the model id?

And I think '0' as the respawn will never spawn the vehicle as it will keep respawning.

Hope I helped.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)