[ Help ] Spaces in Commands
#1

Hello! I am making a small, one command, test server and I would like to know how to create a space in a command. I use ZCMD to make my commands. However, I tried to input an option but whenever I do /starttest trucker, it loads the command for first option on the list. I didn't feel like coding the command yet, as it is a really long one. So I just made sure that my options work.

Код:
CMD:starttest(playerid, params[])
{
    new option[20];
    if(isnull(params))
    {
                return SendClientMessage(playerid, -1, "USAGE: /starttest [standard/trucker]");
    }
    if(!strcmp(option, "standard", true))
    {
		SendClientMessage(playerid, COLOR_WHITE, "Yes, standard works.");
                return 1;
    }
    if(!strcmp(option, "trucker", true))
    {
		SendClientMessage(playerid, COLOR_WHITE, "Yes, trucker works.");
                return 1;
    }
    return 1;
}
Whenever I type in anything, it will give me the first option's return.

/starttest askghasdofhds = "Yes, standard works."
/starttest trucker = "Yes, standard works."

This shouldn't happen. I would like to know, how to fix this.
Reply


Messages In This Thread
[ Help ] Spaces in Commands - by xXRealLegitXx - 04.06.2013, 03:14
Re: [ Help ] Spaces in Commands - by Kirollos - 04.06.2013, 03:28
Re: [ Help ] Spaces in Commands - by xXRealLegitXx - 04.06.2013, 03:59
Re: [ Help ] Spaces in Commands - by Kirollos - 04.06.2013, 04:07
Re: [ Help ] Spaces in Commands - by xXRealLegitXx - 04.06.2013, 04:19

Forum Jump:


Users browsing this thread: 1 Guest(s)