How to use public functions in an include??
#9

oh thanks! I get it now, thank you very much

it's working perfectly, but I don't understand yet what _ALS_OnPlayerConnect means
where does ALS stand for?
It seems to work without defining _ALS_OnPlayerConnect so I don't understand why it should be added



and it also works without
Код:
#if defined _ALS_OnPlayerConnect
    #undef OnPlayerConnect
#else
    #define _ALS_OnPlayerConnect
#endif
so with only this:
Код:
#define OnPlayerConnect F_OnPlayerConnect
forward F_OnPlayerConnect(playerid);
because the new #define automaticly overwrites OnPlayerConnect, so it doesn't need to be undefined first?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)