[HELP ME PLEASE!!!] My script wont ready any command i make
#7

He said he gets Unknown command, and the gates still open ?
Have you put return 1; at the end of cmd:
pawn Код:
ThisIsACommand ( ... )
{
    //Stuff here
    return 1; // THIS IS WHAT I MEANT
}
?
If you haven't put the return 1, command will work, but it will say Unknown command
Also return 0 at the END of your OnPlayerCommandText:
pawn Код:
public OnPlayerCommandText ( playerid, cmdtext[ ] )
{
    command1
    {
        return true;
    }
    command2
    {
        return true;
    }
    return 0; // I MEANT THIS
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)