new problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: new problem (
/showthread.php?tid=133959)
new problem -
bartje01 - 14.03.2010
Код:
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");
}
}
Re: new problem -
deather - 14.03.2010
Are you funny?
??
Change it to
Re: new problem -
bartje01 - 14.03.2010
Lawl. HWahaha. It works. Thanks man
Re: new problem -
deather - 14.03.2010
No problem