SA-MP Forums Archive
[Include] Dialog: macro - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Dialog: macro (/showthread.php?tid=424154)



Dialog: macro - ReVo_ - 20.03.2013

Time ago i've made a simple macro to build dialogs w/o do a OnDialogResponse long 2000 lines.
Today i decided to remake it and publish it so it's here

How to use:

New ShowPlayerDialog syntax:
ShowPlayerDialogEx(playerid, function[MAX_FUNC_NAME], style, caption[], info[], button1[], button2[])

MAX_FUNC_NAME is 25

Pawn allows max 31 chars

Then add this to your script:

Код:
Dialog:YOUR_FUNCTION_NAME(playerid, listitem, inputtext[], response)
Simple script:
https://github.com/rrev/Dialogs/blob.../timertest.pwn

(ye, i used timertest lol)

Include:

https://github.com/rrev/Dialogs/blob/master/dialogs.inc

i created and tested it in 20 min max, if u found any bug please report it or on github where you want.

I dont want to talk more cuz my english is too low, just try it.

Anyway, https://sampforum.blast.hk/showthread.php?tid=295049) y_inline and y_dialogs are much better (and tested very good to afflict every problem) alternatives


Re: Dialog: macro - Pottus - 20.03.2013

This is a pretty good way to do it but I agree y_inline, y_dialogs is the best implementation.