10.01.2016, 05:23
Quote:
i dont code in pawno anymore, but something is very wrong here.
Код:
new cmd[128], idx; if(strcmp(cmd, "/kick", true) == 0) Код:
if (strcmp(cmdtext, "/kick", true) == 0) // u shoulda been comparing to cmdtext { } |
Now /kick returns as an unknown command, /giveplayergun either tell me the "You know the guns" return message when I leave the params blank or else it says unknown command aswell, and then ban closes the server connection without putting any ID.
Edit: Fixed it! You were actually right [somehow, your concept was correct haha], I had to define CMD with strtok first for it to compare, thanks!