Putgun in House
#6

Do you use zCMD? If so, you can try this instead of cmdtext. Ironically I used cmdtext too but it didn't work, but funnily enough using "params" worked. >.>

pawn Код:
CMD:cmd(playerid, params[])
{
    if(isnull(params))
    {
        SendClientMessage(playerid, -1, "USAGE: /cmd <option>");
        SendClientMessage(playerid, -1, "option1, option2");
    }
    if(!strcmp(params, "option1", true))
    {
        // shit
    }
    if(!strcmp(params, "option2", true))
    {
        // shit
    }
    return 1;
}
Reply


Messages In This Thread
Putgun in House - by Chrillzen - 21.02.2014, 18:45
Re : Putgun in House - by MCZOFT - 21.02.2014, 18:52
Re: Re : Putgun in House - by Chrillzen - 21.02.2014, 19:00
Re : Putgun in House - by MCZOFT - 21.02.2014, 19:02
Re: Putgun in House - by Chrillzen - 21.02.2014, 19:11
Re: Putgun in House - by Dignity - 21.02.2014, 19:15
Re: Putgun in House - by 03 - 21.02.2014, 19:24
Re: Putgun in House - by Chrillzen - 21.02.2014, 19:32
Re: Putgun in House - by 03 - 21.02.2014, 19:33

Forum Jump:


Users browsing this thread: 1 Guest(s)