sscanf - triple string problems.
#6

It's the same, you replace the variable "string" with "params"

pawn Код:
CMD:test(playerid, params[])
{
    new str1[42], str2[42], str3[42];
    sscanf(params, "p<,>s[42]s[42]s[42]", str1, str2, str3);
    printf("%s | %s | %s", str1, str2, str3);
    return 1;
}
and in game you just type /test hey hey hey,whats,up
Reply


Messages In This Thread
sscanf - triple string problems. - by JaKe Elite - 01.12.2012, 02:15
Re: sscanf - triple string problems. - by ReneG - 01.12.2012, 02:26
Re: sscanf - triple string problems. - by JaKe Elite - 01.12.2012, 02:30
Re: sscanf - triple string problems. - by Nordic - 01.12.2012, 03:00
Re: sscanf - triple string problems. - by JaKe Elite - 01.12.2012, 03:09
Re: sscanf - triple string problems. - by Nordic - 01.12.2012, 03:28

Forum Jump:


Users browsing this thread: 1 Guest(s)