Download MetaTrader 5

new mql4 array help.

To add comments, please log in or register
Mehmet Bastem
656
Mehmet Bastem  

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  
string params[][1];
Keith Watford
Moderator
10568
Keith Watford  

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

Show line 17 in your code at least

Alain Verleyen
Moderator
32451
Alain Verleyen  

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