String Formatting.
#2

This comment (especially the pdf excerpt) will explain as to why this error pops up. You can solve it like:

pawn Code:
if (numargs() == 1)
    {
        strcat((string[0] = EOS, string), msg);
        return string;
    }
(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.
Reply


Messages In This Thread
String Formatting. - by zT KiNgKoNg - 25.12.2014, 15:22
Re: String Formatting. - by Misiur - 25.12.2014, 16:24
AW: String Formatting. - by Nero_3D - 25.12.2014, 16:48

Forum Jump:


Users browsing this thread: 1 Guest(s)