← Scripts y librerías
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.
Librería★ 1actualizado oct 2018ZlibPAWN
Abrir en 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 se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha