Bug with y_hooks
#1

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 ?
Reply
#2

Thank you ****** !

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

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 ? ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)