register/login new folder.. - 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: register/login new folder.. (
/showthread.php?tid=72048)
register/login new folder.. -
Typhome - 05.04.2009
The registered accounts files will goto /scriptfiles/
but i want it saves
/scriptfiles/accounts/
Код:
GetPlayerName(playerid, plname, sizeof(plname));
format(string, sizeof(string), "%s.ini", plname);
if(fexist(string))
Код:
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
Код:
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
Re: register/login new folder.. -
Grim_ - 05.04.2009
pawn Код:
format(string, sizeof(string), "\\Accounts\\%s.ini", plname);
Re: register/login new folder.. -
Typhome - 05.04.2009
didnt help..
I have old account it that /scritfiles/ but /scriptfiles/accounts/ nothing files, says /login [password]
Re: register/login new folder.. -
Sandra18[NL] - 05.04.2009
Код:
format(string, sizeof(string), "Accounts/%s.ini", plname);
Re: register/login new folder.. -
Typhome - 05.04.2009
Thanks Sandra.
Re: register/login new folder.. -
Typhome - 05.04.2009
I need :
I need that: /changenick [id] [newname]
Like: /changenick 1 Lee_Kodama
Thanks!