The return value of a function with y_hooks
#1

Hi I want to know, how can I get the return value of a function with y_hooks.

By default, I would for OnPlayerUpdate, but I did that :
PHP код:
afk hook OnPlayerUpdate(i);
printf("%d"afk); 
It shows me 1, even when I'm back Windows.

Any idea ?
Reply
#2

OnPlayerUpdate always returns 1 (or the value you specified in callback). When the player is AFK that callback is not called at all (so it isn't returning 0 or 1). You are just basically calling a normal function.
Reply
#3

Ah yes, shit.

I have done differently and it works, thank you anyway.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)