Quote:
Originally Posted by O_KoDi
apos voce setar os valores Tem que add a Sintaxe DOF2_SaveFile();
Exemplo
pawn Код:
{ SalvarPlayer(playerid) { GetPlayerName(playerid, Nome, sizeof(Nome)); new String[50]; format(String, sizeof(String), CONTAS, Nome); DOF2_SetInt(String, "Matou", Kills[playerid]); DOF2_SetInt(String, "Morreu", Deaths[playerid]); DOF2_SetInt(String, "Logou", Logou[playerid]); DOF2_SetInt(String, "Score", GetPlayerScore(playerid)); DOF2_SetInt(String, "FightingStyle", GetPlayerFightingStyle(playerid)); DOF2_SetInt(String, "GP", GetPlayerReal(playerid)); DOF2_SetInt(String, "Dolar", GetPlayerMoney(playerid)); DOF2_SaveFile();// <<<<< isso aqui amigo
return 1; }
|
Muito obrigado cara, nгo sabia disso.
Pode me ajudar em mais uma coisa? O GP (GivePlayerReal e GetPlayerReal) a cada vez que eu logo ele estб se duplicando, como arrumo isso?