sscanf
#5

I think the problem lies before that in the main command

if you use zcmd it could look like that
pawn Код:
CMD:item(playerid, params[]) {
    new
        command[32]
    ;
    sscanf(params, "s[32]S()[128]", command, params);

    if(strcmp(command, "put", true) == 0) {
        new
            id
        ;
        if(sscanf(params, "d", id)) {
            return SendClientMessage(playerid,COLOR_GREY,"/item put [id]");
        }
        return true
    }
    return SendClientMessage(playerid, COLOR_GREY, "/item [put|...]");
}
Reply


Messages In This Thread
sscanf - by iBots - 31.08.2015, 10:09
Re: sscanf - by MarvinPWN - 31.08.2015, 11:04
Re: sscanf - by iBots - 31.08.2015, 18:57
Re: sscanf - by iBots - 01.09.2015, 09:03
AW: sscanf - by Nero_3D - 01.09.2015, 14:15

Forum Jump:


Users browsing this thread: 2 Guest(s)