Bom galera, estou com mais outro problema no meu gm.
As vezes a conta nгo salva e tem vez que outro player й setado com informaзхes incorretas. Um player que nem й adm, reloga e tб setado de adm, mas nгo й sempre. O que pode ser?
Eu acho que minha bola de cristal hoje nгo estб funcionando , se postar o code talvez eu possa ajudar .
pawn Код:
SalvarConta(playerid)
{
new string[128];
format(string, sizeof string, Contas, Nome(playerid));
PlayerInfo[playerid][Wanted] = GetPlayerWantedLevel(playerid);
PlayerInfo[playerid][Dinheiro] = GetPlayerMoney(playerid);
DOF2_SetInt(string, "Dinheiro", PlayerInfo[playerid][Dinheiro]);
DOF2_SetInt(string, "Golds", PlayerInfo[playerid][Golds]);
DOF2_SetInt(string, "SuEfetuado", SuEfetuado[playerid]);
DOF2_SetInt(string, "Drogas Apreendidas", DrogaApreendida[playerid]);
DOF2_SetInt(string, "Abatimentos", AbatimentosPlayer[playerid]);
PlayerInfo[playerid][Level] = GetPlayerScore(playerid);
DOF2_SetInt(string, "Level", PlayerInfo[playerid][Level]);
DOF2_SetInt(string, "Administrador", PlayerInfo[playerid][Administrador]);
DOF2_SetInt(string, "PM", PlayerInfo[playerid][PM]);
DOF2_SetInt(string, "Repуrter", PlayerInfo[playerid][Reporter]);
DOF2_SetInt(string, "Vip", PlayerInfo[playerid][Vip]);
DOF2_SetInt(string, "Logou", PlayerInfo[playerid][Logou]);
DOF2_SetInt(string, "Matou", PlayerInfo[playerid][Matou]);
DOF2_SetInt(string, "Morreu", PlayerInfo[playerid][Morreu]);
DOF2_SetInt(string, "Skin", PlayerInfo[playerid][Skin]);
DOF2_SetInt(string, "TempoJogado", PlayerInfo[playerid][TempoJogado]);
DOF2_SetInt(string, "Preso", PlayerInfo[playerid][Preso]);
DOF2_SetInt(string, "Procurado", PlayerInfo[playerid][Procurado]);
DOF2_SetInt(string, "EstrelaProcurado", PlayerInfo[playerid][Wanted]);
DOF2_SetInt(string, "KickBloqueado", KickBloqueado[playerid]);
DOF2_SetInt(string, "IrBloqueado", IrBloqueado[playerid]);
DOF2_SetBool(string,"ContaBanco", PlayerInfo[playerid][ContaBanco]);
DOF2_SetInt(string, "Banco", PlayerInfo[playerid][Banco]);
DOF2_SetInt(string, "Emprego", PlayerInfo[playerid][Emprego]);
DOF2_SetInt(string, "Maconha", PlayerInfo[playerid][Maconha]);
DOF2_SetInt(string, "Cocaina", PlayerInfo[playerid][Cocaina]);
DOF2_SetInt(string, "Materiais", PlayerInfo[playerid][Materiais]);
DOF2_SaveFile();
return 1;
}
Desculpa o double.