• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Problem with OnPlayerClickTextdraw
#4
Don't return false,

Code:
#define Y_HOOKS_CONTINUE_RETURN_1    (1)        // Continue the hook chain, return 1
#define Y_HOOKS_CONTINUE_RETURN_0    (0)        // Continue the hook chain, return 0
#define Y_HOOKS_BREAK_RETURN_0        (~0)    // Break the hook chain, return 0
#define Y_HOOKS_BREAK_RETURN_1        (~1)    // Break the hook chain, return 1

EDIT: Those are already defined, just return them.

ex.: return Y_HOOKS_CONTINUE_RETURN_0;
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply


Messages In This Thread
RE: Problem with OnPlayerClickTextdraw - by Pinch - 2020-12-22, 05:25 PM
RE: Problem with OnPlayerClickTextdraw - by Pinch - 2020-12-22, 06:23 PM
RE: Problem with OnPlayerClickTextdraw - by Pinch - 2020-12-22, 07:47 PM
RE: Problem with OnPlayerClickTextdraw - by Pinch - 2020-12-23, 10:56 AM

Forum Jump: