SA-MP Forums Archive
Bug with y_hooks - 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: Bug with y_hooks (/showthread.php?tid=563147)



Bug with y_hooks - Sc0tt - 14.02.2015

Hello guys !

I have a bug with the include "y_hooks".

I hook "OnPlayerEnterCheckpoint" in two includes but i have these errors :

C:\[PATH]\job_farmer.inc(41) : error 021: symbol already defined: "@yH_PlayerEnterCheckpoint1"
C:\[PATH]\job_farmer.inc(42) : error 021: symbol already defined: "@yH_PlayerEnterCheckpoint1"

The lines 41 and 42 are :

(41) hook OnPlayerEnterCheckpoint(playerid)
(42) {

Has anybody a solution for this issue please ?


Re : Bug with y_hooks - Sc0tt - 14.02.2015

Thank you ****** !

I didn't know that we must include y_hooks for each includes where we use an hook.


Re : Bug with y_hooks - Sc0tt - 15.02.2015

Hello ******,

I have the same problem today.

However, i included y_hooks in the 2 files but in one of them, i have the same error :

C:\[PATH]\jobs_main.inc(175) : error 021: symbol already defined: "@yH_PlayerPickUpPickup5"
C:\[PATH]\jobs_main.inc(176) : error 021: symbol already defined: "@yH_PlayerPickUpPickup5"

Did i make an error yet ? ^^