warning 201: redefinition of constant/macro
#9

Quote:
Originally Posted by Dwane
Посмотреть сообщение
Thanks LarzI, I've read this + two tutorials about hook but what I've noticed is that they shows how to hook a callback. I don't know how to do it for a function. Or is it the same way?
I have absolutely no idea. I'll have to investigate some before I have an answer. I'll edit this post if I find anything.

Edit: I've only seen usage of ALS with callbacks in includes like zcmd and such, but it's no harm testing it with functions?

Example:
pawn Код:
#if defined _ALS_PutPlayerInVehicle
    #undef PutPlayerInVehicle
#else
    #define _ALS_PutPlayerInVehicle
#endif
#define PutPlayerInVehicle sth1_PutPlayerInVehicle
pawn Код:
#if defined _ALS_PutPlayerInVehicle
    #undef PutPlayerInVehicle
#else
    #define _ALS_PutPlayerInVehicle
#endif
#define PutPlayerInVehicle sth2_PutPlayerInVehicle
I have absolutely no idea what this does, why it does it, and lastly if it even will work, but hey, it's worth a shot? I guess..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)