SA-MP Forums Archive
Linux and Dini - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Linux and Dini (/showthread.php?tid=357582)



Linux and Dini - sherlock - 07.07.2012

It seems Dini won't work with Linux. I saw another thread about it and someone said: "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." Well what exactly does this mean, could someone explain please?


Re: Linux and Dini - SDraw - 08.07.2012

I think, "This Is Text" should be "this is text".
Maybe, I'm wrong...


Re: Linux and Dini - sherlock - 08.07.2012

Could you explain further? I got that part, but I don't know what part of text it means exactly.


Re: Linux and Dini - Lightning[SV] - 08.07.2012

/users/lightning.ini
/users/Lightning.ini
/users/LiGhtniNg.ini
/users/LIGHTNING.ini

In linux these are all different files.

Convert the file name to lower case before saving like my first example. Dutils has a strlower function which is useful for this.

e.g.

format(file, sizeof(file), "/users/%s.ini", strlower(name));

So any case of my name will always come out as /users/lightning.ini


Re: Linux and Dini - sherlock - 08.07.2012

Thanks, where do I put the function exactly? lol..