Help with sscanf.
#1

Hello reader,

my problem is that in game the stuff works fine but in my server console sscanf shows warnings, I hope someone can help me get rid of them.

The warning:


My code:
pawn Код:
// /pm command.
CMD:pm(playerid, params[110])
{
    if (spot == 1) return SendClientMessage(playerid, KLEUR_AROOD, "You are on Administrator duty.");
    if (isnull(params)) return SendClientMessage(playerid, KLEUR_VOORB, "USAGE: /pm [ID] [text]");
    else if (strlen(params) >= 62) return 1;
        else if(!sscanf(params, "us", playerid, params))
        {
        new pmontvang[110];
        format(pmontvang, sizeof(pmontvang), "(( PM To %s [ %d ]: %s ))", pNaam(playerid), playerid, params);
        SendClientMessage(senderid, KLEUR_PM, pmontvang);
        new pmverstuur[110];
        format(pmverstuur, sizeof(pmverstuur), "(( PM From %s [ %d ]: %s ))", pNaam(playerid), playerid, params);
        SendClientMessage(playerid, KLEUR_PM, pmverstuur);
        }
    return 1;
}
Best regards,
Jesse
Reply


Messages In This Thread
Help with sscanf. - by jessejanssen - 22.02.2012, 22:39
Re: Help with sscanf. - by ArmyOps - 22.02.2012, 22:44
Re: Help with sscanf. - by Madd Kat - 22.02.2012, 22:45
Re: Help with sscanf. - by jessejanssen - 23.02.2012, 22:57
Re: Help with sscanf. - by jessejanssen - 23.02.2012, 23:03

Forum Jump:


Users browsing this thread: 1 Guest(s)