[Pomoc] GPS Dialog

Započeo Tong1950Po
25. Mar. 2012. Zaključano
679
pregleda
9
postova
Hail
4
Made Man
25. Mar. 2012.
Skripta koju koristim: CLRP
Detaljan opis problema: Neznam kako da stavim GPS u dialog! Pokusava sam sve moguca rijesenja ! ali nikako ne mogu da rijesim
Dio skripte: GPS
if(strcmp("/uzmiaktovku", cmdtext, true, 10) == 0)
{
if(PlayerInfo >= 0 || PlayerInfo >= 0) // Samo za igrace te organizacije(organizacija broj 1)
{
SetPlayerAttachedObject( playerid, 0, 1210, 5, 0.309078, 0.085499, 0.029562, 347.746734, 263.091888, 1.445542, 1.101942, 1.000000, 1.000000 ); // briefcase - aktovka
}
return 1;
}
if(strcmp("/gps 1", cmdtext, true) == 0) //provjerava dali je igrac upisao komandu za gps do policije
  {
      SetPlayerCheckpoint(playerid,1481.0273,-1770.5774,18.7958,3.0);
      SendClientMessage(playerid, zuta, "GPS: Namjestili ste vaÅ¡u GPS lokaciju na Vijecnicu!");
      return 1; //Ukoliko vam je to zadnja GPS lokacija, stavite 0 inace ce viti problema
  }

if(strcmp("/gps 2", cmdtext, true) == 0) //provjerava dali je igrac upisao komandu za gps do policije
  {
      SetPlayerCheckpoint(playerid,1462.0543,-1011.3368,26.8438,3.0);
      SendClientMessage(playerid, zuta, "GPS: Namjestili ste vaÅ¡u GPS lokaciju na Banku!");
      return 1; //Ukoliko vam je to zadnja GPS lokacija, stavite 0 inace ce viti problema
  }

if(strcmp("/gps 3", cmdtext, true) == 0) //provjerava dali je igrac upisao komandu za gps do policije
  {
      SetPlayerCheckpoint(playerid,1172.8307,-1323.3011,15.4001,3.0);
      SendClientMessage(playerid, zuta, "GPS: Namjestili ste vaÅ¡u GPS lokaciju na Bolnicu!");
      return 1; //Ukoliko vam je to zadnja GPS lokacija, stavite 0 inace ce viti problema
  }

if(strcmp("/gps 4", cmdtext, true) == 0) //provjerava dali je igrac upisao komandu za gps do policije
  {
      SetPlayerCheckpoint(playerid,2154.4404,-1181.2894,23.3944,3.0);
      SendClientMessage(playerid, zuta, "GPS: Namjestili ste vaÅ¡u GPS lokaciju na Autosalon!");
      return 1; //Ukoliko vam je to zadnja GPS lokacija, stavite 0 inace ce viti problema
  }

if(strcmp("/gps 5", cmdtext, true) == 0) //provjerava dali je igrac upisao komandu za gps do policije
  {
      SetPlayerCheckpoint(playerid,1216.4042,-915.5415,42.9203,3.0);
      SendClientMessage(playerid, zuta, "GPS: Namjestili ste vaÅ¡u GPS lokaciju na Burg!");
      return 1; //Ukoliko vam je to zadnja GPS lokacija, stavite 0 inace ce viti problema
  }

if(strcmp("/gps 6", cmdtext, true) == 0) //provjerava dali je igrac upisao komandu za gps do policije
{
    SetPlayerCheckpoint(playerid,1553.7538,-1675.4840,16.1953,3.0); //(Pozicija:x,Pozicija:y,Pozicija:z,Velicina markera)
    SendClientMessage(playerid, zuta, "GPS: Namjestili ste vaÅ¡u GPS lokaciju na Policiju!");
    return 1;
}

