sscanf help.
#1

I'm trying to make an /accept [name] command.
I have no errors when I compile, and my command works perfectly, but on my server window I get
Код:
[18:22:07] sscanf warning: Unknown format specifier 'j', skipping.
How can I fix this? This isn't really a major issue. I just really want to know how to compare strings with sscanf.
My code.
pawn Код:
CMD:accept(playerid,params[])
{
    new x_job[124];
    if(sscanf(params,"s[256]",x_job))
    {
        SendClientMessage(playerid,COLOR_GREY,"Usage: /accept [name]");
        SendClientMessage(playerid,COLOR_GREY,"Names: Job, Faction");
        return 1;
    }
    if(sscanf("job",params,"s[256]",x_job))
    {
    // I left out the rest of the command since the problem isn't within the command. It's mainly the above line.
Reply


Messages In This Thread
sscanf help. - by ReneG - 11.02.2012, 02:21
Re: sscanf help. - by 2KY - 11.02.2012, 02:24
Re: sscanf help. - by Sufyan - 11.02.2012, 02:25
Re: sscanf help. - by ReneG - 11.02.2012, 02:30
Re: sscanf help. - by 2KY - 11.02.2012, 02:36
Re: sscanf help. - by Psymetrix - 11.02.2012, 02:57
Re: sscanf help. - by [ABK]Antonio - 11.02.2012, 03:00

Forum Jump:


Users browsing this thread: 1 Guest(s)