Retrieve txt file content in console
Hello guys , i need help with a plugin to retrieve the content of a txt file to the console instead of using motd.
Say for example i have the following plugin : Code:
#include <amxmodx>All is good, but is there a way to write it to console , just as you use rcon motdfile name then rcon motd ?? :? I need a plugin in the form of one command (ex: amx_retrieve , without any other argument) that will write a certain txt file to my console (even if it has over 100 lines and takes longer). The txt file that will be displayed is to be specified in the plugin body. And i have one more question ....can an .ini file be dumped as output to a .txt file ? Plugin reads .ini file and copies all , creates .txt file and pastes. Maybe i'm asking too much , i dunno :3 LE : After some searching , found and tried to create the plugin i wanted from another plugin's code : Code:
#include <amxmodx> |
Re: Retrieve txt file content in console
There's no difference between a .ini file and a .txt other than the assumed contents. Why do you need to copy it? There are functions created in the Code Snippets/Tutorials forum to do this.
Anyways, there were many things wrong with the code that you created, too many for me to write up right now. Here is a quick fix that I did for you. It's untested and with no guarantees. Code:
#include <amxmodx> |
Re: Retrieve txt file content in console
@fysiks Haha dude u're a pro as always! It works like a charm :)
Thanks a lot! :mrgreen: |
| All times are GMT -4. The time now is 20:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.