Pitanje

Započeo Jiky, April 15, 2020, 01:08:22 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Pitanje
Dio skripte: [ pawn ]doljee /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]//[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): //

if(RangeZaUlaz(playerid))
	    {
	        SetPlayerInterior(playerid,1);
	        SetPlayerPos(playerid,452.489990,-18.179698,1001.132812);
	        SetCameraBehindPlayer(playerid);
	        SendClientMessage(playerid,COLOR_WHITE,"[Restoran]{33CCFF}Dobrodosli!");
		}
		else if(IsPlayerInRangeOfPoint(playerid,2.0,452.489990,-18.179698,1001.132812))
		{
		    SetPlayerInterior(playerid,0);
		    SetPlayerPos(playerid,RangeZaUlaz);
		    SetCameraBehindPlayer(playerid);
		    SendClientMessage(playerid,COLOR_WHITE,"[Restoran]{33CCFF}Dovidjenja!");
		}


stock RangeZaUlaz(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid,2.0-2191.7529,-2348.5066,30.6250,51.6484)) return 1; // random
	else if(IsPlayerInRangeOfPoint(playerid,2.0-2188.8259,-2344.5134,30.6250,53.5284)) return 1; // random
	else if(IsPlayerInRangeOfPoint(playerid,2.0-2182.8711,-2337.0608,30.6250,50.0817)) return 1; // random
	else if(IsPlayerInRangeOfPoint(playerid,2.0-2178.3003,-2331.3074,30.6250,51.3350)) return 1; // random
	else if(IsPlayerInRangeOfPoint(playerid,2.0-2169.5747,-2319.5032,30.6250,53.2150)) return 1; // random
	else if(IsPlayerInRangeOfPoint(playerid,2.0-2131.6355,-2377.5151,30.6250,52.6397)) return 1; // random
	else if(IsPlayerInRangeOfPoint(playerid,2.0-2129.6802,-2374.9871,30.6250,54.8331)) return 1; // random
	else if(IsPlayerInRangeOfPoint(playerid,2.0-2124.8647,-2368.9036,30.6250,58.9064)) return 1; // random
	else if(IsPlayerInRangeOfPoint(playerid,2.0-2119.9932,-2362.7578,30.6250,55.4597)) return 1; // random
	else if(IsPlayerInRangeOfPoint(playerid,2.0-2165.7407,-2416.6582,30.8280,53.3429)) return 1; // random
	else if(IsPlayerInRangeOfPoint(playerid,2.0-2178.0327,-2400.5359,30.6250,187.9873)) return 1; // random
	return 0;
}


Kako da naprawim da se igrac wrati na mjesto gde je pritisnuo F ili Enter

/*		if(RangeZaUlaz(playerid))
	    {
	        SetPlayerInterior(playerid,1);
	        SetPlayerPos(playerid,452.489990,-18.179698,1001.132812);
	        SetCameraBehindPlayer(playerid);
	        SendClientMessage(playerid,COLOR_WHITE,"[Restoran]{33CCFF}Dobrodosli!");
		}  OWO ZNAM ALI OWO DOLJE MI NIJE JASNO*/
		else if(IsPlayerInRangeOfPoint(playerid,2.0,452.489990,-18.179698,1001.132812))
		{
		    SetPlayerInterior(playerid,0);
		    SetPlayerPos(playerid,RangeZaUlaz);
		    SetCameraBehindPlayer(playerid);
		    SendClientMessage(playerid,COLOR_WHITE,"[Restoran]{33CCFF}Dovidjenja!");
		}

isto kako si i za unutra tako iz unutra napravis za spolja logicno

Citat: Remaa99 poslato April 15, 2020, 01:31:27 PRE PODNE
isto kako si i za unutra tako iz unutra napravis za spolja logicno
ne shwatas me .. zelim da mi je u jedan if i else if.. necu da brute forcam .. kuzis?

Nista nikome nije jasno :/

Budi precizniji i malo bolje objasni

Citat: V01D poslato April 15, 2020, 09:47:17 PRE PODNE
Nista nikome nije jasno :/

Budi precizniji i malo bolje objasni

imam te stockowe .. kad udje u enterijer to je swe okej
isti je enterijer za swe
ali zelim naprawit da i kad izadje ga wrati na to mesto gde je usao ..

Citat: Jiky poslato April 15, 2020, 23:04:17 POSLE PODNE
imam te stockowe .. kad udje u enterijer to je swe okej
isti je enterijer za swe
ali zelim naprawit da i kad izadje ga wrati na to mesto gde je usao ..
https://balkan-samp.com/forum/index.php?topic=49048.0