Skip to content

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

Notifications You must be signed in to change notification settings

tdworg/samp-include-dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages