samp.directory
← Scripts et bibliothèques

knryuu/pp-task-binding

PawnPlus Task Binding to specific ID (currently support playerid)

Bibliothèque★ 1mis à jour févr. 2026MITPawnsampctl
Ouvrir sur GitHub

Installer avec sampctl

sampctl package install knryuu/pp-task-binding

Lance ceci dans le dossier de ton projet. sampctl télécharge le paquet et ce dont il dépend.

L’essayer dans le compilateur Pawn →

Ajoute ses fichiers include, avec les bibliothèques dont il dépend, au compilateur Pawn de ton navigateur, prêts à être inclus dans un script.

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 ..."))));

Cette page est construite à partir de ce que GitHub publie sur le dépôt. samp.directory n’héberge pas le code. Signaler un problème avec cette fiche

knryuu/pp-task-binding : Bibliothèque SA-MP | samp.directory