SA-MP Forums Archive
YSI fatal error - 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 fatal error (/showthread.php?tid=663183)



YSI fatal error - None1337 - 24.01.2019

Hello, so I'm getting this message when I start the server, in server_log:
Code:
*** YSI Fatal Error: Could not write function name in "Hooks_MakePublicPointer".
How can I fix this?


Re: YSI fatal error - Florin48 - 24.01.2019

check if include is the newest


Re: YSI fatal error - None1337 - 24.01.2019

Quote:
Originally Posted by Florin48
View Post
check if include is the newest
Well, I don't think is because of that.

Recently my gamemode wasn't modular (hasn't all the scripts/job/vehicles, etc into different .inc), it was only on the .pwn file, so I've was thinking that to make my gamemode modular, and I did that, and now, i'm receving this message.


Re: YSI fatal error - None1337 - 25.01.2019

Bump, anyone?


Re: YSI fatal error - None1337 - 25.01.2019

Quote:
Originally Posted by Y_Less
View Post
Are there any functions you only hook once?
EDIT:

Well, after you said that, i've start looking to all my hooked functions, and I found this hook to by a problem:

Code:
DEFINE_HOOK_REPLACEMENT(DamageStatusUpdate, Dsup);

hook OnVehicleDsup(vehicleid, playerid)
{
	printf("OnVehicleDamageStatusUpdate hooked - called for playerid: %d, vehicleid: %d", playerid, vehicleid);
	return 1;
}



Re: YSI fatal error - None1337 - 25.01.2019

Quote:
Originally Posted by Y_Less
View Post
Just use the normal replacements. Ahh, yes, that would do it. The replacement should be no more than 8 characters shorter than the original.
Thanks, fixed!