How to LOCK/Encrypt EA - page 20

 
GeNe Tan #:

Hi guys,

I managed to get this code going:

int OnInit()

 {   

 

//Account Verification Code

{

if(( AccountNumber() == liveAccountNumber) || ( AccountNumber() == liveAccountNumber2))

{

   Print("Account Number Authorized. Thank You for your purchase.");

   Alert("Account Number Authorized.");

   return(1);

}

else

{

   Print("Account Number not Authorized.");

   Alert("Account Number not Authorized, Please kindly purchase the EA @ xxx@xxx.com before usage. Thank You.");

   return(-1);

}

}

//Account Verification Code


But the above code only brings out the alert and say the account is not authorized that's all.... When I check the journal, the EA still loaded successfully.... Advise anyone? I'm not really a coder... learn coding from online...

The code do exactly what you told him. Fix your code. I dont think that a seller of an ea need here such basic coding help. Or alternative use the freelance service

 
Hannah Wanjiku Kimari - #:

is it still possible  to  to  change dat string  in  ex4  via hex editor ?

I guess u can change everything by hex edit.
Reason: