← Scripts e bibliotecas
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.
Biblioteca★ 1atualizado out. de 2018ZlibPAWN
Abrir no GitHubREADME.md
TDW Dialog
The library provides a new syntax for handling dialog responses.
Installation
- Download library.
- All files move into folder
pawno/includes. But, you can use the flag-i<path>to specify an alternative path. - 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;
}
Esta página é montada com o que o GitHub publica sobre o repositório. O samp.directory não hospeda o código. Avisar de um problema com esta página