20.11.2011, 21:35
Take away the code within the /* and */.
This is code that doesn't get compiled anyway, and is irrelevant to your problem.
This will make the code more efficient for us. And [pawn] tags would be lovely as well.
Make these changes and your problem is solved before you know it.
SERVER: Unknown Command is given when OnPlayerCommandText is on return 0;
https://sampwiki.blast.hk/wiki/OnPlayerCommandText
This is code that doesn't get compiled anyway, and is irrelevant to your problem.
This will make the code more efficient for us. And [pawn] tags would be lovely as well.
Make these changes and your problem is solved before you know it.
SERVER: Unknown Command is given when OnPlayerCommandText is on return 0;
Quote:
Originally Posted by SA:MP Wiki
Returning '0' is used to inform the server that the command
has not been successfully processed, and passes it to other scripts. If there hasn't been a successful process, then you will get that 'SERVER: Unknown Command.' error. |