public String[] send_sms(String phones, String message, int translit, String time, String id, int format, String sender, String query)
    {
        String[] formats = {"", "flash=1", "push=1", "hlr=1", "bin=1", "bin=2", "ping=1"};
        String[] m = {};

        try {
            m = _smsc_send_cmd("send", "cost=3&phones=" + URLEncoder.encode(phones, SMSC_CHARSET)
                    + "&mes=" + URLEncoder.encode(message, SMSC_CHARSET) 
                    + "&translit=" + translit + "&id=" + id + (format > 0 ? "&" + formats[format] : "")
                    + (sender == "" ? "" : "&sender=" + URLEncoder.encode(sender, SMSC_CHARSET)) 
                    + (time == "" ? "" : "&time=" + URLEncoder.encode(time, SMSC_CHARSET) )
                    + (query == "" ? "" : "&" + query));
        }
        catch (UnsupportedEncodingException e) {

        }

        if (SMSC_DEBUG) {
            if (Integer.parseInt(m[1]) > 0) {
                System.out.println("Сообщение отправлено успешно. ID: " + m[0] + ", всего SMS: " + m[1] + ", стоимость: " + m[2] + ", баланс: " + m[3]);
            }
            else {
                System.out.print("Ошибка №" + Math.abs(Integer.parseInt(m[1])));
                System.out.println(Integer.parseInt(m[0])>0 ? (", ID: " + m[0]) : "");
            }
        }

        return m;
    };