14.03.2018, 15:11
PHP код:
CMD:clan(playerid, params[])
{
new tmp[12], tmp2[24];
if(!sscanf(params, "s", tmp, tmp2))
{
if(!strcmp(tmp, "create", true))
{
if(sscanf(params, "ss", tmp, tmp2)) return Message(playerid, TYPE_USAGE, "/clan create [clan name]");
}
}
else return Message(playerid, TYPE_USAGE, "/clan [create/invite/join/leave]");
}
what I tried to do is:
/clan = error message "/clan [create/invite/join/leave]"
/clan create = error message "/clan create [clan name]"
I didn't post the whole code because it doesn't matter, I just need to understand how to do what i stated above