← Skripte und Bibliotheken
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.
Bibliothek★ 1aktualisiert Okt. 2018ZlibPAWN
Auf GitHub öffnenIm Pawn-Compiler ausprobieren →
Fügt seine Include-Dateien samt der Bibliotheken, von denen es abhängt, dem Pawn-Compiler in deinem Browser hinzu, bereit zum Einbinden in ein Skript.
README.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;
}
Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden