#1

Hi,


Код:
stock AC_GivePlayerMoney(playerid,money)
{
   GivePlayerMoney( playerid, money );
}

#if defined _ALS_GivePlayerMoney
    #undef GivePlayerMoney
#else
    #define _ALS_GivePlayerMoney
#endif
#define GivePlayerMoney AC_GivePlayerMoney
So this code will be infinite? because giveplayermoney call ac_giveplayermoney, and there is giveplayermoney so this will be calling and calling or no?
Reply
#2

No since you redefine "GivePlayerMoney" after the function; and this is all compile time stuff, so anything written first compiles first!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)