Raised This Month: $51 Target: $400
 12% 

[SOLVED]Open mapcycle.txt via fopen


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 03-19-2014 , 13:48   [SOLVED]Open mapcycle.txt via fopen
Reply With Quote #1

Hey everyone,

Do anyone know how to open mapcycle.txt and read it via fopen?
I would be glad if u could help me.

With Respect,
Oxygen
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science

Last edited by oxygen935; 05-07-2014 at 05:46.
oxygen935 is offline
Send a message via Skype™ to oxygen935
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-19-2014 , 14:39   Re: Open mapcycle.txt via fopen
Reply With Quote #2

What did you try ?
__________________
Arkshine is offline
Old 03-19-2014, 15:50
Black Rose
This message has been deleted by Black Rose.
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-19-2014 , 16:12   Re: Open mapcycle.txt via fopen
Reply With Quote #3

Could you stop doing that ? This is scripting section NOT suggestions/requests. Before giving some code, let's see what he tried, explaining things, then on last resort giving him a concrete example.
__________________

Last edited by Arkshine; 03-19-2014 at 16:15.
Arkshine is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 03-19-2014 , 17:44   Re: Open mapcycle.txt via fopen
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post
Could you stop doing that ? This is scripting section NOT suggestions/requests. Before giving some code, let's see what he tried, explaining things, then on last resort giving him a concrete example.
Fine.
__________________
Black Rose is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 05-06-2014 , 15:19   Re: Open mapcycle.txt via fopen
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
What did you try ?
I am actually trying to create a MOTD where the Server's Maplist will be printed.
So, to make myself clear, the question is on how to get the cstrike dir.

After that i can do it myself.
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science

Last edited by oxygen935; 05-06-2014 at 15:19.
oxygen935 is offline
Send a message via Skype™ to oxygen935
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-06-2014 , 16:50   Re: Open mapcycle.txt via fopen
Reply With Quote #6

fopen("mapcycle.txt", "r");
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 05-06-2014 at 16:51.
YamiKaitou is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 05-07-2014 , 04:24   Re: Open mapcycle.txt via fopen
Reply With Quote #7

There are many threads with tutorials on how to open a file, you would have noticed if you searched and wouldn't have to start a thread.
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 05-07-2014 , 05:46   Re: Open mapcycle.txt via fopen
Reply With Quote #8

Quote:
Originally Posted by Backstabnoob View Post
There are many threads with tutorials on how to open a file, you would have noticed if you searched and wouldn't have to start a thread.
Quote:
So, to make myself clear, the question is on how to get the cstrike dir.
The problem is not on how open the file, but on how to get the dir.

Btw, Thanks Yami! Problem Solved!
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-07-2014 , 08:21   Re: Open mapcycle.txt via fopen
Reply With Quote #9

Quote:
Originally Posted by oxygen935 View Post
The problem is not on how open the file, but on how to get the dir.
And if you had searched, you would have seen that they all start in the root game folder (cstrike in your case)
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Reply



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 02:33.


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