samp.directory
← Skrypty i biblioteki

Se8870/Inline-mSelection

Brak opisu na GitHubie.

Biblioteka★ 1zaktualizowano lip 2021Brak licencjiPawnsampctl
Otwórz na GitHubie

To repozytorium nie ma pliku licencji. Jest publiczne do odczytu, ale samo to nie daje pozwolenia na ponowne użycie.

Zainstaluj za pomocą sampctl

sampctl package install Se8870/Inline-mSelection

Uruchom to w folderze swojego projektu. sampctl pobiera pakiet i to, od czego zależy.

Wypróbuj w kompilatorze Pawn →

Dodaje jej pliki include, razem z bibliotekami, od których zależy, do kompilatora Pawn w twojej przeglądarce, gotowe do dołączenia w skrypcie.

Zależy od 3 pakietów

README.md

SA:MP mSelection Inline

Added inline support for mSelection

Installation

Simply install to your project:

sampctl package install Kirima2nd/inline_mSelection

Include in your code and begin using the library:

#include <Inline_mSelection>

Function Lists

forward ShowModelSelectionInline({F@_@iii, F@_@ii}:callback, playerid, listId, const string:headerText[], dialogBGcolor = 0x4A5A6BBB, previewBGcolor = 0x88888899, selectionColour = 0xFFFF00AA, tag = tagof (callback));

forward ShowModelSelectionInlineEx({F@_@iii, F@_@ii}:callback, playerid, const itemsArray[], itemAmount, const string:headerText[], Float:Xrot = 0.0, Float:Yrot = 0.0, Float:Zrot = 0.0, Float:mZoom = 1.0, dialogBGcolor = 0x4A5A6BBB, previewBGcolor = 0x88888899, selectionColour = 0xFFFF00AA, tag = tagof (callback));

Usage

The basic usage of this include is like this:

public OnPlayerSpawn(playerid) 
{
	inline _OnModelResponse(response, modelid) 
	{
		if (!response) return Kick(playerid);
		SetPlayerSkin(playerid, modelid);
	}
	ShowModelSelectionInline(using inline _OnModelResponse, playerid, g_MakeSkins, "Select Skin");
	return 1;
}

And you can also use using public yourFunction<iii> or using function yourFunction<iii> if you don't want to use inline.

For example:

forward OnModelResponse(playerid, response, modelid);
public OnModelResponse(playerid, response, modelid)
{
	if (!response) return Kick(playerid);
	SetPlayerSkin(playerid, modelid);
	return 1;
}

public OnPlayerSpawn(playerid) 
{
	ShowModelSelectionInline(using public OnModelResponse<iii>, playerid, g_MakeSkins, "Select Skin");
	return 1;
}

Testing

To test, make sure you enable local: true and then upload the text lists into scriptfiles. After doing those steps, run the following commands:

sampctl package ensure
sampctl package run --forceBuild

Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem

Se8870/Inline-mSelection: Biblioteka SA-MP | samp.directory