Unknown command.
#4

create the command and copy everything from OnPlayerCommandText where you put if( !strcmp( "/command", text ) ) paste it into the new command.

example
Код:
CMD:yourcommand(playerid, params[]) // the part that is bold is the only thing that needs to change when making a new command
{
    /* your pasted command here */
    return 1;
}

public OnPlayerCommandText( playerid, cmdtext[] )
{
    if( !strcmp( "/help", cmdtext ) )
    {
        // copy anything inbetween this to the command you made above
    }
}
for every strcmp that checks for the text make a new command for.
Reply


Messages In This Thread
Unknown command. - by iamjems - 09.10.2016, 17:24
Re: Unknown command. - by azzerking - 09.10.2016, 17:29
Re: Unknown command. - by iamjems - 09.10.2016, 18:02
Re: Unknown command. - by azzerking - 09.10.2016, 18:29
Re: Unknown command. - by iamjems - 09.10.2016, 19:15

Forum Jump:


Users browsing this thread: 1 Guest(s)