SERVER: Unknown Command
#6

https://sampforum.blast.hk/showthread.php?tid=91354

Quote:
Код:
 OnPlayerCommandPerformed(playerid, cmdtext[], success)
And this one gets called after command execution, here if you do "return 0" the player will see standard "Unknown command" message. The "success" parameter is equal to value returned by command function returns (if it doesn't exist success will be 0).

Note that it's not necessary to add these callbacks to your script if you don't use them.

Do you have this callback somewhere in your gamemode? If so, check if it's returning the value 1, if so, change it for zero.
Reply


Messages In This Thread
SERVER: Unknown Command - by Jihanz - 19.03.2017, 09:43
Re: SERVER: Unknown Command - by IceWizz - 19.03.2017, 10:07
Re: SERVER: Unknown Command - by Jihanz - 19.03.2017, 10:08
Re: SERVER: Unknown Command - by coool - 19.03.2017, 10:17
Re: SERVER: Unknown Command - by Jihanz - 19.03.2017, 10:28
Re: SERVER: Unknown Command - by Toroi - 19.03.2017, 11:01
Re: SERVER: Unknown Command - by Jihanz - 19.03.2017, 11:16

Forum Jump:


Users browsing this thread: 2 Guest(s)