Limitation to variable name length - 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: Limitation to variable name length (
/showthread.php?tid=641546)
Limitation to variable name length -
iSpark - 17.09.2017
Here's the thing. I use y_hooks as a hooking method and obviously I do have a naming convention. But the real problem hit me when I tried to give in a prefix to public callback so that I could hook it.
To be precise it was this one,
Код:
Hook:DUFFSYS_OnPlayerEditDynamicObject()
Now the problem is that the identifier name exceeds the limit which is 31 characters. Now the only way around this with my level of knowledge is to give in only 1 char as a prefix like.
Код:
Hook:D_OnPlayerEditDynamicObject()
Which I do not want to do, since it'll ruin the naming convention that I'm using.
Is there possibly any solution to this?
Re: Limitation to variable name length -
iSpark - 17.09.2017
Quote:
Originally Posted by DBZdabIt3Bro7
|
Wow. Never realized these existed. Thank you.