forward sif_debug_printf(handler, level, playerid, string[], {Float,_}:...); stock sif_debug_printf(handler, level, playerid, string[], {Float,_}:...) { if(!SIF_IS_VALID_HANDLER(handler)) return 0; if(dbg_Level[handler] < level) return 0; if(playerid != INVALID_PLAYER_ID && dbg_PlayerLevel[playerid][handler] < level) return 0; new str[256]; format(str, sizeof(str), string, ___(4)); sif_debug_print(handler, level, playerid, str); return 1; }
new str[256]; format(str, sizeof(str), string, ___(4)); sif_debug_print(handler, level, playerid, str);
error 017: undefined symbol "___"
format(str, sizeof(str), string, ___(4));
new ___(4);
It's just a string.
You got that error as you didn't include the Код:
new ___(4); |
Last time I tested, yes it was working fine and I like the new syntax!
I'm not sure why that's happening, what context are you using it in? Are you just talking about the SIF code? I still need to get around to writing more isolated unit tests for it - which will happen once the pawn package manager is finished. |
sif_d:SIF_DEBUG_LEVEL_CALLBACKS:DEBUG_MYSQL("Connecting to DB with user %s", MYSQL_USER); sif_d:SIF_DEBUG_LEVEL_CALLBACKS:DEBUG_MYSQL("Host: %s", MYSQL_HOST); sif_d:SIF_DEBUG_LEVEL_CALLBACKS:DEBUG_MYSQL("DB: %s", MYSQL_DB);
[2017/11/18 17:00:30] $ [Source/Config/mysql] registered with handle 3 state: 0 [2017/11/18 17:00:33] $ [Source/Config/mysql:1]: Connecting to DB with user root [2017/11/18 17:00:33] [2017/11/18 17:00:33] [2017/11/18 17:00:33] [2017/11/18 17:00:33] ======================================= [2017/11/18 17:00:33] | | [2017/11/18 17:00:33] | YSI version 4.00.0001 | [2017/11/18 17:00:33] | By Alex "******" Cole | [2017/11/18 17:00:33] | | [2017/11/18 17:00:33] ======================================= [2017/11/18 17:00:33] [2017/11/18 17:00:34] [ADM] Info: Load 3DTryg v4.5.2 for SA:MP 0.3.7 by Abyss Morgan [2017/11/18 17:00:34] *** Audio Plugin: Started TCP server on port 7777 [2017/11/18 17:00:34] *** Audio_SetPack: Audio pack set to "server" (transferable and automated) [2017/11/18 17:00:34] $ [Source/Core/audio] registered with handle 4 state: 0