SSCANF 2 Command Issue
#10

I re-wrote the command and it all seems to be working now.

pawn Код:
command(say, playerid, params[])
{
    new Message[128], string[128];
    if(sscanf(params, "s[128]", Message))
    {
        SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /say [message]");
    }
    else
    {
        if(strlen(Message) < 1 || !IsPlayerConnectedEx(playerid))
        {
            return 1;
        }
        else
        {
            format(string, sizeof(string), "* Admin: %s", Message);
            SendClientMessageToAll(0x2587CEFF, string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
SSCANF 2 Command Issue - by Scenario - 28.09.2010, 23:53
Re: SSCANF 2 Command Issue - by bigcomfycouch - 29.09.2010, 00:03
Re: SSCANF 2 Command Issue - by Scenario - 29.09.2010, 00:11
Re: SSCANF 2 Command Issue - by bigcomfycouch - 29.09.2010, 00:12
Re: SSCANF 2 Command Issue - by Scenario - 29.09.2010, 00:19
Re: SSCANF 2 Command Issue - by [L3th4l] - 29.09.2010, 00:23
Re: SSCANF 2 Command Issue - by Scenario - 29.09.2010, 00:26
Re: SSCANF 2 Command Issue - by [L3th4l] - 29.09.2010, 00:33
Re: SSCANF 2 Command Issue - by Grim_ - 29.09.2010, 00:34
Re: SSCANF 2 Command Issue - by Scenario - 29.09.2010, 00:39

Forum Jump:


Users browsing this thread: 1 Guest(s)