Hooking OnPlayerEditDynamicObject, exceeds 31 letters. - 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: Hooking OnPlayerEditDynamicObject, exceeds 31 letters. (
/showthread.php?tid=610146)
Hooking OnPlayerEditDynamicObject, exceeds 31 letters. -
Luicy. - 20.06.2016
So, I can't hook OnPlayerEditDynamicObject since it will exceed 31 letters, getting these errors:
PHP Code:
../BSRP/packages/signs/index.pwn(251) : warning 200: symbol "@yH_OnPlayerEditDynamicObject@0" is truncated to 31 characters
../BSRP/packages/signs/index.pwn(251) : warning 200: symbol "@yH_OnPlayerEditDynamicObject@0" is truncated to 31 characters
using y_Hooks, any idea how to hook OnPlayerEditDynamicObject?
Re: Hooking OnPlayerEditDynamicObject, exceeds 31 letters. -
Luicy. - 20.06.2016
Nevermind, It's fixed using this:
PHP Code:
forward OPEDO(playerid, objectid, response, x, y, z, rx, ry, rz);
public OPEDO(playerid, objectid, response, x, y, z, rx, ry, rz)
{
CallRemoteFunction("OnPlayerEditDynamicObject", "iisffffff", playerid, objectid, response, x, y, z, rx, ry, rz);
}
then
PHP Code:
hook OPEDO(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)