if(strcmp("/gps", cmdtext, true) == 0) //provjerava dali je igrac upisao odredenu komandu
{
    SendClientMessage(playerid, SVJETLOPLAVA, "|__________Lokacije__________|");
    SendClientMessage(playerid, COLOR_WHITE, "|1 - Vijecnica  2 - Banka"); // 'narancasta' - boja koju smo definirali na pocetku
    SendClientMessage(playerid, COLOR_WHITE, "|3 - Bolnica    4 - Autosalon");
    SendClientMessage(playerid, COLOR_WHITE, "|5 - Burg        6 - Policiska Uprava");
    SendClientMessage(playerid, SVJETLOPLAVA, "|_____________________________|");
    return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): Cini mi se da ne triba, ako bude tribalo stavicu.
Hail
4
Made Man
25. Mar. 2012.
oceli neko?
Deleted User
Obrisan korisnik
25. Mar. 2012.
malo bolje objasni ne kontam
Nxidza
5
Crime Lord
25. Mar. 2012.
if(strcmp("/gps", cmdtext, true) == 0)
{
ShowPlayerDialog(playerid, 1111, DIALOG_STYLE_LIST, "GPS", "1\n2\n3\n4\n5\n6", "Ok", "Odustani");
return 1;
}


i onda pod public ondialogresponse nesto tipa :
if(dialogid == 1111)
{
if(response)
{
    if(listitem == 0)
    {
                                ovde SetPlayerCheckpoint od /gps1
                                }
if(listitem == 1)
    {
                                ovde SetPlayerCheckpoint od /gps2
                                }
if(listitem == 2)
    {
                                ovde SetPlayerCheckpoint od /gps3
                                }
if(listitem == 3)
    {
                                ovde SetPlayerCheckpoint od /gps4
                                }
if(listitem == 4)
    {
                                ovde SetPlayerCheckpoint od /gps5
                                }
if(listitem == 5)
    {
                                ovde SetPlayerCheckpoint od /gps6
                                }
}
}


Eto,tako nesto.
Aldin Begovic
4
Made Man
25. Mar. 2012.
if(strcmp("/gps", cmdtext, true) == 0) //provjerava dali je igrac upisao komandu za gps do policije
  {
        ShowPlayerDialog(playerid, 2012, DIALOG_STYLE_LIST, "{00C0FF}GPS","{00C0FF}Banka\nText po zelji\nText po Zelji\nText Po    zelji", "Odaberi", "Odustani");
      return 1; //Ukoliko vam je to zadnja GPS lokacija, stavite 0 inace ce viti problema
  }

E sadda nadji
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

i ispod dodaj ovo
if(dialogid == 2012)
{
    if(response)
    {
        if(listitem == 0)
        {
SetPlayerCheckpoint(playerid, 1955.8589,-1150.4568,21.5674, 8.0);
                                      SendClientMessage(playerid, 0x399C9CFF, "Oznacio si gps na banku .....");
}
else if(listitem == 1)
        {
         
                    SetPlayerCheckpoint(playerid, 1984.6722,-1151.8447,21.0730, 8.0);
                  SendClientMessage(playerid, 0x399C9CFF, "Oznacio si gps na banku .....");

}
else if(listitem == 2)
        {
     
                    SetPlayerCheckpoint(playerid, 1953.5142,-1162.5549,20.8554, 8.0);
                    SendClientMessage(playerid, 0x399C9CFF, "Oznacio si gps na banku .....");
}

}
}


Eto pa javi ako ne radi da popravimo !
Nxidza
5
Crime Lord
25. Mar. 2012.
Aldin Begovic wrote on March 25, 2012, 2:10 pm:
if(strcmp("/gps", cmdtext, true) == 0) //provjerava dali je igrac upisao komandu za gps do policije
  {
        ShowPlayerDialog(playerid, 2012, DIALOG_STYLE_LIST, "{00C0FF}GPS","{00C0FF}Banka\nText po zelji\nText po Zelji\nText Po    zelji", "Odaberi", "Odustani");
      return 1; //Ukoliko vam je to zadnja GPS lokacija, stavite 0 inace ce viti problema
  }

