sscanf error?
#2

pawn Код:
CMD:adminad(playerid, params[])
{
    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]");
        new string[128];
        format(string, sizeof(string), "%s", string);
        SendClientMessageToAll(COLOR_GREY, string);
        SCMTA(COLOR_WHITE, "-------------------------------------------------------------------------------------------------------------");

    }
    return 1;
}
Read this and check your SCMTA and SCM functions or show 'em above so we can see what's wrong.

Also max characters in chat can be 128 not longer so it does not really depend on your screens size or anything coz you can put 200 'iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii iiiiiiiiiiiiiiiiiiiiiiiiiiii' however only 128 of them will be displayed in your chat.
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)