YSI-Includes icon indicating copy to clipboard operation
YSI-Includes copied to clipboard

Server crash using y_hooks

Open DavidZvla opened this issue 7 years ago • 1 comments

When i try to compile my script using this anticheat: http://forum.sa-mp.com/showthread.php?t=579963

i get these errors:

pawno\include\nex-ac.inc(2782) : error 021: symbol already defined: "@yH_OnPlayerConnect@004" pawno\include\nex-ac.inc(2888) : error 021: symbol already defined: "@yH_OnPlayerDisconnect@004"

well, i try it again include to my principal script y_hooks everything compile well.. and works well in windows.. No crash or errors...

but.. when i try to turn on my server in my linux host... i get this crash..

[debug] Server crashed while executing Mode.amx [debug] AMX backtrace: [debug] #0 00000005 in OnPlayerConnect (playerid=4, ... <1073741822 arguments>) at <unknown file>:0 [debug] #1 00013d44 in public OnPlayerConnect () at \pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\..\YSI_Internal\y_cgen.inc:114

DavidZvla avatar Jan 03 '18 22:01 DavidZvla

For those symbol already defined errors, the y_hooks library isn't being included after those hooks already being used. Try messing with the include order, most of the time, if a library uses y_hooks you'll need to include your own y_hooks after the library that also uses it.

Southclaws avatar Jan 03 '18 22:01 Southclaws