registration system error
#4

--------------------------
enum, new e define


enum pInfo{
Level,
Dinheiro,
Senha[24]
}
new PlayerInfo[MAX_PLAYERS][pInfo];
#define PASTA_CONTAS "Contas/%s.ini"
#define DIALOG_REGISTRO

---------------------------
these are the stock


stock PlayerName(playerid)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
return aname;
}
stock CarregarContas(playerid)
{
new file[90];
format(file, sizeof(file),"Contas/%s.ini",PlayerName(playerid));
PlayerInfo[playerid][Level] = DOF2_GetInt(file,"Level");
PlayerInfo[playerid][Dinheiro] = DOF2_GetInt(file, "Dinheiro");
SendClientMessage(playerid, 0x86A857AA, "[SERVER] Seus dados foram carregados com sucesso!");

}
stock SalvarContas(playerid)
{
new file[90];
format(file, sizeof(file),"Contas/%s.ini",PlayerName(playerid));
DOF2_SetInfo(file, "Level", PlayerInfo[playerid][Level]);
DOF2_SetInfo(file, "Dinheiro",PlayerInfor[playerid][Dinheiro]);
DOF2_SaveFile();
}
Reply


Messages In This Thread
registration system error - by MitsuK - 20.10.2018, 17:36
Re: registration system error - by khRamin78 - 20.10.2018, 18:20
Re: registration system error - by GangstaSunny. - 20.10.2018, 18:24
Re: registration system error - by MitsuK - 20.10.2018, 19:54
Re: registration system error - by GangstaSunny. - 20.10.2018, 20:29
Re: registration system error - by MitsuK - 20.10.2018, 22:13
Re: registration system error - by GangstaSunny. - 20.10.2018, 22:46
Re: registration system error - by MitsuK - 20.10.2018, 23:40
Re: registration system error - by GangstaSunny. - 20.10.2018, 23:46
Re: registration system error - by v1k1nG - 21.10.2018, 09:42
Re: registration system error - by GangstaSunny. - 21.10.2018, 10:29
Re: registration system error - by v1k1nG - 21.10.2018, 10:41

Forum Jump:


Users browsing this thread: 4 Guest(s)