24.01.2011, 12:16
Ok, I have problem with strcmp. So, for example:
I have command smth like this: /a weapon id gunid ammount
And, everything is okay, just strcmp is fucked up.
cmd example:
and when I type in game /a weapon [another params] I get SendClientMessage( playerid, COLOR, "/a [weapon/ban]" );
I have command smth like this: /a weapon id gunid ammount
And, everything is okay, just strcmp is fucked up.
cmd example:
pawn Код:
CMD:a( playerid, params[ ] )
{
if( ! strcmp( params, "weapon", true ) )
{
....................
}
else if( ! strcmp( params, "ban", true ) )
{
......................
}
else
{
SendClientMessage( playerid, COLOR, "/a [weapon/ban]" );
}
return true;
}