samp.directory
← Skripte und Bibliotheken

knryuu/pawnplus-dialog-pages

PawnPlus Dialog Pages that uses `list` and string conversions.

Bibliothek★ 3aktualisiert Jan. 2026AGPL-3.0Pawnsampctl
Auf GitHub öffnen

Mit sampctl installieren

sampctl package install knryuu/pawnplus-dialog-pages

Führe das in deinem Projektordner aus. sampctl lädt das Paket und alles herunter, wovon es abhängt.

Im 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.

Hängt von 2 Paketen ab

README.md

PawnPlus Dialog Pages

PawnPlus dialog pages based on Nickk's Dialog Pages API structure.

Installation

Simply install to your project:

sampctl package install knryuu/pawnplus-dialog-pages

Include in your code and begin using the library:

#include <pp-dialog-pages>

Usage

public OnPlayerConnect(playerid)
{
	for (new i = 1; i < 16; i ++)
	{
		if (i > 5)
		{
			AddDialogListitemStr(playerid, str_format("dynamic test %d", i));
			continue;
		}
		AddDialogListitem(playerid, "test %d", i);
	}

	new arr[e_DIALOG_RESPONSE_INFO];
	await_arr(arr) ShowPlayerDialogPages(playerid, DIALOG_STYLE_LIST, "Title Here", 5, "Select", "Cancel");
	
	if (!arr[E_DIALOG_RESPONSE_Response])
	{
		SendClientMessage(playerid, 0xFFFFFFAA, "Cancelled response!");
	}
	else
	{
		SendClientMessage(playerid, 0xFFFFFFAA, "Actual index: %d | %s", arr[E_DIALOG_RESPONSE_Listitem], arr[E_DIALOG_RESPONSE_InputText]);
	}
	return 1;
}

Compatibility

This include is compatible with Async Dialog, you should include pp-dialog-pages.inc after including pp-dialog to avoid error.

Testing

To test, simply run the package:

sampctl package run

Credits

dialog-pagesopenmppawn-packagesa-mpsamp

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