22.07.2012, 00:28
Tenta assim
pawn Code:
stock Carregando(playerid)
{
GivePlayerMoney(playerid, DOF2_GetInt(PlayerArchive(playerid), "Money"));
PlayerInfo[playerid][pScore] = DOF2_GetInt(PlayerArchive(playerid), "Score");
PlayerInfo[playerid][pKills] = DOF2_GetInt(PlayerArchive(playerid), "Kills");
PlayerInfo[playerid][pDeath] = DOF2_GetInt(PlayerArchive(playerid), "Morreu");
PlayerInfo[playerid][pScore] = GetPlayerScore(playerid);
return true;
}
stock Salvando(playerid)
{
DOF2_SetInt(PlayerArchive(playerid), "Money", GetPlayerMoney(playerid));
DOF2_SetInt(PlayerArchive(playerid), "Score", PlayerInfo[playerid][pScore]);
DOF2_SetInt(PlayerArchive(playerid), "Kills", PlayerInfo[playerid][pKills]);
DOF2_SetInt(PlayerArchive(playerid), "Morreu", PlayerInfo[playerid][pDeath]);
DOF2_SaveFile();
return true;
}