Closed ghost closed 6 years ago
Judging by the plugin code, this does not look like a bug. The plugin simply parses an empty string into text
. You should just check if text
is empty, i.e. text[0] == '\0'
.
But, at me, for some reason it didn't turn out with text[0]
Works if I make text[-1]
Using Pawn.CMD
text[-1]
isn't valid PAWN code and won't compile.
So yeah, this isn't a plugin bug.
/ todo *test, that is, the first (text) can be skipped
I fixed it
if (sscanf(params, "p<*>s[85]s[85]", text, action) || params[strfind(params, "*", true) - 1] == '\0')