Login and Register. - 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)
+--- Thread: Login and Register. (
/showthread.php?tid=317574)
Login and Register. - [jS]Thomas - 11.02.2012
Hey. I have made a login and register script -
http://pastebin.com/yuLjx4uH . It compiles with no errors or warnings but when i register, the file is not saving to script files. Probably a stupid mistake by me, but does anyone know why its not saving? Thanks.
Re: Login and Register. -
[XST]O_x - 11.02.2012
pawn Код:
format(file, sizeof(file), file, name);
What?
pawn Код:
format(file, sizeof(file), "%s", name);
if(!dini_Exists(file))
{
}
Re: Login and Register. - [jS]Thomas - 12.02.2012
Quote:
Originally Posted by [XST]O_x
pawn Код:
format(file, sizeof(file), file, name);
What?
pawn Код:
format(file, sizeof(file), "%s", name); if(!dini_Exists(file)) { }
|
Still not saving.
Re: Login and Register. -
JaKe Elite - 01.03.2013
%scriptfiles.ini.
Are you sure this is correct.
Or you are attempting something like
"/scriptfiles/%s.ini"
Re: Login and Register. -
Denying - 01.03.2013
On the format at the OnPlayerConnect use format(file, sizeof(file), "%s.ini", name);
Re: Login and Register. -
KingHual - 01.03.2013
Quote:
Originally Posted by Denying
On the format at the OnPlayerConnect use format(file, sizeof(file), "%s.ini", name);
|
Really. This thread is one year old.