samp.directory
← Skrypty i biblioteki

knryuu/pp-task-binding

PawnPlus Task Binding to specific ID (currently support playerid)

Biblioteka★ 1zaktualizowano lut 2026MITPawnsampctl
Otwórz na GitHubie

Zainstaluj za pomocą sampctl

sampctl package install knryuu/pp-task-binding

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.

README.md

PawnPlus Task Binding

PawnPlus Task Binding to specific ID (currently support playerid)

Functions

/*
* Description:
* Will bind the task to OnPlayerDisconnect.
*
* Returns:
* Returns INVALID_TASK when the current task is invalid
* otherwise it will return the current task itself.
*/

forward Task:task_bind_player(playerid, Task:currentTask);

Usage

If PP_SYNTAX or PP_SYNTAX_AWAIT is defined, await syntax can be used:

await bind_to(playerid) mysql_aquery(myHandle, str_format("SELECT ..."));

or

await task_bind_player(playerid, mysql_aquery(myHandle, str_format("SELECT ...")));

If not using await syntax

task_await(bind_to(playerid) mysql_aquery(myHandle, str_format("SELECT ...")));

or

task_await(task_bind_player(playerid, mysql_aquery(myHandle, str_format("SELECT ..."))));

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

knryuu/pp-task-binding: Biblioteka SA-MP | samp.directory