Raised This Month: $32 Target: $400
 8% 

Reading files in the mod directory


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-26-2008 , 06:05   Reading files in the mod directory
Reply With Quote #1

Yet another topic

I know you have to use BuildPath for files inside of the sourcemod folder, but is it possible to read/write files in the cstrike/dod/tf folder? I know there's an open bug report for RenameFile, and I can't get it to work for OpenFile either.
Code:
OpenFile("motd.txt", "r");
I also tried /motd.txt, but it always returns INVALID_HANDLE. Any help is appreciated.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-28-2008 , 19:33   Re: Reading files in the mod directory
Reply With Quote #2

Hump de bump. Anyone?
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-29-2008 , 22:23   Re: Reading files in the mod directory
Reply With Quote #3

Nevermind, I'm stupid. Turns out there's no motd.txt by default on the TF2 dedicated server from Steam.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Reply


Thread Tools
Display Modes

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 09:32.


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