Raised This Month: $ Target: $400
 0% 

read_file problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Millhouse
New Member
Join Date: Mar 2005
Old 03-21-2005 , 10:06   read_file problem
Reply With Quote #1

I build a script which open a txt file on another server (http://217.20.115.30/banned.txt), but it doesn`t work.


Code:
new file[64]; file = "http://217.20.115.30/banned.txt";     new line, text[64], txtlen while((line = read_file(file,line,text,63,txtlen)) != 0) {     client_cmd(parm[0],"echo ^"The number is %s^"",text) }
parm[0] is the playerid, if i take a local file, its work.

This is only a test script, so don`t be so hard to me ;D

Can someone help me?

Millhouse

ps: sry for my bad english, i gave my best
Millhouse is offline
Send a message via ICQ to Millhouse
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-21-2005 , 13:24  
Reply With Quote #2

You cannot open files outside of the mod directory of the server the plugin is running from.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Millhouse
New Member
Join Date: Mar 2005
Old 03-21-2005 , 13:49  
Reply With Quote #3

and with fopen? or another function?
Millhouse is offline
Send a message via ICQ to Millhouse
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-21-2005 , 13:54  
Reply With Quote #4

Nope.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-21-2005 , 15:10  
Reply With Quote #5

I was not specific on what file or what function. You cannot open files outside of the HL mod directory using AMXX.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
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 14:10.


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