10.08.2011, 00:14
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!
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;
}