[POMOC] Pravljenje vise Trgovina 24/7

Započeo MaTTaTa
10. Nov. 2011. Zaključano
842
pregleda
10
postova
rakun1993
4
Made Man
10. Nov. 2011.
Skripta koju koristim:BG
Detaljan opis problema: Ovako radim Trgovine 24/7. Napravio sam ih par i sve ali ato kad na bilo koju od njih udem izadem samo na prvu koju sam napravio. Kako to da rjesim da izlazi tamo gdje sam usao 😄
Dio skripte:

Ulaz koji radi
else if(IsPlayerInRangeOfPoint(playerid,3.0, 1315.4563,-898.1602,39.5781)) //24/7 Burg
{
    SetPlayerInterior(playerid,17);
    SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
    }
    else if(IsPlayerInRangeOfPoint(playerid,3.0, 1352.3215,-1758.8708,13.5078)) //24/7 Vijecnica
{
    SetPlayerInterior(playerid,17);
    SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
    }


Izlaz koji ne radi na svakom nego izlaze sve kod 24/7 kod burga
	else if(IsPlayerInRangeOfPoint(playerid,3.0, -25.884498,-185.868988,1003.546875)) //24/7 Burg
{
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1315.4563,-898.1602,39.5781);
}
else if(IsPlayerInRangeOfPoint(playerid,3.0, -25.884498,-185.868988,1003.546875)) //24/7 Vijecnica
{
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1352.3215,-1758.8708,13.5078);
}


Neke slike/video za lakse dobivanje pomoci(neobavezno)://
FlasHica
5
Kingpin
10. Nov. 2011.
primjer...

if(IsPlayerInRangeOfPoint(playerid, 3.0, x1 ,y1, z1))
{
  SetPlayerPos(playerid, x2, y2, z2);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, x2 ,y2, z2))
{
  SetPlayerPos(playerid, x1, y1, z1);
}
rakun1993
4
Made Man
10. Nov. 2011.
Tnx ali de mi malo reci ovo prvo je za ulaz, a ovo drugo za izlaz jel da 😄

i ove x1 ,y1, z1 - idu kordinate ulaza , x2, y2, z2 - idu kordinate interiora😕

Attitude.fx wrote on November 10, 2011, 5:07 pm:
primjer...

if(IsPlayerInRangeOfPoint(playerid, 3.0, x1 ,y1, z1))
{
 SetPlayerPos(playerid, x2, y2, z2);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, x2 ,y2, z2))
{
 SetPlayerPos(playerid, x1, y1, z1);
}
FlasHica
5
Kingpin
10. Nov. 2011.
Da, zamislio sam x1,y1,z1 kao koordinate ulaza a ove sa 2 kao koordinate izlaza..
Mrki_Drakula
3
Hustler
10. Nov. 2011.
Ovo neradi...//edit
rakun1993
4
Made Man
10. Nov. 2011.
pa mislim da mi nisi nista pomogao nego da je isto ko sto je bilo ;(
Mrki_Drakula
3
Hustler
10. Nov. 2011.
Posto vidim da ti svi ulazi idu u isti int, naravno da ce te kod izbaciti kod burga ili bilo gde, jer kod nezna odakle si ti dosao...

Probaj sa boolovima..naprimer..


new bool:burg;
new bool:vijecnica;

else if(IsPlayerInRangeOfPoint(playerid,3.0, 1315.4563,-898.1602,39.5781)) //24/7 Burg
{
    SetPlayerInterior(playerid,17);
    SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
            burg = true;
        }
    else if(IsPlayerInRangeOfPoint(playerid,3.0, 1352.3215,-1758.8708,13.5078)) //24/7 Vijecnica
{
    SetPlayerInterior(playerid,17);
    SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
            vijecnica = true;
        }


Pa napravis ako igrac hoce da izadje da zna odakle je dosao.

else if(IsPlayerInRangeOfPoint(playerid,3.0, -25.884498,-185.868988,1003.546875)) //24/7 Burg
{
    if(burg == true);
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1315.4563,-898.1602,39.5781);
    burg = false;
    }
    if(vijecnica == true);
    {
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1352.3215,-1758.8708,13.5078);
    vijecnica = false;
    }
}
rakun1993
4
Made Man
10. Nov. 2011.
ewo sta izbaci koje errore

C:\Documents and Settings\RaKuN\Desktop\SAMP\''BG'' Balkan GanG\gamemodes\BG.pwn(3839) : error 036: empty statement
C:\Documents and Settings\RaKuN\Desktop\SAMP\''BG'' Balkan GanG\gamemodes\BG.pwn(3845) : error 036: empty statement


a ewo linije

if(burg == true);
if(vijecnica == true);
Deleted User
Obrisan korisnik
10. Nov. 2011.
"BG" Ra wrote on November 10, 2011, 7:43 pm:
ewo sta izbaci koje errore

C:\Documents and Settings\RaKuN\Desktop\SAMP\''BG'' Balkan GanG\gamemodes\BG.pwn(3839) : error 036: empty statement
C:\Documents and Settings\RaKuN\Desktop\SAMP\''BG'' Balkan GanG\gamemodes\BG.pwn(3845) : error 036: empty statement


a ewo linije

if(burg == true);
if(vijecnica == true);

Posle if neide ;
rakun1993
4
Made Man
10. Nov. 2011.
Quote from November 10, 2011, 7:43 pm:
ewo sta izbaci koje errore

C:\Documents and Settings\RaKuN\Desktop\SAMP\''BG'' Balkan GanG\gamemodes\BG.pwn(3839) : error 036: empty statement
C:\Documents and Settings\RaKuN\Desktop\SAMP\''BG'' Balkan GanG\gamemodes\BG.pwn(3845) : error 036: empty statement


a ewo linije

if(burg == true);
if(vijecnica == true);

Posle if neide ;

hvala puno 😄

LOCK!

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha