Unable to hook OnPlayerClickPlayerTextDraw due to length
#1

_ALS_OnPlayerClickPlayerTextDraw

32 characters. Max allowed is 31. Hurray!

I can't use y_hooks either for certain reasons. I need to use the old ALS method. Can I shorten it somehow without breaking the chaining?
Reply
#2

Removed. Y can't u use y_hooks?
Reply
#3

U dont have to use _ALS_?

its not like its defned lol just change all to
_LOnPlayerClickPlayerTextDraw , should work no? c
Reply
#4

I thought _ALS_ was just a common naming prefix for hooking.
Reply
#5

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
I thought _ALS_ was just a common naming prefix for hooking.
I'm fairly certain that if you don't use ALS like that the chaining fucks up. I guess I should test it. I've never fully understood ALS hooking. All I know is it renames the next instance of the function to the prefix you specify. Not sure what the _ALS_ part does.
Reply
#6

May Be like this ?
pawn Код:
#if defined OnPlayerClickTextDraw
    #undef OnPlayerClickTextDraw
    #define OnPlayerClickTextDraw MP2_OPCTDraw
    forward MP2_OPCTDraw(playerid, Text:clickedid);
#endif

// _ALS_MP2_OPCTDraw  // max len 17 Let me know is it work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)