09.02.2011, 09:04
He said he gets Unknown command, and the gates still open ?
Have you put return 1; at the end of cmd:
?
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:
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
}