AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   read_file problem (https://forums.alliedmods.net/showthread.php?t=11500)

Millhouse 03-21-2005 10:06

read_file problem
 
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

Twilight Suzuka 03-21-2005 13:24

You cannot open files outside of the mod directory of the server the plugin is running from.

Millhouse 03-21-2005 13:49

and with fopen? or another function?

XxAvalanchexX 03-21-2005 13:54

Nope.

Twilight Suzuka 03-21-2005 15:10

I was not specific on what file or what function. You cannot open files outside of the HL mod directory using AMXX.


All times are GMT -4. The time now is 14:10.

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