Download MetaTrader 5

new mql4 array help.

To add comments, please log in or register
You can test an application before buying it. Find out how to do that!
Mehmet Bastem
607
Mehmet Bastem 2014.02.23 23:15 

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) 
qjol
3243
qjol 2014.02.23 23:41  
string params[][1];
Keith Watford
Moderator
9620
Keith Watford 2014.02.23 23:42  

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

Show line 17 in your code at least

Alain Verleyen
Moderator
30723
Alain Verleyen 2014.02.23 23:51  

Hello,

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


This time, I edited it for you.

To add comments, please log in or register