Hooking a function
#1

Good day, I have a problem with hooking any samp function. Its just doesnt get called.

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
There is no any print message when I use SetPlayerPos
Reply


Messages In This Thread
Hooking a function - by BaubaS - 12.10.2012, 12:53
Re: Hooking a function - by BaubaS - 12.10.2012, 14:51
Re: Hooking a function - by ReVo_ - 12.10.2012, 20:19

Forum Jump:


Users browsing this thread: 1 Guest(s)