04.06.2013, 03:14
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.
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.
Код:
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;
}
/starttest askghasdofhds = "Yes, standard works."
/starttest trucker = "Yes, standard works."
This shouldn't happen. I would like to know, how to fix this.


