forward Accountt(playerid, mode, pass[24]);
public Accountt(playerid, mode, pass[24])
{
new FileName[MAX_PLAYER_NAME+5];
GetPLayerName(playerid, FileName, sizeof(FileName));
format(FileName, sizeof(FileName), "%s.ini", FileName);
new INI = ini_openFile(FileName);
if(INI == INI_OK)
{
// file opened
}
else
{
INI = ini_createFile(FileName);
if(INI == INI_OK);
{
ini_setString(INI, "Password", "");
ini_setInteger(INI, "Money", 1000);
ini_setInteger(INI, "Level", 1);
ini_closeFile(INI);
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Ðåãèñòðàöèÿ àêêàóíòà", "Âàø àêêàóíò íå çàðåãèñòðèðîâàí íà ñåðâåðå. \n Ïðèäóìàéòå è ââåäèòå âàø ïàðîëü äëÿ ïðîäîëæåíèÿ:", "OK", "Îòìåíà");
}
else return Account(playerid, 0, "");
}
return 1;
}