E sadda nadji
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

i ispod dodaj ovo
if(dialogid == 2012)
{
    if(response)
    {
        if(listitem == 0)
        {
SetPlayerCheckpoint(playerid, 1955.8589,-1150.4568,21.5674, 8.0);
                                      SendClientMessage(playerid, 0x399C9CFF, "Oznacio si gps na banku .....");
}
else if(listitem == 1)
        {
         
                    SetPlayerCheckpoint(playerid, 1984.6722,-1151.8447,21.0730, 8.0);
                  SendClientMessage(playerid, 0x399C9CFF, "Oznacio si gps na banku .....")

}
else if(listitem == 2)
        {
     
                    SetPlayerCheckpoint(playerid, 1953.5142,-1162.5549,20.8554, 8.0);
                    SendClientMessage(playerid, 0x399C9CFF, "Oznacio si gps na banku .....")
}

}
}


Eto pa javi ako ne radi da popravimo !

A cekaj brate,ti to namerno radis onako da bi me nervirao ili sta...?Jebote gde god napisem nesto ti se odazoves tu i na isti nacin na koji sam i ja pomogao .
Deleted User
Obrisan korisnik
25. Mar. 2012.
Nxidza wrote on March 25, 2012, 2:10 pm:
if(strcmp("/gps", cmdtext, true) == 0) //provjerava dali je igrac upisao komandu za gps do policije
  {
        ShowPlayerDialog(playerid, 2012, DIALOG_STYLE_LIST, "{00C0FF}GPS","{00C0FF}Banka\nText po zelji\nText po Zelji\nText Po    zelji", "Odaberi", "Odustani");
      return 1; //Ukoliko vam je to zadnja GPS lokacija, stavite 0 inace ce viti problema
  }

E sadda nadji
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

i ispod dodaj ovo
if(dialogid == 2012)
{
    if(response)
    {
        if(listitem == 0)
        {
SetPlayerCheckpoint(playerid, 1955.8589,-1150.4568,21.5674, 8.0);
                                      SendClientMessage(playerid, 0x399C9CFF, "Oznacio si gps na banku .....");
}
else if(listitem == 1)
        {
         
                    SetPlayerCheckpoint(playerid, 1984.6722,-1151.8447,21.0730, 8.0);
                  SendClientMessage(playerid, 0x399C9CFF, "Oznacio si gps na banku .....")

}
else if(listitem == 2)
        {
     
                    SetPlayerCheckpoint(playerid, 1953.5142,-1162.5549,20.8554, 8.0);
                    SendClientMessage(playerid, 0x399C9CFF, "Oznacio si gps na banku .....")
}

}
}


Eto pa javi ako ne radi da popravimo !

A cekaj brate,ti to namerno radis onako da bi me nervirao ili sta...?Jebote gde god napisem nesto ti se odazoves tu i na isti nacin na koji sam i ja pomogao .
istina nekoliko puta kad sam pregledavao ti nekom pomognes on se odazove na isti nacin trebas ga moderatoru prijaviti i nece vise
Hail
4
Made Man
25. Mar. 2012.
izbaci mi errore
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4008) : error 017: undefined symbol "GivePlayerCash"
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4041) : error 017: undefined symbol "GivePlayerCash"
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4071) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4072) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4096) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4309) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4321) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4325) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4337) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4341) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4345) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4349) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4353) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4357) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4361) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4365) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4369) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4373) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4385) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4389) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4393) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4397) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4401) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4413) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4417) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\mario\My Documents\SAMP\LecevicA Server-Smapa\gamemodes\LA-RP.pwn(4421) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

26 Errors.
Aldin Begovic
4
Made Man
25. Mar. 2012.
Nisi zagradu zatvorio ! Fali ti jedna { ili }
Ajd daj taj
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
ja cu ti ubacit ovo ti sam prekopiraj 😄

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha