20.03.2013, 20:58
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:
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
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)
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