[HELP]Looping problem
#1

Hi guys, i m creating dinamic system and when i create pump id 0 and go near her and type /pump it works fine and when i create pump with id 1 and i go near her and type /pump its says to im not near pump so heres command:

Код:
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;
			}
			if(PlayerInfo[playerid][pKljucFirme] != PI[i][pFirme])
			{
			 SCM(playerid, BELA, BlaBlaBla!");
			 return 1;
			}
			ShowPlayerDialog(playerid, 29, DIALOG_STYLE_LIST, "Pumpa", "Ime Pumpe\nCijena litre\nTrenutno stanje goriva", "Izaberi", "Izadji");
	  }
return 1;
}
and here is this:

Код:
#define MAX_PUMPI 50
new PI[MAX_PUMPI][Pumpe];
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: 2 Guest(s)