Raised This Month: $ Target: $400
 0% 

Ingame Motd Edit


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-24-2019 , 15:37   Re: Ingame Motd Edit
Reply With Quote #2

To add text, you can use either use "fopen", "fputs" and the other file-reading functions or use only the "write_file" function if the other method is too compilcated for you.

For removing text, you can read all of the file's contents and store it into a dynamic array. Make sure NOT to read the line you want to remove. Then simply rewrite the file by looping the array and pushing all of the text inside it.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode