28.07.2009, 18:45
I created code:
Where error this code wrong?
When I write / moxra, Answer: SERVER: Unknomw command.
But when I write, / moxra dsaasdas, / moxra sychka, etc all this good!
I know that the bug is likely in this line:
Help Me please...
Код:
if(strcmp(cmdtext, "/moxra", true, 6) == 0) { if(cmdtext[7] == 32 && cmdtext[6] != EOS) return SendClientMessage(playerid, 0xFAFAFAFF, "do not good !!!"); else if(strcmp(cmdtext[7], "sychka", true) == 0) { SendClientMessageToAll(0xFFFFFF00,color,"GOOD!"); } else SendClientMessage(playerid, 0xFAFAFAFF, "do not good !"); return true; }
When I write / moxra, Answer: SERVER: Unknomw command.
But when I write, / moxra dsaasdas, / moxra sychka, etc all this good!
I know that the bug is likely in this line:
Код:
if(cmdtext[7] == 32 && cmdtext[6] != EOS) return SendClientMessage(playerid, 0xFAFAFAFF, "do not good !!!");