Biblioteca★ 3atualizado abr. de 2023Sem licençaPawnsampctl
Abrir no GitHubEste repositório não tem arquivo de licença. Ele é público para leitura, mas isso sozinho não dá permissão para reutilizar.
Instalar com o sampctl
sampctl package install emmett-white/samp-easy-dialog
Execute na pasta do seu projeto. O sampctl baixa o pacote e as dependências dele.
Depende de 2 pacotes
- sampctl/samp-stdlibnão está neste diretório
- pawn-lang/YSI-Includes★ 226
Usado por 3 pacotes
README.md
samp-easy-dialog
Installation
Simply install to your project:
sampctl package install emmett-white/samp-easy-dialog
Include in your code and begin using the library:
#include <easy-dialog>
Usage
#include "easy-dialog.inc"
public OnPlayerConnect(playerid)
{
new string: name[MAX_PLAYER_NAME];
GetPlayerName(playerid, string: name, sizeof name);
Dialog_Show(playerid, "DIALOG_CONNECT", DIALOG_STYLE_MSGBOX,
"Title", "%s, welcome!", ">>", "X", string: name
);
return 1;
}
Dialog:DIALOG_CONNECT(const playerid, response, listitem, string: inputtext[])
{
if (!response) {
SendClientMessage(playerid, -1, "X pressed");
return 1;
}
SendClientMessage(playerid, -1, ">> pressed");
return 1;
}
Testing
To test, simply run the package:
sampctl package run
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