truncated to 31 characters
#1

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.
Reply
#2

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
Reply
#3

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)