[Include] Sasi-Dialogs - A new way to add dialogs!
#1

What's this?

This is an include that makes you able to create dialogs with their id and style, and show to the players!

It's very simple, it didn't took lots of time, and I did it without any difficult.
There is _ALS_ system in OnDialogResponse, so you don't need to add it under yours...

Functions

pawn Code:
stock CreateDialog(style, caption[], info[], button1[], button2[]);
stock DestroyDialog(dialogid);
stock CreateInputWindow(caption[], info[], button1[], button2[]);
stock CreateQuestion(caption[], question[]);
stock CreateMessage(message[]);
stock CreateList(caption[], items[], button1[], button2[]);
stock DialogShowForPlayer(playerid, dialogid);
Callbacks/Events

pawn Code:
forward OnPlayerAcceptMessage(playerid, dialogid);
forward OnPlayerInput(playerid, dialogid, inputtext[]);
forward OnPlayerSelectListItem(playerid, dialogid, listitem);
forward OnPlayerAnswerQuestion(playerid, dialogid, response);
Files In The Package

pawn Code:
- Dialogs.inc //The include file
- dialogtest.pwn //The source of some tests
- dialogtest.amx //Some compiled tests
Bugs

I didn't find any bug yet! Report here the bugs if you find one, please!

EDIT:
A little thing: You can't use ANY filterscript or gamemode with the normal system (ShowPlayerDialog) at the same time of this include, or dialog IDs'll get in a mistake.

Download

WinRar (.rar)
WinRar ZIP (.zip)
Pastebin

MIRRORS ALLOWED
Reply
#2

Nice
Reply
#3

Very useful man, i like it cuz i'm so lazy ^^
Reply
#4

Thanks for the comments !
Reply
#5

Add some screens please.

1. This forum requires that you wait 120 seconds between posts. Please try again in 50 seconds.
2. This forum requires that you wait 120 seconds between posts. Please try again in 2 seconds.

xD
Reply
#6

Quote:
Originally Posted by costel_nistor96
View Post
Add some screens please.

1. This forum requires that you wait 120 seconds between posts. Please try again in 50 seconds.
2. This forum requires that you wait 120 seconds between posts. Please try again in 2 seconds.

xD
Dewd, screens are not necessary! You can see the example, how that works.
Reply
#7

Verry useful Good Job
Reply
#8

Nice work Sasi
Reply
#9

Good work also if you are complicating a simple thing
Reply
#10

Here ******

Inc: http://pastebin.com/shmvUhRb
FS: http://pastebin.com/6hzTeCXx
Reply
#11

Hi guys! Thanks for the comments
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)