30.04.2011, 21:06
(
Last edited by Sasino97; 07/08/2011 at 10:30 PM.
)
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
Callbacks/Events
Files In The Package
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
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);
pawn Code:
forward OnPlayerAcceptMessage(playerid, dialogid);
forward OnPlayerInput(playerid, dialogid, inputtext[]);
forward OnPlayerSelectListItem(playerid, dialogid, listitem);
forward OnPlayerAnswerQuestion(playerid, dialogid, response);
pawn Code:
- Dialogs.inc //The include file
- dialogtest.pwn //The source of some tests
- dialogtest.amx //Some compiled tests
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