ZCMD problem
#3

Do something like this if you wish to do something like /gang invite [id].

Requires sscanf and zcmd.

pawn Код:
CMD:gang(playerid,params[])
{
    new option[10];
    if(sscanf(params,"s[10])",option)) return SendClientMessage(playerid,-1,"Usage : /gang [options]");
    if(!strcmp(option, "create", true)==0)
    {
        SendClientMessage(playerid,-1,"You used /gang create");
    }
    else if(!strcmp(option, "invite",true)==0)
    {
        new inviteid;
        if(sscanf(params, "s[10]u", option, inviteid)) return SendClientMessage(playerid, -1, "Usage: /gang invite [id]");
        //Do something
    }
    return 1;
}
Reply


Messages In This Thread
ZCMD problem - by cas126 - 23.07.2012, 09:17
Re: ZCMD problem - by [MM]RoXoR[FS] - 23.07.2012, 09:58
Re: ZCMD problem - by Kindred - 23.07.2012, 10:06
Re: ZCMD problem - by cas126 - 23.07.2012, 10:54

Forum Jump:


Users browsing this thread: 1 Guest(s)