how to do ZCMD+sscanf convert ?
#2

You won't need sscanf for that because it only retains 1 parameter (a string), but you could do with the isnull function.

pawn Код:
CMD:b(playerid, params[]) {
    if(isnull(params))
        return SendClientMessage(playerid, COLOR_GREY, "USAGE: /b [Local OOC Chat]");

    if(pInfo[playerid][pLogged] != 1)
        return SendClientMessage(playerid, COLOR_GREY, "* You havent logged in yet!");
       
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "(( %s: %s ))", pName, params);
    ProxDetector(12.0, playerid, string,COLOR_CHAT4,COLOR_CHAT4,COLOR_CHAT4,COLOR_CHAT4,COLOR_CHAT4);
    printf("%s", string);
    return 1;
}
Reply


Messages In This Thread
how to do ZCMD+sscanf convert ? - by VivianKris - 02.06.2011, 04:55
Re: how to do ZCMD+sscanf convert ? - by Calgon - 02.06.2011, 05:19

Forum Jump:


Users browsing this thread: 1 Guest(s)