How to Undef a function that use native? -
yxliang - 16.05.2013
How to Undef a function that use native?
Re: How to Undef a function that use native? -
zombieking - 16.05.2013
What?
Re: How to Undef a function that use native? -
SilverKiller - 16.05.2013
#undef
e.g :
I'm not sure as i didn't test it before, but give it a try..
Re: How to Undef a function that use native? -
jordy.kiesebrink - 16.05.2013
On top you need to
pawn Код:
#if defined SOMETHING
// do this if its defined
#endif
pawn Код:
#if defined SOMETHING
// use this if it is defined
#else
// not defined, it will do this
#endif
pawn Код:
#if !defined SOMETHING
// not defined, it will do this
#endif
Re: How to Undef a function that use native? -
SilverKiller - 16.05.2013
Quote:
Originally Posted by jordy.kiesebrink
pawn Код:
#if defined SOMETHING // do this if its defined #endif
pawn Код:
#if defined SOMETHING // use this if it is defined #else // not defined, it will do this #endif
|
He wants to undefine it, not to check if it is defined or not..
Код:
This forum requires that you wait 120 seconds between posts. Please try again in 65 seconds.
Re: How to Undef a function that use native? -
Lordzy - 16.05.2013
Undefines the native you specifies. If you're trying to HOOK it, use _ALS_ method of hooking or y_hooks.
Re: How to Undef a function that use native? -
yxliang - 17.05.2013
Quote:
Originally Posted by ******
Just delete it, but why would you need to remove a native? It still exists.
|
I am trying to make a hook for native function as it isn't a callback so It can't use y_hooks and _ALS_ I think it can't work.
Re: How to Undef a function that use native? -
yxliang - 17.05.2013
Quote:
Originally Posted by SilverKiller
#undef
e.g :
I'm not sure as i didn't test it before, but give it a try..
|
I tried and I doesn't work.
Re: How to Undef a function that use native? -
yxliang - 17.05.2013
Quote:
Originally Posted by ******
Sure it can use ALS!
|
Oh! I see. ****** could you give me your skype or some irc's account name in order to discuss some technological topic.
Re: How to Undef a function that use native? -
yxliang - 18.05.2013
Quote:
Originally Posted by ******
Sure it can use ALS!
|
I used _ALS_ to hook but there are warnings warning 201: redefinition of constant/macro (symbol "SetPlayerHealth")
warning 201: redefinition of constant/macro (symbol "SetPlayerArmour")
But only two function's hook have warning, why?