Unkown Command
#1

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.
Reply
#2

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);
Reply
#3

Well, the original Vortex Roleplay does not use OnPlayerCommandText but rather Command(help, playerid, params[])
Reply
#4

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.
Reply
#5

Daddy Yankee, you are not playing attention, My script does not us the OnPlayerCommandText Callback!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)