truncated to 31 characters - 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: truncated to 31 characters (
/showthread.php?tid=546330)
truncated to 31 characters -
RedFusion - 14.11.2014
pawn Код:
#if defined _ALS_SetObjectMaterialText
#undef SetObjectMaterialText
#else
#define _ALS_SetObjectMaterialText
#endif
#define SetObjectMaterialText obj_SetObjectMaterialText
Compiler:
Код:
warning 200: symbol "_ALS_SetPlayerObjectMaterialTex" is truncated to 31 characters
What should i do to fix this? I want to hook a function but i can't, because it gets trunctated.
Re: truncated to 31 characters -
Djole1337 - 14.11.2014
I guess it's already defined as "_ALS_SetPlayerObjectMaterialTex"
pawn Код:
#if defined _ALS_SetPlayerObjectMaterialTex
#undef SetPlayerObjectMaterialText
#else
#define _ALS_SetPlayerObjectMaterialTex
#endif
#define SetPlayerObjectMaterialText obj_SetPlayerObjectMaterialText
Re: truncated to 31 characters -
Abagail - 14.11.2014
This problem occurs when you have a symbol more than 31 characters. This is the limit and you can't really exceed it. How-ever, ****** has some good advice regarding working around this which can be found here:
(
https://sampforum.blast.hk/showthread.php?pid=3253654#pid3253654 /
https://sampforum.blast.hk/showthread.php?tid=545838)