Linux server saving problems? - 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: Linux server saving problems? (
/showthread.php?tid=100138)
Linux server saving problems? -
[mad]MLK - 03.10.2009
Well my login/register system works fine on my PC (Windows Vista) But i uploaded my files to my linux server and its randomly started saving all the files into the root of scriptfiles instead of Users folder in there heres a screenshot:
It works fine on Windows :S, This is the code for the saving directories:
Code:
format(file, sizeof(file), "\\Users\\%s.ini", pname);
Re: Linux server saving problems? -
ev0lution - 03.10.2009
Quote:
Originally Posted by [mad
MLK (dino-host.net) ]
Well my login/register system works fine on my PC (Windows Vista) But i uploaded my files to my linux server and its randomly started saving all the files into the root of scriptfiles instead of Users folder in there heres a screenshot:
Image
It works fine on Windows :S, This is the code for the saving directories:
Code:
format(file, sizeof(file), "\\Users\\%s.ini", pname);
|
What's so bad about using:
Code:
format(file, sizeof(file), "/Users/%s.ini", pname);
Or:
Code:
format(file, sizeof(file), "Users/%s.ini", pname);
Both should work fine.
Re: Linux server saving problems? -
TMasters - 03.10.2009
remember, in linux, your files need to be defined Case Sensitive!
Re: Linux server saving problems? -
[mad]MLK - 03.10.2009
Quote:
Originally Posted by ev0lutionnn
|
What's so bad about using:
Code:
format(file, sizeof(file), "/Users/%s.ini", pname);
Or:
Code:
format(file, sizeof(file), "Users/%s.ini", pname);
Both should work fine.
[/quote]
Thats just not how you do file saving.
Quote:
Originally Posted by TMasters
remember, in linux, your files need to be defined Case Sensitive!
|
You can easily see that the file has a capital U in the folders too.
Re: Linux server saving problems? -
JaTochNietDan - 03.10.2009
Quote:
Originally Posted by [mad
MLK (dino-host.net) ]
Quote:
What's so bad about using:
Code:
format(file, sizeof(file), "/Users/%s.ini", pname);
Or:
Code:
format(file, sizeof(file), "Users/%s.ini", pname);
Both should work fine.
|
Thats just not how you do file saving.
Quote:
Originally Posted by TMasters
remember, in linux, your files need to be defined Case Sensitive!
|
You can easily see that the file has a capital U in the folders too.
|
Actually that is...I've never seen the use of double slashing.
Users/%s.ini would work fine.
Re: Linux server saving problems? -
[mad]MLK - 03.10.2009
Quote:
Originally Posted by JaTochNietDan
Actually that is...I've never seen the use of double slashing.
Users/%s.ini would work fine.
|
Thanks dude worked the treat!.