new mql4 array help.

 

please help me for new mql4 array.

Error :'[' - invalid index value PricesmsAlert.mq4 17 18

// addParam(string key,string val,string &array[])

string params [0][1];

ArrayResize( params, 0);

int status[1];

addParam("xml","<?xml version=\"1.0\" encoding=\"utf-8\"?><SENDSMS><USERNAME>morhava</USERNAME>"+

"<PASSWORD>12434dsfd5</PASSWORD><VENDOR_ID>123233</VENDOR_ID><SDATE></SDATE>" +

"<SENDER>HASKAYA FX</SENDER><TM_LIST><TM><DST_MSISDN_LIST>" +

"<DST_MSISDN>" + number + "</DST_MSISDN></DST_MSISDN_LIST><CONTENT_LIST>" +

"<CONTENT><CONTENT_TEXT>" + mesaj + "</CONTENT_TEXT></CONTENT></CONTENT_LIST></TM>" +

"</TM_LIST></SENDSMS>",params);

string req = ArrayEncode(params);

string res = httpGET("https://gateway.smsmachine.com/SendSMS/SendSMS.asmx/sendSMS?", status);

res = httpPOST("https://gateway.smsmachine.com/SendSMS/SendSMS.asmx/sendSMS?", req, status) 
 
string params[][1];
 

Error :'[' - invalid index value PricesmsAlert.mq4 17 18

Show line 17 in your code at least

 

Hello,

Please use the SRC button when you post code. Thank you.


This time, I edited it for you.

Reason: