Quote:
Originally Posted by Jejox
Intenta ahora
EDITADO:
pawn Код:
#define MAX_FUEL (100)
if(!strcmp(ItemName,"Fuel",true)) { static vehid; vehid = -1; vehid = GetClosestVehicle(playerid,4.0); if(vehid == -1) return SendClientMessage(playerid,red,"» You aren't near a vehicle!"); if(Fuel[vehid] >= MAX_FUEL) return SendClientMessage(playerid,white,"» "cred"This %s does not need anymore fuel."),GetVehicleName(vehicleid),Fuel[vehid] = 100; RemoveItem(playerid,"Fuel",1); format(string,sizeof string,""cjam"%s(%i) has added some fuel to his vehicle.",GetPName(playerid),playerid); SendNearMessage(playerid,white,string,20); if(PInfo[playerid][SPerk] == 2) Fuel[vehid]+=12; else Fuel[vehid]+=7; if(Fuel[vehid] > 100) Fuel[vehid] = 100; UpdateVehicleFuelAndOil(vehid); }
|
me salen estos errores
Код:
(4825) : error 017: undefined symbol "vehicleid"
(4834) : warning 217: loose indentation
adjunto la linea 4825
Код:
if(Fuel[vehid] >= MAX_FUEL) return SendClientMessage(playerid,white,"» "cred"This %s does not need anymore fuel."),GetVehicleName(vehicleid),Fuel[vehid] = 100;
adjunto la linea 4834
Код:
if(!strcmp(ItemName,"Oil",true))
saludos...