02.05.2010, 15:24
Hello!
This is my code. If I write '/test' it will return how to use it. If I write '/test bla bla' it will show them to all players. But if I write '/test bla' it will also return how to use it. The question is, how can I make, that when you write '/test bla' it will return that just one word is missing like 'Usage: /test bla Word2'?
Sorry for my English...
Код:
command(test,playerid,params[]) { new String1[64], String2[64]; if(!sscanf(params,"ss",String1,String2)) { SendClientMessageToAll(COLOR_RED,String1); SendClientMessageToAll(COLOR_WHITE,String2); } else { SendClientMessage(playerid,COLOR_RED,"Usage: /test Word1 Word2"); } return 1; }
Sorry for my English...