pawn-lang / YSI-Includes

Just the YSI include files, none of the extra stuff.
208 stars 106 forks source link

Run time error 5: "Invalid memory access" #646

Closed RonaldoBueno16 closed 8 months ago

RonaldoBueno16 commented 11 months ago

I'm using modules, calling the callbacks with y_hooks.

But I'm getting this crash:

[debug] [debug] Parameter count corrections: [debug] [debug] The 1st mangled argments (e.g. <1073741823 arguments>) below should read <2 arguments> [debug] The 2nd mangled argments (e.g. <1073741823 arguments>) below should read <1 arguments> [debug] [debug] Run time error 5: "Invalid memory access" [debug] AMX backtrace: [debug] #0 0001a4a8 in public OnRequestGameSpawn (0, 0) at D:\SAMP\Enguica.PVP\pawno\include\YSI_Coding\y_hooks..\y_cgen\y_cgen.inc:193 [debug] #1 native CallLocalFunction () in samp-server.exe [debug] #2 0014782c in @yH_OnPlayerSpawn@046 (playerid=0) at modulos/games/base.pwn:224 [debug] #3 0001a0e4 in public OnPlayerSpawn (0) at D:\SAMP\Enguica.PVP\pawno\include\YSI_Coding\y_hooks..\y_cgen\y_cgen.inc:133

Y-Less commented 8 months ago

That crash is in your code, somewhere in OnRequestGameSpawn.