SSCANF -_-
#1

pawn Код:
CMD:faction(playerid, params[])
{
    if(playerVariables[playerid][pStatus] == 1)
    {
        new
            action[32],
            string[256],
            id,
            pin;
        if(sscanf(params, "s[32]", action)) {
            SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/faction [action]");
            SendClientMessage(playerid, COLOR_GREY, "ACTIONS: login");
        }
        if(strcmp(action, "login", true) == 0)
        {
            if(sscanf(params, "dd", id,pin)) {
                return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/faction login [id group] [pin]");
            }
If i write /faction, it shows me:
Код:
SYNTAX: /faction [action]
ACTIONS: login
SYNTAX: /faction login [id group] [pin]
If i write /faction login 1 434 it doesn't show me nothing.

The problem is here:

pawn Код:
if(sscanf(params, "dd", id,pin)) {
                return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/faction login [id group] [pin]");
            }
I tried a lot of ways..
Reply


Messages In This Thread
SSCANF -_- - by SILENT! - 29.06.2011, 07:57
Re: SSCANF -_- - by BaubaS - 29.06.2011, 08:06
Re: SSCANF -_- - by SILENT! - 29.06.2011, 08:08
Re: SSCANF -_- - by SILENT! - 29.06.2011, 09:02

Forum Jump:


Users browsing this thread: 1 Guest(s)