SetVehicleParamsEx
#1

Hello!

How do i get "SetVehicleParamsEx" work? i mean every time i use that i get errors that it isnt defined.
Do i missing a include? and i cant #define, then i get some errors somewhere else

im trying to make so when you get out of fuel, the engine stops running, i even dont know if this will work at all

script not made by me!
pawn Код:
public timer_update()
{
    for(new i=0;i<MAX_PLAYERS;i++) {
        if (isrefuelling[i]) return 0;
        new vid = GetPlayerVehicleID(i);
        if (GetPlayerVehicleSeat(i) == 0) {
            fuel[vid] = fuel[vid] - 1;
            if (fuel[vid]<1)
            {
                fuel[vid] = 0;
                Engine[i]=0;
                GameTextForPlayer(i,"~r~You are out of ~w~fuel~r~!",5000,4);
                SetVehicleParamsEx(GetPlayerVehicleID(playerid),0,lights,alarm,doors,bonnet,boot,objective);
            }
        }
        new string[128];format(string,sizeof string,"Fuel: %i",fuel[vid] /3);
        TextDrawSetString(td_fuel[i],string);
    }
    return 1;
}
Reply


Messages In This Thread
SetVehicleParamsEx - by cruising - 10.08.2011, 00:14
Re: SetVehicleParamsEx - by Vince - 10.08.2011, 00:28
Re: SetVehicleParamsEx - by cruising - 10.08.2011, 00:34
Re: SetVehicleParamsEx - by Unte99 - 10.08.2011, 21:49
Re: SetVehicleParamsEx - by cruising - 10.08.2011, 21:55

Forum Jump:


Users browsing this thread: 1 Guest(s)