Adik ce iti da errori sau vrei sa fie cu SScanf sau ce? EDIT: Uite incearca asa:
CMD:lasercol( playerid, params[ ] )
{
if ( sscanf( params, "s[20]", params[ 0 ] ) ) return SendClientMessage( playerid, COLOR_RED, "USAGE: /lasercol [color]" );
if ( !strcmp( params[ 0 ] , "red", true ) ) SetPVarInt(playerid, "color", 18643 );
else if ( !strcmp( params[ 0 ] , "blue", true ) ) SetPVarInt(playerid, "color", 19080 );
else if ( !strcmp( params[ 0 ] , "pink", true ) ) SetPVarInt(playerid, "color", 19081 );
else if ( !strcmp( params[ 0 ] , "orange", true ) ) SetPVarInt(playerid, "color", 19082 );
else if ( !strcmp( params[ 0 ] , "green", true ) ) SetPVarInt(playerid, "color", 19083 );
else if ( !strcmp( params[ 0 ] , "yellow", true ) ) SetPVarInt(playerid, "color", 19084 );
else SendClientMessage( playerid, 0x00E800FF, "Colour not available! ");
return 1;
}