22.06.2016, 02:53
Hello all,
I'm trying to make a command which takes parameters, and I am using sscanf to process the parameters, however, the reason needs to be 256 characters long. I have used the correct formatting to specify this but it just returns as an unknown format warning.
The command does work in game, however, it just displays a bunch of warnings within the console, I do not understand what is wrong with this; so could anyway give me some pointers if they can please.
I'm trying to make a command which takes parameters, and I am using sscanf to process the parameters, however, the reason needs to be 256 characters long. I have used the correct formatting to specify this but it just returns as an unknown format warning.
Код:
if(sscanf(params, "iS["#STR_SIZE"]", kickid, reason)) return SCM(playerid, GREY, "[Usage]: /kick [playerid] [reason]");
Код:
sscanf warning: No default value found. sscanf warning: Unknown format specifier '[', skipping. sscanf warning: Unknown format specifier '2', skipping. sscanf warning: Unknown format specifier '5', skipping. sscanf warning: Unknown format specifier '6', skipping. sscanf warning: Unknown format specifier ']', skipping. sscanf warning: Format specifier does not match parameter count.