samp.directory
← Skrypty i biblioteki

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.

Biblioteka★ 1zaktualizowano paź 2018ZlibPAWN
Otwórz na GitHubie
Wypróbuj w kompilatorze Pawn →

Dodaje jej pliki include, razem z bibliotekami, od których zależy, do kompilatora Pawn w twojej przeglądarce, gotowe do dołączenia w skrypcie.

README.md

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;
}

dialogincludepawnsamp

Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem

tdworg/samp-include-dialog: Biblioteka SA-MP | samp.directory