read value from url .ini file ?
#1

how to read .ini value from url ?

i have this link

http://myweb.com/test/myvalue.ini

the code will read from scriptfiles (good!)

but when i put the link the gamesaver it will crash.

btw the link is not dead

[13:31:43] [debug] Server crashed while executing SFCN.amx
Quote:

[13:31:43] [debug] AMX backtrace:
[13:31:43] [debug] #0 native fread () [004057a0] from samp-server.exe
[13:31:43] [debug] #1 0034efa4 in ?? () from SFCN.amx
[13:31:43] [debug] #2 002fd6fc in public timer_ (0x00000064) from SFCN.amx
[13:31:43] [debug] Native backtrace:
[13:31:43] [debug] #0 778922b2 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[13:31:43] [debug] #1 004972e0 in ?? () from samp-server.exe
[13:31:43] [debug] #2 00497910 in ?? () from samp-server.exe
[13:31:43] [debug] #3 00404f44 in ?? () from samp-server.exe

Reply
#2

You can't. File functions only work with local files that reside in the scriptfiles folder. You can't traverse up in the directory, let alone access remote files. What you might be able to do, although really cumbersome, is to get the whole contents with HTTP(), blockwrite it to a temp file (ftemp) and then try to read it with an ini processor.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)