06.03.2011, 14:05
I tryied to make a register system on a fs but dini did't create the files, then i made the fs a gamemode, and the same problem. I tryied even with Zh3r0's register system with Y_INI and the same problem.
pawn Код:
public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string3[64];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "Accounts/%s.ini", playername3);
dini_Create(string3);
new password2 = num_hash(password);
PlayerInfo[playerid][Pass] = password2;
dini_IntSet(string3, "Password",password2);
dini_IntSet(string3, "Level",PlayerInfo[playerid][Level]);
dini_IntSet(string3, "Money",PlayerInfo[playerid][Money]);
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,""ALB"Bun Venit",""ALB"Cont inregistrat cu succes!\n"ALB"Scrie parola ta mai jos pentru a te loga","Log-in","Quit");
}
return 1;
}