03.08.2012, 19:29
Is it possible to make an Invalid Command message when using Strcmp as a command base?
Is it possible to make an Invalid Command message when using Strcmp as a command base?
|
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
if ( !strcmp( "/mycommand", cmdtext, true, 10 ) )
{
// Do something here
return 1;
}
return SendClientMessage( playerid, -1, "INVALID COMMAND" ); // change return 0; to return SendClientMessage( ... );
}
pawn Код:
![]() Hope this helps? Regards, FalconX |