SA-MP Forums Archive
Reading from a shortcut file - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Reading from a shortcut file (/showthread.php?tid=154269)



Reading from a shortcut file - lolumadd - 13.06.2010

Hey, I created a shortcut of "server_log.txt" and moved it into my scriptfiles folder.
When I try to load the file using
pawn Код:
fopen
the file doesn't load (server crashed)
If I try to open another file (not a shortcut) using the same code, it works fine, so I am assuming it is because the file I am trying to load is a shortcut and probably not considered a regular ".txt"

Is there any way, if there is any way to do this? Thanks.


Re: Reading from a shortcut file - DJDhan - 13.06.2010

Err, why don't you place a copy of the server-log file where you want and if you want, delete it from the root directory.


Re: Reading from a shortcut file - lolumadd - 13.06.2010

Quote:
Originally Posted by DJDhan
Err, why don't you place a copy of the server-log file where you want and if you want, delete it from the root directory.
I need it to be a shortcut because I need it to update with the original file. If I copy + paste, that wont do it.