sscanf error?
#1

Hello.

I have a problem recently where when I do my command, it doesn't return the whole sentence, it cuts it off, even though it can still fit on the screen.

it adds around 30characters and that's it.

this is my cmd:

pawn Код:
CMD:adminad(playerid, params[])
{
    new string[256];
    if(!IsPlayerLoggedIn(playerid)) return SCM(playerid, COLOR_GREY, "You are not logged in.");
    if(PlayerInfo[playerid][pAdmin] < 5) return SCM(playerid, COLOR_WHITE, "SERVER: Unknown command.");
    if(sscanf(params, "s", string)) return SCM(playerid, COLOR_WHITE, "USAGE: /weatherad [message]");
    else
    {
        SCMTA(COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");
        SendClientMessageToAll(COLOR_AQUA, "Bone County Roleplay Administration :: Public Announcement [OOC]");
        format(string, sizeof(string), "%s", string);
        SendClientMessageToAll(COLOR_GREY, string);
        SCMTA(COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");

    }
    return 1;
}
Reply


Messages In This Thread
sscanf error? - by Oscii - 16.11.2012, 20:20
Re: sscanf error? - by Cypress - 16.11.2012, 20:28

Forum Jump:


Users browsing this thread: 1 Guest(s)