25.12.2014, 16:24
This comment (especially the pdf excerpt) will explain as to why this error pops up. You can solve it like:
(This is macroless strcpy)
There is other way using macros, but detecting single parameter is way more difficult than detecting none or more than 1.
pawn Code:
if (numargs() == 1)
{
strcat((string[0] = EOS, string), msg);
return string;
}
There is other way using macros, but detecting single parameter is way more difficult than detecting none or more than 1.