register/login new folder..
#1

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);
Reply
#2

pawn Код:
format(string, sizeof(string), "\\Accounts\\%s.ini", plname);
Reply
#3

didnt help..

I have old account it that /scritfiles/ but /scriptfiles/accounts/ nothing files, says /login [password]

Reply
#4

Код:
format(string, sizeof(string), "Accounts/%s.ini", plname);
Reply
#5

Thanks Sandra.
Reply
#6

I need :

I need that: /changenick [id] [newname]

Like: /changenick 1 Lee_Kodama

Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)