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

praveze nie vzy sa zobrazi iba ten prvy a ked kliknem na tlacitko/enter/vyberiem polozku tak ten zmizne vykona sa funkcia ale nenaskoci dalsi dialog

Link to comment
Share on other sites

  • 0

Možná sem nepochopil co tady řešite, ale možná sem pochopil jak to on myslel

 

if(dialogid == 2)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid,29,999);
}
if(listitem == 1)
{
SetPlayerSkin(playerid,20);
}
if(listitem == 2)
{
GivePlayerMoney(playerid,5000);
}
}
}


if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "blablabla", "Bla\nbla\nbla", "Vybrat", "Exit");
}
}
}
}

Link to comment
Share on other sites

  • 0

Uz som to vyriesil s pomocou rhs zaco mu dakujem. Nemal som nadpisy w dialogoch pretoze som ich nechcel a myslel som ze to takto bude fungovat.

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...