Jump to content
  • 0

pomoc Z dialogu dalsi dialog


djejsy

Dotaz

Cavte potrebujem od Vás pomoc, chcem urobit ze ked hrac v dialogu klikne na tlacitko tak sa vykonaju funkcie a naskoci mu dalsi dialog.

Nejak tak:

if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{
bla bla bla;
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "", "Bla\nBla", "-->", "-->");
}
}
}

 

Dakujem za odpoved.

Link to comment
Share on other sites

Recommended Posts

  • 0

Hmm nechapem ako to myslis.

A sorac malo to byt takto:

if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{
bla bla bla;
}
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "", "Bla\nBla", "-->", "-->");
}
}

Lebo tak to mam a nejde to :d

Link to comment
Share on other sites

  • 0

Joooj :d no tak napr takto:

if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid,31,100);
}
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "", "Bla\nBla", "-->", "-->");
}
}

Link to comment
Share on other sites

  • 0

lol :d Takhle to myslíš :d :D

 

if(dialogid == 1)
{
if(response == 1)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid,31,100);
}
if(listitem == 1)
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"ASDV","Bla\nBla","asd","ASD");
}
}

 

 

.... ??

Link to comment
Share on other sites

  • 0

Nechapes s popisu? Nie ked si vyberie nejaku polozku v dialogu ale ked klikne na tlacitko myslim to spodne.

Lebo ked klikne na polozku tak sa vykona to GivePlayer... ale ja to nepotrebujem takto.

Chapes? Malo by to byt na spôsob ako ked nieco instalujes.. klikas na NEXT a naskoci ti dalsie okno :d

Link to comment
Share on other sites

  • 0

Skusal som to spravit aj takto:

if(dialogid == 1)
{
if(response == 1)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid,31,100);
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"","Bla\nBla","1","2");
}
}

Ale ono mi to ukaze iba ten prvy dialog v ktorom si vyberiem co chcem a druhy nenaskoci .

Môze to byt koli tomu ze to mam ked sa hrac prihlasim lebo hned po tom prvom dialogu mu naskocia vyber postavy a tlacidlo spawn.. neviete ako sa zbavim toto vyberania postav?

Link to comment
Share on other sites

  • 0

Dobre takl sa opýtam takto: Da sa nejako vypnut ten vyber skinov? aby mi to zobrazowalo tie dialogy ako ma. a w poslednom dialogu bude SpawnPlayer(playerid);

Link to comment
Share on other sites

  • 0

No skusal som to cez case ale nejde to...

if(dialogid == dialogjazyk)
{
if(response)
 {
   switch(listitem)
       {
           case 0:
           {
            SendClientMessage(playerid,RED,"Vybral si si Slovenčinu.");
            jazyk[playerid]=1;
            ShowPlayerDialog(playerid, dialogpohlavie, DIALOG_STYLE_LIST, "", "Muž\nŽena", "-->", "-->");
  }
  case 1:
        {
          SendClientMessage(playerid,RED,"Vybral sis Češtinu.");
          jazyk[playerid]=2;
            ShowPlayerDialog(playerid, dialogpohlavie, DIALOG_STYLE_LIST, "", "Muž\nŽena", "-->", "-->");
        }
        case 2:
        {
            SendClientMessage(playerid,RED,"You choose English language.");
            jazyk[playerid]=3;
            ShowPlayerDialog(playerid, dialogpohlavie, DIALOG_STYLE_LIST, "", "Male\nFemale", "-->", "-->");
     }
   }
}
}

Link to comment
Share on other sites

  • 0

skus to takhlejen takova předělavka

if(dialogid == dialogjazyk)
{
if(response == 1)
 {
   switch(listitem)
       {
          case 0:SendClientMessage(playerid,RED,"Vybral si si Slovenčinu."),jazyk[playerid]=1,ShowPlayerDialog(playerid, dialogpohlavie, DIALOG_STYLE_LIST, "", "Muž\nŽena", "-->", "-->");
          case 1:SendClientMessage(playerid,RED,"Vybral sis Češtinu."),jazyk[playerid]=2,ShowPlayerDialog(playerid, dialogpohlavie, DIALOG_STYLE_LIST, "", "Muž\nŽena", "-->", "-->");
          case 2:SendClientMessage(playerid,RED,"You choose English language."),jazyk[playerid]=3,ShowPlayerDialog(playerid, dialogpohlavie, DIALOG_STYLE_LIST, "", "Male\nFemale", "-->", "-->");

   }
}
}

Link to comment
Share on other sites

  • 0
heeej noaaa :d ono mi to zobrazi ten prvy dialogjazyk ale ten dialogpohlavie uz nie...

 

Problém bude v publicu OnDialogResponse...

 

Máš 2 možnosti :

 

1. S dialogmi choď od najvyššieho :

 

if(dialogid == 15)

if(dialogid == 14) atď...

 

2. miesto if používaj else if

 

if(dialogid == 1)

else if(dialogid == 2) atď... (1. musí byť IF až 2,3,4.. ELSE IF !!)

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...