void SendDialogResponse ( WORD wDialogID , BYTE bButtonID , WORD wListBoxItem = 65535 , char * szInputResp = "" ) { BitStream bsSend ; BYTE respLen = static_cast ( strlen ( szInputResp ) ) ; bsSend . ResetWritePointer ( ) ; bsSend . Write ( wDialogID ) ; bsSend . Write ( bButtonID ) ; bsSend . Write ( wListBoxItem ) ; bsSend . Write ( respLen ) ; bsSend . Write ( szInputResp , respLen ) ; SAMP -> RPC ( RPC_DialogResponse , & bsSend , HIGH_PRIORITY , RELIABLE_ORDERED , NULL , false ) ; } SendDialogResponse ( 0 , 0 ) ; // 0 - id диалога