an example for zcmd sub cmds.
#2

pawn Код:
CMD:cmd(playerid, params[])
{
    if(isnull(params)) return // message here

    if(!strcmp(params, "health", true, 6))
    {
        new id;
        if(sscanf(params, "{s[128]}u", id)) return // message here

        // set health here, id
    }
    return 1;
}
Find the macro "isnull" somewhere.
Reply


Messages In This Thread
an example for zcmd sub cmds. - by fuckingcruse - 04.02.2016, 01:41
Re: an example for zcmd sub cmds. - by SickAttack - 04.02.2016, 01:51
Re: an example for zcmd sub cmds. - by Gammix - 04.02.2016, 02:19
Re: an example for zcmd sub cmds. - by xTURBOx - 04.02.2016, 07:50
Re: an example for zcmd sub cmds. - by fuckingcruse - 04.02.2016, 13:07
Re: an example for zcmd sub cmds. - by Rufio - 04.02.2016, 13:20

Forum Jump:


Users browsing this thread: 1 Guest(s)