05.06.2010, 20:23
Tenta Algo Assim, Se Pudesse Postar Bem Certo as variaveis do Sitema teria Quase Certeza que poderia lhe ajudar por enquanto tente isto:
Usando Dini
@EDIT: Se o Problema nгo esta no salvamento, entгo tente substituir por SetTimerEx xD
Usando Dini
pawn Код:
//Inicio
#define _DESEMPREGADO_ "Dinheiro_banco.txt"
#include <Dini>
forward Tempo();
new CONTA_DESEMPREGADO_[MAX_PLAYERS];
public OnGameModeInit()
{
SetTimer("Tempo", 1800000, true);
return 1;
}
public Tempo()
{
worldTime++;
worldTime%=24;
SetWorldTime(worldTime);
for(new i=0; i<MAX_PLAYERS; i++) {
if(worldTime==0){
if(IsPlayerConnected(i)){
if(Profissao[i] == DESEMPREGADO) {
SendClientMessage(i, COLOR_YELLOW, "UP salбrio +: $545");
SendClientMessage(i, COLOR_YELLOW, "Vк se arranja emprego, vagabundo!");
CONTA_DESEMPREGADO_[playerid] = CONTA_DESEMPREGADO_[playerid]+545;//AUMENTA CONTA
if(!dini_Exists(_DESEMPREGADO_))//
{
dini_Create(_DESEMPREGADO_);
dini_IntSet(_DESEMPREGADO_, "Dinheiro_banco", 0);
dini_IntSet(_DESEMPREGADO_, "Dinheiro_banco", CONTA_DESEMPREGADO_[playerid]);//SALVA DINHEIRO BANCO
}
}
CONTA_DESEMPREGADO_[playerid] = dini_Int(StatsFile, "Dinheiro_banco");//LК DINHEIRO BANCO
//Peguei** sу o da 1Є profissгo
}
}
}
}

