Unknown command
#1

When a player types a cmd that dont exist it says Unknown cmd. How can i change that message?
Reply
#2

If you are using ZCMD, this is how you can do it
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
	if (!success)
	{
		// Error message
	}
	return 1;
}
Reply
#3

Use the search function before posting. You're sole responsible for reading the forum rules.
Reply
#4

PHP код:
public OnPlayerCommandPerformed(playeridcmdtext[], success)
{
    if(!
success)
    {
        new
            
string[256], output1[50], output2[50];
    
sscanf(cmdtext"p< >s[50]s[50]"output1output2);
        
SendClientMessage(playerid, -1""red"Unknown command");
        
GameTextForPlayer(playeridstring30003);
    }
    return 
1;

Reply
#5

PHP код:
public OnPlayerCommandPerformed(playeridcmdtext[], success

    if(!
success) return SendClientMessage(playerid, -1"YOUR MESSAGE HERE");
    return 
1

Simple as that.
Reply
#6

****** please, it's your best friend!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)