[Include] Dialog: macro
#1

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
Reply
#2

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


Forum Jump:


Users browsing this thread: 2 Guest(s)