std :: string comm = commandtext ; std :: smatch chatres ; if ( std :: regex_match ( comm , chatres , std :: regex ( "/id%d" ) ) ) { SF -> getSAMP ( ) -> getChat ( ) -> AddChatMessage ( - 1 , "%d" , chatres [ 1 ] . str ( ) . c_str ( ) ) ; }