_ALS_ - How does it work?
#1

I'm using this to "replace" the function SetPlayerHealth with AC_SetPlayerHealth, i'd appreciate if someone could explain how / why this works. What is the _ALS_ part for?

pawn Код:
stock AC_SetPlayerHealth(playerid, Float:health)
{
/*
.....
*/

}
#if defined _ALS_SetPlayerHealth
    #undef SetPlayerHealth
#else
    #define _ALS_SetPlayerHealth
#endif
#define SetPlayerHealth AC_SetPlayerHealth
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=85907

https://sampforum.blast.hk/showthread.php?tid=387600

Enjoy
Reply
#3

Thank you .
Reply
#4

Quote:
Originally Posted by iLuXing
Посмотреть сообщение
Thank you .
Refrain from bumping old topics please.. this question was published a year ago, if you wanna thank them for something that was created a long time ago a reputation or a profile post / PM would do.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)