11.07.2018, 00:59
You should know how to fix that error. Either remove it, or add this
I understand where you're coming from, but you can just make a parameter in the command itself to get the input from the user on who is arresting them.
PHP код:
IsPlayerNearPlayer(playerid, targetid, Float:radius)
{
static
Float:fX,
Float:fY,
Float:fZ;
GetPlayerPos(targetid, fX, fY, fZ);
return (GetPlayerInterior(playerid) == GetPlayerInterior(targetid) && GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(targetid)) && IsPlayerInRangeOfPoint(playerid, radius, fX, fY, fZ);
}
Quote:
No because it's nothing from the command itself, You should do something like.. An array defined globally that stores the ID of the player getting arrested, so you can use this array instead of "targetid".. Example:
You can create either an array or an enum.. PHP код:
PHP код:
PHP код:
PHP код:
|