tdworg / samp-include-dialog

A library with the new syntax for working with dialogs outside of OnDialogResponse. Besides, the library have functions that can be help in a script.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TDW Dialog

The library provides a new syntax for handling dialog responses.

Installation

  1. Download library.
  2. All files move into folder pawno/includes. But, you can use the flag -i<path> to specify an alternative path.
  3. Include it:
#include <a_samp> // standard SAMP library
#include <tdw_dialog>

Example:

#include <a_samp>
#include <tdw_dialog>

dialog register(playerid, response, listitem, inputtext[])
{
	if (!response)
		return;
	SendClientMessage(playerid, -1, "Registered");
}

public OnPlayerConnect(playerid)
{
	OpenDialog(playerid, "register", DIALOG_STYLE_MSGBOX,
		"Register",
		"Hello!",
		"Register", "Cancel"
	);

	return 1;
}

About

A library with the new syntax for working with dialogs outside of OnDialogResponse. Besides, the library have functions that can be help in a script.

License:zlib License


Languages

Language:Pawn 100.0%