05.12.2016, 18:23
#emit directive
https://sampforum.blast.hk/showthread.php?pid=1608985#pid1608985
https://sampforum.blast.hk/showthread.php?tid=570930
https://sampforum.blast.hk/showthread.php?tid=591705
There are many versions you can find if you search or write your own. If there are 3 static parameters (just like playerid, color and form in the function below) in the function you want to make, the faster method is by Nero_3D:
for more or less static parameters the above will not work.
https://sampforum.blast.hk/showthread.php?pid=1608985#pid1608985
https://sampforum.blast.hk/showthread.php?tid=570930
https://sampforum.blast.hk/showthread.php?tid=591705
There are many versions you can find if you search or write your own. If there are 3 static parameters (just like playerid, color and form in the function below) in the function you want to make, the faster method is by Nero_3D:
pawn Код:
SCM(playerid, color, form[], {Float, _}: ...)
{
#pragma unused form
static tmp[145];
new t1 = playerid, t2 = color;
const n4 = -4, n16 = -16, size = sizeof tmp;
#emit stack 28
#emit push.c size
#emit push.c tmp
#emit stack n4
#emit sysreq.c format
#emit stack n16
return SendClientMessage(t1, t2, tmp);
}