[HELP]Redefine a native function
#8

Quote:
Originally Posted by ******
Посмотреть сообщение
The idea of ALS is that it means that multiple includes can hook the same functions. If that isn't working then something has gone wrong somewhere...

Did you put that function at the top of your mode before all the places it is used in?
sure the error was in fact now works in the code that I entered when I insert this

both before and after your includes its compile perfectly

PHP код:
stock N_SetPlayerAttachedObject(playeridindexmodelidboneFloat:fOffsetX 0.0Float:fOffsetY 0.0Float:fOffsetZ 0.0Float:fRotX 0.0Float:fRotY 0.0Float:fRotZ 0.0Float:fScaleX 1.0Float:fScaleY 1.0Float:fScaleZ 1.0materialcolor1=0materialcolor2=0)
    {
        
SetPlayerAttachedObject(playeridindexmodelidbonefOffsetXfOffsetYfOffsetZfRotXfRotYfRotZfScaleXfScaleYfScaleZmaterialcolor1materialcolor2);
        
CallRemoteFunction("OnSetPlayerAttachedObjectToPlayer""dd"playerid,index);
        return 
1;
    }
    
#if defined _ALS_SetPlayerAttachedObject
        #undef SetPlayerAttachedObject
    #else
        #define _ALS_SetPlayerAttachedObject
    #endif
    #define SetPlayerAttachedObject N_SetPlayerAttachedObject 
But i prefer use your redefinition in fixes.ini and now work perfectly
Reply


Messages In This Thread
[HELP]Redefine a native function - by xX_Simon_Xx - 25.04.2012, 09:11
Re: [HELP]Redefine a native function - by MP2 - 25.04.2012, 09:16
Re: [HELP]Redefine a native function - by xX_Simon_Xx - 25.04.2012, 09:31
Re: [HELP]Redefine a native function - by MP2 - 25.04.2012, 09:53
Re: [HELP]Redefine a native function - by xX_Simon_Xx - 25.04.2012, 10:00
Re: [HELP]Redefine a native function - by MP2 - 25.04.2012, 10:04
Re: [HELP]Redefine a native function - by xX_Simon_Xx - 25.04.2012, 10:07
Re: [HELP]Redefine a native function - by xX_Simon_Xx - 25.04.2012, 12:05

Forum Jump:


Users browsing this thread: 1 Guest(s)