Jump to content
  • 0

pomoc ShowPlayerDialogEx


Albus Brambůrek

Dotaz

Ahoj, takže bych se chtěl zeptat jestli nemá někdo ¨zkušenosti s tímto žádné errory to nepíše jen se žádný z dialogů neukáže.

 

Code:

 

new bool:ShowedPlayerDialog[MAX_PLAYERS_EX];

 

stock ShowPlayerDialogEx(playerid, id, style, lis[], mess[], button1[], button2[])
{
if(ShowedPlayerDialog[playerid] == true) return false;
ShowPlayerDialog(playerid, id, style, lis, mess, button1, button2);
ShowedPlayerDialog[playerid] = true;
return true;
}

 

A když používám u všeho ShowPlayerDialogEx tak to prostě nefunguje.

 

Děkuji za rady

 

A v OnDialogResponse mám

ShowedPlayerDialog[playerid] = false;

Link to comment
Share on other sites

7 odpovědí na tuto otázku

Recommended Posts

  • 0
  • Hlavní moderátor

Koukni dolů napsal jsem že to tam mám

jenže jsi to doplnil až po odeslání mého příspěvku, kdo měl tušit, že jsi to tam měl

Link to comment
Share on other sites

  • 0

toto iste je aj v Technotomovom Bank systeme a mňe to faka ;)

new bool:ShowedPlayerDialog[MAX_PLAYERS];
stock ShowPlayerDialogEx(playerid, id, style, lis[], mess[], button1[], button2[])
{
if(ShowedPlayerDialog[playerid] == true) return false;
ShowPlayerDialog(playerid, id, style, lis, mess, button1, button2);
ShowedPlayerDialog[playerid] = true;
return true;
}
#define ShowPlayerDialog ShowPlayerDialogEx

skus to spravit takto ale toto takto musí byt po kope

Link to comment
Share on other sites

  • 0

toto iste je aj v Technotomovom Bank systeme a mňe to faka ;)

new bool:ShowedPlayerDialog[MAX_PLAYERS];
stock ShowPlayerDialogEx(playerid, id, style, lis[], mess[], button1[], button2[])
{
if(ShowedPlayerDialog[playerid] == true) return false;
ShowPlayerDialog(playerid, id, style, lis, mess, button1, button2);
ShowedPlayerDialog[playerid] = true;
return true;
}
#define ShowPlayerDialog ShowPlayerDialogEx

skus to spravit takto ale toto takto musí byt po kope

Kouknu na to :)

 

Ok funguje :)

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