CMD:asd(playerid,params[])
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Shop","Do you want to buy vehicles?","Yes","No");//First dialog sent
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 2://Thats responds correctly
{
if(response) ShowPlayerDialog(playerid,3,DIALOG_STYLE_TABLIST_HEADER,"Title","Name of vehicles\tPrice\nCheetah\t50000$\nSultan\t60000","Buy","Cancel");
return 1;//Shows the dialog correctly
}
case 3://But this dialog isnt responds
{
switch(listitem)
{
case 0:
{
//Do anything..
}
case 1:
{
//The same
}
}
return 1;
}
}
return 0;
}
|
Use some other dialog ID as it may conflict with another script(s) that use that dialog ID.
|
case 2://Thats responds correctly
{
if(response) ShowPlayerDialog(playerid,3,DIALOG_STYLE_TABLIST_HEADER,"Title","Name of vehicles\tPrice\nCheetah\t50000$\nSultan\t60000","Buy","Cancel");
return 1;//Shows the dialog correctly
}
case 3://But this dialog isnt responds
{
|
YOU DID NOT CLOSE YOUR "CASE 2:", AMEN
Код:
case 2://Thats responds correctly
{
if(response) ShowPlayerDialog(playerid,3,DIALOG_STYLE_TABLIST_HEADER,"Title","Name of vehicles\tPrice\nCheetah\t50000$\nSultan\t60000","Buy","Cancel");
return 1;//Shows the dialog correctly
}
case 3://But this dialog isnt responds
{
|