new problem
#1

Код:
Hey guys. GOt a new problem at my dialog thing
This is the problem:
When I do /help it shows the dialog correctly. When I click yes it switches to the list dialog too (id 193)
But then when I click on that thing in the list it just closes the dialog and the dialog that says this:

if(dialogid == 197)
switch(dialogid)
{
    case 0:
    {
    ShowPlayerDialog(playerid,231,DIALOG_STYLE_MSGBOX,"help","TestTestTest","Yes","No");
    }


It doesnt show that.
How to fix?
Please heeelp XD
}
This is the command


Код:
	if(strcmp(cmd,"/help", true) == 0)
{

	ShowPlayerDialog(playerid,428,DIALOG_STYLE_MSGBOX,"help","Rules\nCommands","Yes","No");


  return 1;
}
And here the dialog thing
Код:
	if(dialogid == 428) {

	if(response == 1) {
	ShowPlayerDialog(playerid,193,DIALOG_STYLE_LIST,"Help","Wanna continue to the help desk?","Yes","No");
 	
 	}

 	if(response == 0) {
 	SendClientMessage(playerid, 0x33AA33AA, "You canceled. ");
 	return 1;
	 }
 	}


if(dialogid == 193)
switch(dialogid)
{
    case 0:
    {
    ShowPlayerDialog(playerid,231,DIALOG_STYLE_MSGBOX,"help","TestTestTest","Yes","No");
    }
}
Reply
#2

Are you funny?
Код:
switch(dialogid)
??
Change it to
Код:
switch(listitem)
Reply
#3

Lawl. HWahaha. It works. Thanks man
Reply
#4

No problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)