SA-MP Forums Archive
YSI Hooks question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: YSI Hooks question (/showthread.php?tid=662355)



YSI Hooks question - m4karow - 29.12.2018

Hi

I have two files with #include <YSI\y_hooks> on the top.

I've have a timer named PlayerTimer.

I tried to hook this timer in both files but I got this error:
Код:
error 021: symbol already defined: "@yH_PlayerTimer@006"
How I can fix this? And how I can hook my own callbacks?


Re: YSI Hooks question - m4karow - 29.12.2018

And how I can make a timer using y_timers that I can hook in other files? Ptasks did not start whenever my filterscript is reloaded just whenever I re-connect to the server


Re: YSI Hooks question - m4karow - 30.12.2018

Oh... Then I won't change the ALS hooking for the timers and I can use YSI hooks for callbacks. If I make my own callback should I use CallLocalFunction?