AttachTrailerToVehicle - Must stream vehicles how ?
#1

Hi,

Mine AttachTrailerToVehicle isnt working so i looked ok wiki and i said: Both vehicles need to be streamed but how??

piece of code where it's been used:
Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
  new Veh = GetPlayerVehicleID(playerid);
  new Float:X,Float:Y,Float:Z;
    if(PlayerIsTrucker[playerid] == -1 && GetVehicleModel(GetPlayerVehicleID(playerid)) == TRUCK)
        {
            if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
                {
                DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
            }
            DisablePlayerRaceCheckpoint(playerid);
        TextDrawHideForPlayer(playerid, Driv);
        TextDrawShowForPlayer(playerid, DrivGas);
            GetPlayerPos(playerid,X,Y,Z);
        PlayerTrailer = CreateVehicle(584,X,Y+2,Z,0.0,1,1,60);
        AttachTrailerToVehicle(PlayerTrailer,GetPlayerVehicleID(playerid));
        new rand = random(sizeof(checkpoints));
        SetPlayerRaceCheckpoint(playerid,0,checkpoints[rand][0],checkpoints[rand][1],checkpoints[rand][2],228.6482,1477.7711,10.1840,checkpoints[rand][3]);
    }
Dont look to identation and yes there is no return 1; becaus is not everything, and i dont show it all

Pleas help

~Shotyoudie
Reply


Messages In This Thread
AttachTrailerToVehicle - Must stream vehicles how ? - by shotyoudie - 17.04.2010, 11:10
Re: AttachTrailerToVehicle - Must stream vehicles how ? - by MadeMan - 17.04.2010, 12:18
Re: AttachTrailerToVehicle - Must stream vehicles how ? - by MPKaboose - 17.04.2010, 12:22
Re: AttachTrailerToVehicle - Must stream vehicles how ? - by MadeMan - 17.04.2010, 12:38
Re: AttachTrailerToVehicle - Must stream vehicles how ? - by shotyoudie - 17.04.2010, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)