11.01.2014, 20:37
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:
and here is this:
Код:
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; }
Код:
#define MAX_PUMPI 50 new PI[MAX_PUMPI][Pumpe];