SA-MP Forums Archive
[help]Dialog - 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: [help]Dialog (/showthread.php?tid=124863)



[help]Dialog - Onyx09 - 01.02.2010

what its wrong when the menu opens and i select the option traveling hit select the dialog closes and nothing happens
anyone have any idea of whats going on?

http://pastebin.com/m1866247b

thanks


Re: [help]Dialog - mansonh - 01.02.2010

Everything looks fine in your script.
Maybe 5009 is bigger than the limit for dialogs, maybe try like 509 see if that works.


Re: [help]Dialog - Onyx09 - 01.02.2010

i have changed the number and still dosent work dialog closes on select and also if i press cancel it closes the connection :S
btw im using a dialog for player Register / login do you think this is affecting?


Re: [help]Dialog - mansonh - 01.02.2010

That would only affect it if the numbers conflicted.


Re: [help]Dialog - Onyx09 - 01.02.2010

thanks anyways im a mess around and see how to fix it


Re: [help]Dialog - mansonh - 01.02.2010

I looked again can't see anything.
Try putting in print statements for testing.
Or sendclientmessage instead, (I watch the server command line while i test)

so like
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    printf("Responce for dialog id %d", dialogid);
    if(dialogid == DIALOGID)
    {
        if(response)
        {
        print("Positive responce on dialog");
....



Re: [help]Dialog - Onyx09 - 01.02.2010

well i think i found the bug but im going to sleep well
i made that as a filterscript wich was a test so i could release it it has to work
but in GM i allready defined public ondialog response so im gonna add it to the GM
and see if thats it wich i think it is anyways thanks