problem with vehicle spawn
#1

hello, i need help D:
my dialog system of spawn vehicles dont work.
he is use this

Код HTML:
new SpawnCar[MAX_PLAYERS];

GiveVehicle(playerid, modelid)
{
new Auto, Float:x,Float:y,Float:z,Float:angulo;
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
Auto = GetPlayerVehicleID(playerid);
GetVehiclePos(Auto, x, y, z);
GetVehicleZAngle(Auto, angulo);
DestroyVehicle(Auto);
}
else
{
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, angulo);
}
if(SpawnCar[playerid] != 0) DestroyVehicle(SpawnCar[playerid]);
SpawnCar[playerid] = CreateVehicle(modelid,x,y,z,angulo,-1,-1,60);
PutPlayerInVehicle(playerid,SpawnCar[playerid],0);
LinkVehicleToInterior(Auto, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(Auto, GetPlayerVirtualWorld(playerid));
return 1;
}
in dialog response example case 0: GiveVehicle(playerid, 402);
but dont work, car dont spawn D:

and the dialogs ids is different of the others...
Reply


Messages In This Thread
problem with vehicle spawn - by zudokuxd10 - 21.12.2012, 13:00
Re: problem with vehicle spawn - by zudokuxd10 - 21.12.2012, 14:05
Re: problem with vehicle spawn - by eesh - 21.12.2012, 14:30
Re: problem with vehicle spawn - by zudokuxd10 - 21.12.2012, 14:43
Re: problem with vehicle spawn - by eesh - 21.12.2012, 14:53
Re: problem with vehicle spawn - by zudokuxd10 - 21.12.2012, 15:01
Re: problem with vehicle spawn - by zudokuxd10 - 21.12.2012, 19:07

Forum Jump:


Users browsing this thread: 1 Guest(s)