public String[] get_sms_cost(String phones, String message, int translit, 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=1&phones=" + URLEncoder.encode(phones, SMSC_CHARSET)
                        + "&mes=" + URLEncoder.encode(message, SMSC_CHARSET) 
                        + "&translit=" + translit + (format > 0 ? "&" + formats[format] : "")
                        + (sender == "" ? "" : "&sender=" + URLEncoder.encode(sender, SMSC_CHARSET))
                        + (query == "" ? "" : "&" + query));
        }
        catch (UnsupportedEncodingException e) {

        }
        // (cost, cnt) или (0, -error)

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

        return m;
    }