Lost use of commands.
#2

FIXED:

How I resolved the issue:

PHP код:
CMD:somecmd(playeridparams[])
{
    if(
somevariable == true)
    {
         
//Do some stuff
    
}
    else
    {
        
SendClientMessage(playerid, -1"Error Message);
    }
    return 1;

Changed to:

PHP код:
CMD:somecmd(playeridparams[])
{
    if(
somevariable == true)
    {
         
//Do some stuff
    
}
    else
    {
        
SendClientMessage(playerid, -1"Error Message);
        return 1;
    }
    return 1;

Conclusion:

Commands didn't work due to a missing return value.
Don't forget to return values in your commands!
Reply


Messages In This Thread
Lost use of commands. - by Lynn - 08.07.2016, 02:49
Re: Lost use of commands. - by Lynn - 08.07.2016, 03:04

Forum Jump:


Users browsing this thread: 1 Guest(s)