Sasi-Dialogs - A new way to add dialogs! -
Sasino97 - 30.04.2011
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
Re: Sasi-Dialogs - A new way to add dialogs! -
blackwave - 30.04.2011
Nice
Re: Sasi-Dialogs - A new way to add dialogs! -
TheArcher - 30.04.2011
Very useful man, i like it cuz i'm so lazy ^^
Re: Sasi-Dialogs - A new way to add dialogs! -
Sasino97 - 30.04.2011
Thanks for the comments
!
Re: Sasi-Dialogs - A new way to add dialogs! -
IstuntmanI - 01.05.2011
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
Re: Sasi-Dialogs - A new way to add dialogs! -
Zh3r0 - 01.05.2011
Quote:
Originally Posted by costel_nistor96
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.
Re : Sasi-Dialogs - A new way to add dialogs! -
Varkoll_ - 01.05.2011
Verry useful
Good Job
Re: Sasi-Dialogs - A new way to add dialogs! -
BASITJALIL - 01.05.2011
Nice work Sasi
Re: Sasi-Dialogs - A new way to add dialogs! -
Phanto90 - 01.05.2011
Good work also if you are complicating a simple thing
Re: Sasi-Dialogs - A new way to add dialogs! -
Donya - 01.05.2011
Here ******
Inc:
http://pastebin.com/shmvUhRb
FS:
http://pastebin.com/6hzTeCXx
Re: Sasi-Dialogs - A new way to add dialogs! -
Sasino97 - 02.05.2011
Hi guys! Thanks for the comments