21.02.2014, 19:15
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;
}