12.10.2012, 12:53
Good day, I have a problem with hooking any samp function. Its just doesnt get called.
Code I am using:
There is no any print message when I use SetPlayerPos
Code I am using:
pawn Код:
stock _ALT_SetPlayerPos(playerid, Float: fX, Float: fY, Float: fZ)
{
printf("a");
stopChecking[playerid] = true;
acPos[playerid][0] = fX;
acPos[playerid][1] = fY;
acPos[playerid][2] = fZ;
SetPlayerPos(playerid, fX, fY, fZ);
stopChecking[playerid] = false;
return true;
}
#if defined _ALS_SetPlayerPos
#undef SetPlayerPos
#else
#define _ALS_SetPlayerPos
#endif
#define SetPlayerPos _ALT_SetPlayerPos