SA-MP Forums Archive
Dini won't work on Linux - 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: Dini won't work on Linux (/showthread.php?tid=98306)



Dini won't work on Linux - TMasters - 20.09.2009

Hey....

I got myself a hoster, that seems to have a nice fine service, but i find out a huge problem: My files wont load...

I use DINI file system that works perfect on Windows server, but on hosters Linux software it won't run.

I use this kind of file path: format(file, 128,"/players/%s.ini",pName(playerid));

Anyone knows how to fix it? Would appreciate it...

(( Searched through forums, didn't fin usefull thing ))


Re: Dini won't work on Linux - PoWerZ - 20.09.2009

Quote:
Originally Posted by TMasters
Hey....

I got myself a hoster, that seems to have a nice fine service, but i find out a huge problem: My files wont load...

I use DINI file system that works perfect on Windows server, but on hosters Linux software it won't run.

I use this kind of file path: format(file, 128,"/players/%s.ini",pName(playerid));

Anyone knows how to fix it? Would appreciate it...

(( Searched through forums, didn't fin usefull thing ))
Not sure about that but just check if you have same dini include in the linux folder(pawno/include).


Re: Dini won't work on Linux - Zeex - 20.09.2009

Linux file system is case sensitive as far as I remember. So the only way is always convert player name to lower/upper case each time you read/write with dini.


Re: Dini won't work on Linux - TMasters - 20.09.2009

Quote:
Originally Posted by PoWerZ
Quote:
Originally Posted by TMasters
Hey....

I got myself a hoster, that seems to have a nice fine service, but i find out a huge problem: My files wont load...

I use DINI file system that works perfect on Windows server, but on hosters Linux software it won't run.

I use this kind of file path: format(file, 128,"/players/%s.ini",pName(playerid));

Anyone knows how to fix it? Would appreciate it...

(( Searched through forums, didn't fin usefull thing ))
Not sure about that but just check if you have same dini include in the linux folder(pawno/include).
pawno folder is not needed for hosting


Re: Dini won't work on Linux - TMasters - 20.09.2009

Quote:
Originally Posted by ZeeX
Linux file system is case sensitive as far as I remember. So the only way is always convert player name to lower/upper case each time you read/write with dini.
Thx for info, ill try =)


Re: Dini won't work on Linux - TMasters - 20.09.2009

Quote:
Originally Posted by ZeeX
Linux file system is case sensitive as far as I remember. So the only way is always convert player name to lower/upper case each time you read/write with dini.
HELPED. thank you very much.

Please lock!