Jump to content
  • 0

pomoc Pomoc


Agent_007

Dotaz

Dobry Den ..... chťel by som či by sťe my nepomohli s dialog style ))))) neviem ako urobiť :d že ked mám 

if(strcmp("/text", cmdtext, true, 10) == 0)
{

Skoči toto

ShowPlayerDialog(playerid, 121, DIALOG_STYLE_MSGBOX,"TEXT","text text text","OK","");

a oak že  keď dám ok aby my naskočílo toto

ShowPlayerDialog(playerid, 121, DIALOG_STYLE_LIST,"TEXT","Text text text","Pridat","Zrusit");

Ďekují vám za pomoc DIK :d :D :d 

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

  • 0

if(strcmp("/text", cmdtext, true, 5) == 0)
{
ShowPlayerDialog(playerid, 121, DIALOG_STYLE_MSGBOX,"TEXT","text text text","OK","");
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 121)//Kdyz je ID dialogu 121
{
if(response == 1)//Kdyz klikne na prvni tlacitko ("OK")
{
ShowPlayerDialog(playerid, 122, DIALOG_STYLE_LIST,"TEXT","Text text text","Pridat","Zrusit");
}
}
return 1;
}
Link to comment
Share on other sites

  • 0

Jednoduše si změn ID dialogu, co je v tvém případě ve funkci ShowPlayerDialog číslo 122. 

 

Nebo jednoduše si každý dialog definuj, a plést se ti snad nebudou :)


 

 

enum

{
DIALOG_REGISTER,
DIALOG_RIDICAK,
DIALOG_INFO
}
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...