SA-MP Forums Archive
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 200symbol "@yH_OnPlayerEditDynamicObject@0" is truncated to 31 characters
../BSRP/packages/signs/index.pwn(251) : warning 200symbol "@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(playeridobjectidresponsexyzrxryrz);
public 
OPEDO(playeridobjectidresponsexyzrxryrz)
{
    
CallRemoteFunction("OnPlayerEditDynamicObject""iisffffff"playeridobjectidresponsexyzrxryrz);

then
PHP Code:
hook OPEDO(playeridobjectidresponseFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rz