Posts: 639
Threads: 92
Joined: Jul 2011
Reputation:
0
Alright, so I am using the Vortex Gamemode which I have edited the hell out of, I do not get an Unkown Command when the command is not valid. How could I get that message, and edit it to what I want the error message to say.
Posts: 1,954
Threads: 79
Joined: Aug 2009
Reputation:
0
You've probably changed the return 0 at the end of OnPlayerCommandText to return 1;
Change it to return 0;
If you want a custom message, change return 0; to return SendClientMessage(playerid, color, message);
Posts: 639
Threads: 92
Joined: Jul 2011
Reputation:
0
Well, the original Vortex Roleplay does not use OnPlayerCommandText but rather Command(help, playerid, params[])
Posts: 108
Threads: 10
Joined: Nov 2010
Reputation:
0
OnPlayerCommandText is a samp function and all the commands are added under it. In the end of OnPlayerCommandText you have a return, exactly what [XST]O_x said.
Posts: 639
Threads: 92
Joined: Jul 2011
Reputation:
0
Daddy Yankee, you are not playing attention, My script does not us the OnPlayerCommandText Callback!