Dialog wont appear - 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: Dialog wont appear (
/showthread.php?tid=273936)
Dialog wont appear -
Snowman12 - 03.08.2011
pawn Код:
CMD:anmin(playerid, params[])
{
ShowPlayerDialog(playerid, 23, DIALOG_STYLE_LIST, "Animations", "This doesnt give a responce to show anotherdialog","Select", "Cancel");
}
pawn Код:
if(dialogid == 23)
{
if(response)
{
switch(listitem)
{
case 0:
{
//another dialog here wa removed to test if it called the command which i had no luck it doesnt call the command
print("test");
}
}
}
}
Hey sorry to bother you but the command shows the first dialog but wont show the second in the ondialogresponce of the other dialog it worked before but now it doesnt work at all after i added more values to the first dialog (there is only 12 in the first dialog)
Re: Dialog wont appear -
Tigerkiller - 03.08.2011
is it a filterscript ?
if is it put your fs on first in the filterschrips line
Re: Dialog wont appear -
Snowman12 - 03.08.2011
no i dont use filterscripts
AW: Dialog wont appear -
Drebin - 03.08.2011
pawn Код:
CMD:anmin(playerid, params[])
{
ShowPlayerDialog(playerid, 23, DIALOG_STYLE_LIST, "Animations", "This doesnt give a responce to show anotherdialog"","Select", "Cancel");
You have a " too much there
Try this:
pawn Код:
CMD:anmin(playerid, params[])
{
ShowPlayerDialog(playerid, 23, DIALOG_STYLE_LIST, "Animations", "This doesnt give a responce to show anotherdialog","Select", "Cancel");
Also, you say there is an "anmin" command with params[]. But you put a dialog there.
Re: AW: Dialog wont appear -
Snowman12 - 04.08.2011
Quote:
Originally Posted by Drebin
pawn Код:
CMD:anmin(playerid, params[]) { ShowPlayerDialog(playerid, 23, DIALOG_STYLE_LIST, "Animations", "This doesnt give a responce to show anotherdialog"","Select", "Cancel");
You have a " too much there
Try this:
pawn Код:
CMD:anmin(playerid, params[]) { ShowPlayerDialog(playerid, 23, DIALOG_STYLE_LIST, "Animations", "This doesnt give a responce to show anotherdialog","Select", "Cancel");
Also, you say there is an "anmin" command with params[]. But you put a dialog there.
|
That was an example that i wrote up if i hs that there would be a undefined symbol error it somthing other than that
also the params thing ill remove them later
Re: Dialog wont appear -
sleepysnowflake - 04.08.2011
Are you sure you did not messed up dialog ID's ?
Re: Dialog wont appear -
Snowman12 - 04.08.2011
Quote:
Originally Posted by Berlovan
Are you sure you did not messed up dialog ID's ?
|
Dialogs are fine i have the dialog id's counting down next to there defines and 23 was the one i had to use next