MasterHK Posted January 24, 2014 Share Posted January 24, 2014 (edited) Hi everyone, i have a problem in writing files... problem is about generating an cs file by another one. my Updater must generate an cs file after giving the address of update log on the host. imagine this is content of my cs... in this case first i have to write: chars before 'http:', then: write address of update log on the host, and then: chars after 'info.ini' is it possible? how? Edited January 24, 2014 by MasterHK Link to comment Share on other sites More sharing options...
Silent Posted January 24, 2014 Share Posted January 24, 2014 Are you seriously trying to connect to the network via CLEO? MasterHK 1 Link to comment Share on other sites More sharing options...
fastman92 Posted January 24, 2014 Share Posted January 24, 2014 In which case you might want to write a CLEO plugin to add network opcodes to prevent freezing of the game when requests are done (remember that a script is executed until the WAIT command). You may want to become familiar with http://curl.haxx.se/ CURL library. It's available for many languages and i used it in C# and PHP. MasterHK 1 Link to comment Share on other sites More sharing options...
MasterHK Posted January 24, 2014 Author Share Posted January 24, 2014 thanks for feedback. but mod totally completed and works fine... algorithm for check version is: we have 2 files, one in folder and one in host. content of first file is current version and the second file (update log) have latest version and address of update file in the host. now we just need to get address of the update log file to the cs file. but how to download? it seems you have totally forgotten about urlmon.dll. Link to comment Share on other sites More sharing options...
Seemann Posted January 24, 2014 Share Posted January 24, 2014 I know there are a few CLEO plugins that add opcodes to work with remote addresses via http (for example to download a file). They are mostly SA-MP related (used for cheating), so I do not want to provide the links. MasterHK 1 Sanny Builder 3 • SA Memory Handling • OpenIV • gtamodding.com CLEO.li - The CLEO Library - Official site Link to comment Share on other sites More sharing options...
MasterHK Posted January 24, 2014 Author Share Posted January 24, 2014 (edited) yes, like MogAika's but i'm looking for a way to write a text like in a file. could you please help me? Edited January 24, 2014 by MasterHK Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now