Makign a Loop ?
#10

pawn Код:
COMMAND:refuel(playerid)
{
    for(new i; i < sizeof(FuelStationsPos); i++)
    {
        if(IsPlayerInRangeOfPoint(playerid,7.0,FuelStationsPos[i][0], FuelStationsPos[i][1], FuelStationsPos[i][2]))
        {
            if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,RED,"Your Need To Be In A Vehicle!");
            //This is all the refulling function which work all fine
            return 1;
        }
    }
    SendClientMessage(playerid,RED,"Your Not Near A Fuel Station!");
    return 1;
}
Reply


Messages In This Thread
Makign a Loop ? - by The-Warrior - 10.12.2011, 17:51
Re: Makign a Loop ? - by MadeMan - 10.12.2011, 18:04
Re: Makign a Loop ? - by MP2 - 10.12.2011, 18:06
Re: Makign a Loop ? - by The-Warrior - 10.12.2011, 18:16
Re: Makign a Loop ? - by MadeMan - 10.12.2011, 18:17
Re: Makign a Loop ? - by The-Warrior - 10.12.2011, 18:22
Re: Makign a Loop ? - by MadeMan - 10.12.2011, 18:24
Re: Makign a Loop ? - by sciman001 - 10.12.2011, 18:24
Re: Makign a Loop ? - by The-Warrior - 10.12.2011, 18:34
Re: Makign a Loop ? - by MadeMan - 10.12.2011, 18:39

Forum Jump:


Users browsing this thread: 1 Guest(s)