Oko kiosk

Započeo Mahone, April 13, 2020, 12:17:30 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Ne moze /kiosk
Dio skripte:
YCMD:kiosk(playerid, params[],help)
{
    if(!IsPlayerInRangeOfPoint(playerid, 2.0, 1180.5220,-956.9572,42.8687)) return Error(playerid, "Niste na mestu!");
    else if(!IsPlayerInRangeOfPoint(playerid, 2.0, 1375.9166,-1043.5790,26.6709)) return Error(playerid, "Niste na mestu!");
    else if(!IsPlayerInRangeOfPoint(playerid, 2.0, 1575.9442,-1743.8853,13.5469)) return Error(playerid, "Niste na mestu!");
    else if(!IsPlayerInRangeOfPoint(playerid, 2.0, 2064.9243,-1943.6215,13.5469)) return Error(playerid, "Niste na mestu!");
    else if(!IsPlayerInRangeOfPoint(playerid, 2.0, 1182.0746,-1410.6460,13.2467)) return Error(playerid, "Niste na mestu!");
    else if(!IsPlayerInRangeOfPoint(playerid, 2.0, 1946.7159,-1938.7015,13.5469)) return Error(playerid, "Niste na mestu!");
    else if(!IsPlayerInRangeOfPoint(playerid, 2.0, 1830.1787,-1884.5076,13.4474)) return Error(playerid, "Niste na mestu!");
	{
	    new x;
	    new i;
	    x++;
		KioskKupovina[playerid] = i;
		SPD(playerid, DIALOG_TRAFIKA, DIALOG_STYLE_LIST, "{FFFFFF}Trafika", ""SERVER"Dopuna\t\t{FFFFFF}Cena: 20$\n"SERVER"Dopuna\t\t{FFFFFF}Cena: 50$\n"SERVER"Dopuna\t\t{FFFFFF}Cena: 100$\n"SERVER"Sok\t\t{FFFFFF}Cena: 10$\n"SERVER"Cigare\t\t{FFFFFF}Cena: 20$\n"SERVER"Upaljac\t\t{FFFFFF}Cena: 10$\n"SERVER"Cokoladica\t\
																			{FFFFFF}Cena: 30$\n"SERVER"Traka\t\t{FFFFFF}Cena: 50$\n"SERVER"Povez\t\t{FFFFFF}Cena: 150$\n"SERVER"Imenik\t\t{FFFFFF}Cena: 30$", "Odaberi", "Izlaz");
	}
	return 1;
}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]/[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): Kada ocu /kiosk pise mi da nisam na mestu i kad dodjem na mesto (tamo dje sam stavio rangeofpoinT) i tu mi je isto pise niste na mestu

A jesi probao bez uzvicnika samo
IsPlayerInRangeOfPoint
?

Citat: #ТHΞV1ЛЛΛϾHΛ_ poslato April 13, 2020, 12:55:09 POSLE PODNE
A jesi probao bez uzvicnika samo
IsPlayerInRangeOfPoint
?
Jesam ali mi onda radi svuda samo ne na tim pozicijama :D

Probaj ovako

if( !IsPlayerInRangeOfPoint( playerid, 2.0, 1180.5220,-956.9572,42.8687 ) &&
			!IsPlayerInRangeOfPoint( playerid, 2.0, 1375.9166,-1043.5790,26.6709) &&
			!IsPlayerInRangeOfPoint( playerid, 2.0, 1575.9442,-1743.8853,13.5469 ) &&
			!IsPlayerInRangeOfPoint( playerid, 2.0, 2064.9243,-1943.6215,13.5469 ) &&
			!IsPlayerInRangeOfPoint( playerid, 2.0, 1182.0746,-1410.6460,13.2467 ) &&
                        !IsPlayerInRangeOfPoint( playerid, 2.0, 1946.7159,-1938.7015,13.5469 ) &&
			!IsPlayerInRangeOfPoint( playerid, 2.0, 1830.1787,-1884.5076,13.4474 ) ) return Error( playerid, "Niste na mestu!");

Citat: Miki11 poslato April 13, 2020, 13:16:05 POSLE PODNE
Probaj ovako

if( !IsPlayerInRangeOfPoint( playerid, 2.0, 1180.5220,-956.9572,42.8687 ) &&
			!IsPlayerInRangeOfPoint( playerid, 2.0, 1375.9166,-1043.5790,26.6709) &&
			!IsPlayerInRangeOfPoint( playerid, 2.0, 1575.9442,-1743.8853,13.5469 ) &&
			!IsPlayerInRangeOfPoint( playerid, 2.0, 2064.9243,-1943.6215,13.5469 ) &&
			!IsPlayerInRangeOfPoint( playerid, 2.0, 1182.0746,-1410.6460,13.2467 ) &&
                        !IsPlayerInRangeOfPoint( playerid, 2.0, 1946.7159,-1938.7015,13.5469 ) &&
			!IsPlayerInRangeOfPoint( playerid, 2.0, 1830.1787,-1884.5076,13.4474 ) ) return Error( playerid, "Niste na mestu!");

Hvala puno sada radi :D

LOCK !