Error when compile.
#8

Delete stock SetCarPos;
pawn Код:
stock SetCarPos(playerid, Float:Vx, Float:Vy, Float:Vz, Float:Va, Float:Px, Float:Py, Float:Pz, Float:Pa, interior)
{
    TogglePlayerControllable(playerid, 1);
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        SetVehiclePos(GetPlayerVehicleID(playerid),Vx,Vy,Vz);
        SetVehicleZAngle(GetPlayerVehicleID(playerid),Va);
        LinkVehicleToInterior(GetPlayerVehicleID(playerid),interior);
    }
    else
    {
        SetPlayerPos(playerid,Px,Py,Pz);
        SetPlayerFacingAngle(playerid,Pa);
    }
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid, interior);
    return 1;
}
And replace the SetCarPos(carid) to SetCarPos(playerid, Float:Vx, Float:Vy, Float:Vz, Float:Va, Float:Px, Float:Py, Float:Pz, Float:Pa, interior)

Since I don't know what exactly do you want this function does.
Reply


Messages In This Thread
Error when compile. - by deltapro - 22.02.2012, 18:12
Re: Error when compile. - by Toreno - 22.02.2012, 18:25
Re : Error when compile. - by deltapro - 22.02.2012, 18:37
Re: Error when compile. - by Toreno - 22.02.2012, 18:47
Re : Error when compile. - by deltapro - 22.02.2012, 18:48
Re: Error when compile. - by Konstantinos - 22.02.2012, 18:55
Re : Error when compile. - by deltapro - 22.02.2012, 19:22
Re: Error when compile. - by Konstantinos - 22.02.2012, 19:30

Forum Jump:


Users browsing this thread: 1 Guest(s)