![]() |
[Server] Problems with y_hooks - Printable Version + open.mp forum (https://forum.open.mp) -- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) --- Forum: Support (https://forum.open.mp/forumdisplay.php?fid=12) --- Thread: [Server] Problems with y_hooks (/showthread.php?tid=1625) |
Problems with y_hooks - Frajola - 2021-01-31 y_hooks featuring warnings PHP Code: warning 200: symbol "@yH_OnVehicleDamageStatusUpdate" is truncated to 31 characters How to handle very large public names ? RE: Problems with y_hooks - Pinch - 2021-01-31 Code: // Taken from YSI (sh00k) Most of the times just opening library's testing sample will tell you literally all that library offers RE: Problems with y_hooks - Markski - 2021-02-01 You can use DEFINE_HOOK_REPLACEMENT__ to create shorter keywords and get under the 31 character limit, as stated above. For example, setting the line DEFINE_HOOK_REPLACEMENT__(Checkpoint, CP ); somewhere by the top of your script will allow you to define the hook for OnPlayerEnterRaceCheckpoint as OnPlayerEnterRaceCP RE: Problems with y_hooks - Frajola - 2021-02-01 (2021-01-31, 10:31 PM)Pinch Wrote: (2021-02-01, 12:08 AM)Markski Wrote: You can use DEFINE_HOOK_REPLACEMENT__ to create shorter keywords and get under the 31 character limit, as stated above. Thanks, it worked. |