25.02.2019, 18:23
https://sampforum.blast.hk/showthread.php?tid=570904
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.
Код:
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.
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.