Dialog response always the same?!
#6

https://sampforum.blast.hk/showthread.php?tid=570904

Код:
    inline Response(pid, dialogid, response, listitem, string:inputtext[])
    {
        #pragma unused pid, dialogid, response, listitem, inputtext
        SendClientMessage(playerid, 0xFF0000AA, "You clicked a button!  Good for you!");
        // Inline function will end here.
    }
    Dialog_ShowCallback(playerid, using inline Response, DIALOG_STYLE_MSGBOX, "Title", "Message", "Button 1");
    // Main function will end here.
What is good about this way is variables are saved even though the initial function call is completed.
https://github.com/Pottus/Texture-St...dio/tsmain.pwn
Line: 2725

See how exportmap is actually saved? So you could just create a small array to store what is what then reference it when that dialog gets a response. Doesn't matter how long that takes either.
Reply


Messages In This Thread
Dialog response always the same?! - by masuzaron - 25.02.2019, 16:00
Re: Dialog response always the same?! - by Pottus - 25.02.2019, 16:23
Re: Dialog response always the same?! - by masuzaron - 25.02.2019, 17:23
Re: Dialog response always the same?! - by Pottus - 25.02.2019, 17:29
Re: Dialog response always the same?! - by masuzaron - 25.02.2019, 18:03
Re: Dialog response always the same?! - by Pottus - 25.02.2019, 18:23
Re: Dialog response always the same?! - by masuzaron - 25.02.2019, 19:53
Re: Dialog response always the same?! - by TheToretto - 25.02.2019, 21:22
Re: Dialog response always the same?! - by masuzaron - 26.02.2019, 11:15

Forum Jump:


Users browsing this thread: 2 Guest(s)