Sscanf 2 problem
#4

pawn Код:
dcmd_o(playerid, params[])
{
    if(pInfo[playerid][pAdmin] > 2 || tOOC == 1)
    {
        new
            iStr[128];

        if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid,0xFF634700, "[SYNTAX]:{FFFFFF} /o [message]");

        format(iStr, sizeof(iStr), "(( %s: %s ))", NUsN(playerid), params);
        return SendClientMessageToAll(0xFFFFFF00, iStr);
    }
    else return SendClientMessage(playerid,0xFF634700,"[ERROR]:{FFFFFF} You are either not a level 2 admin or     OOC is turned off!");
}
Notice the string size after the "s". Read more about it on the sscanf2 topic.
Reply


Messages In This Thread
Sscanf 2 problem - by Jack Shred - 02.06.2011, 15:59
Re: Sscanf 2 problem - by shitbird - 02.06.2011, 16:02
Re: Sscanf 2 problem - by Jack Shred - 02.06.2011, 16:06
Re: Sscanf 2 problem - by [L3th4l] - 02.06.2011, 17:05
Re: Sscanf 2 problem - by Jack Shred - 02.06.2011, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)