Should return a value
#1

Hello Guys!

I'm having some problem :/

pawn Код:
CMD:pylti(playerid, params[])
{
    for(new i=1; i < MAX_FUEL_STATIONS; i++)
    {
        if(FuelStationCreated[i])
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(!ToggleEngine(vehicleid, VEHICLE_PARAMS_OFF)) return SendClientMessage(playerid, COLOR_RED, "Isjunkite varikli pries pildami kura!"); // Error line <<<<,
            if(IsPlayerInRangeOfPoint(playerid, 15.0, FuelStationPos[i][0], FuelStationPos[i][1], FuelStationPos[i][2]))
            {
                SetPVarInt(playerid, "FuelStation", i);
                ShowDialog(playerid, DIALOG_FUEL);
                return 1;
            }
        }
    }
    SendClientMessage(playerid, COLOR_RED, "You are not in a fuel station!");
    return 1;
}
Error

pawn Код:
(1617) : warning 209: function "ToggleEngine" should return a value
Reply


Messages In This Thread
Should return a value - by Dziugsas - 11.04.2014, 13:45
Re: Should return a value - by Konstantinos - 11.04.2014, 13:51
Re: Should return a value - by Dziugsas - 11.04.2014, 13:51
Re: Should return a value - by BroZeus - 11.04.2014, 13:52
Re: Should return a value - by Dziugsas - 11.04.2014, 13:55
Re: Should return a value - by Konstantinos - 11.04.2014, 13:57
Re: Should return a value - by Dziugsas - 11.04.2014, 14:00
Re: Should return a value - by Conradus - 11.04.2014, 14:13

Forum Jump:


Users browsing this thread: 1 Guest(s)