kondrik228
Специалист
PHP:
error 017: undefined symbol "SetFillingFuel"
PHP:
CMD:fill(playerid, params[])
{
if(GetPVarInt(playerid, "PLAYER_FILLING") > 0) return true;
else if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_MAIN,"» {9c9c9c}Вы должны находится за рулём транспорта!");
else if(VehicleInfo[GetPlayerVehicleID(playerid)][vEngine] == true) return SendClientMessage(playerid, COLOR_MAIN,"» {9c9c9c}Заглушите двигатель!");
for(int i = 1; i <= TOTALGAS; ++i)
{
if(IsPlayerInDynamicArea(playerid, GasInfo[i][gsArea]))
{
print("1");
if(BizzInfo[GasInfo[i][gsBizzID]][bLock] > 0) return SendClientMessage(playerid, COLOR_MAIN,"» {9c9c9c}АЗС не работает!");
print("2");
for(int x = 0; x < 18; x++) PlayerTextDrawShow(playerid, Filling[playerid][x]);
print("3");
SelectTextDraw(playerid, COLOR_BOX);
print("4");
params[0] = GetPlayerVehicleID(playerid);
print("5");
params[1] = GetVehicleModel(params[0])-399;
print("6");
SetPVarInt(playerid, "PLAYER_FILLING_COUNT", floatround(VehicleInfo[params[0]][vFuel]));
print("8");
SetPVarInt(playerid, "PLAYER_FILLING", 1);
print("9");
switch(TransInfo[params[1]][trFuelMark])
{
case 0: PlayerTextDrawSetString(playerid, Filling[playerid][1], "Diesel");
case 1: PlayerTextDrawSetString(playerid, Filling[playerid][1], "92 Petrol");
case 2: PlayerTextDrawSetString(playerid, Filling[playerid][1], "95 Petrol");
}
print("10");
PlayerTextDrawSetString(playerid, Filling[playerid][16], "$0");
print("11");
SetFillingFuel(playerid, floatround(VehicleInfo[params[0]][vFuel]), TransInfo[params[1]][trTank]);
print("12");
return true;
}
}
return true;
}
Не пойму, куда сунуть "SetFillingFuel"?
Последнее редактирование:
