Invalid Command!
#3

Quote:
Originally Posted by jlalt
Посмотреть сообщение
PHP код:
public OnPlayerCommandPerformed(playeridcmdtext[], success)
{    
        if(
success == 0)
    {
        
SendClientMessage(playerid,COL_GREEN,"ERROR: Invalid command! Check /CMDS for the commands list");
    }
    return 
1;

Changing ! to ==0 doesn't fix a fucking code god damn it, stop being a kosmaghz
You should use this callback for invalid command since latest YSI update
PHP код:
public e_COMMAND_ERRORS:OnPlayerCommandReceived(playeridcmdtext[], e_COMMAND_ERRORS:success)
{
    if (
success != COMMAND_OK)
    {
        return 
SendClientMessage(playerid,COL_GREEN,"ERROR: Invalid command! Check /CMDS for the commands list");
    }
    return 
1;

Reply


Messages In This Thread
Invalid Command! - by YoussefHammad - 11.11.2015, 00:11
Re: Invalid Command! - by jlalt - 11.11.2015, 02:32
Re: Invalid Command! - by PrO.GameR - 11.11.2015, 07:08
Re: Invalid Command! - by jlalt - 11.11.2015, 08:01
Re: Invalid Command! - by yvoms - 11.11.2015, 10:23
Re: Invalid Command! - by YoussefHammad - 11.11.2015, 14:47
Re: Invalid Command! - by Jefff - 11.11.2015, 15:12
Re: Invalid Command! - by YoussefHammad - 11.11.2015, 15:44
Re: Invalid Command! - by Jefff - 11.11.2015, 15:53
Re: Invalid Command! - by YoussefHammad - 11.11.2015, 21:13

Forum Jump:


Users browsing this thread: 2 Guest(s)