[HELP]Looping problem
#2

pawn Код:
CMD:pump(playerid, params[])
{
for(new i; i < MAX_PUMPI; i++)
        {
            if(!IsPlayerInRangeOfPoint(playerid, 5.0, PI[i][pPozx], PI[i][pPozy], PI[i][pPozz]))
            {
            SCM(playerid, BELA, "You are not near pump");
            return 1;
            }
            else if(PlayerInfo[playerid][pKljucFirme] != PI[i][pFirme])
            {
             SCM(playerid, BELA, BlaBlaBla!");
             return 1;
            }
else
{
            ShowPlayerDialog(playerid, 29, DIALOG_STYLE_LIST, "
Pumpa", "Ime Pumpe\nCijena litre\nTrenutno stanje goriva", "Izaberi", "Izadji");
}
      }
return 1;
}

Try this.
Reply


Messages In This Thread
[HELP]Looping problem - by Dusan01 - 11.01.2014, 20:37
Re: [HELP]Looping problem - by Zamora - 11.01.2014, 21:45
Re: [HELP]Looping problem - by Dusan01 - 11.01.2014, 21:58

Forum Jump:


Users browsing this thread: 1 Guest(s)