Commands are being skipped.
#3

Quote:
Originally Posted by Trucido
Посмотреть сообщение
i dont code in pawno anymore, but something is very wrong here.

Код:
new cmd[128], idx;
if(strcmp(cmd, "/kick", true) == 0)
you're comparing nothing...

Код:
if (strcmp(cmdtext, "/kick", true) == 0) // u shoulda been comparing to cmdtext
{
   
}
I gave it a shot but it didnt really help.

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!
Reply


Messages In This Thread
Commands are being skipped. - by Black Axe - 10.01.2016, 03:54
Re: Commands are being skipped. - by Trucido - 10.01.2016, 04:55
Re: Commands are being skipped. - by Black Axe - 10.01.2016, 05:23
Re: Commands are being skipped. - by JaKe Elite - 10.01.2016, 05:54
Re: Commands are being skipped. - by RoboN1X - 10.01.2016, 05:56

Forum Jump:


Users browsing this thread: 1 Guest(s)