[Ajuda] Dados nгo salvando
#1

Boa tarde, me tirem uma dъvida. O meu sistema de salvamento aparentemente tб todo okay, um timer foi criado para verificar o progresso feito no jogo e salvar esse progresso, que inclusive funciona. Sу tem um problema, se houver um progresso, e eu utilizar o cmd /ban ou /kick o progresso simplesmente й zerado, ou seja, zera o score e o money, o que eu poderia fazer?

pawn Код:
CMD:banir(playerid, params[])
{
    new id, Motivo[100];
    if(pAdmin[playerid][Level] < 2) return SendClientMessage(playerid, Vermelho,"[ERRO]: Vocк nгo possui permissгo suficiente.");
    if(sscanf(params, "us[100]", id, Motivo)) return SendClientMessage(playerid, Vermelho, "[ERRO]: Use: /ban ID Motivo");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, Vermelho, "[ERRO]: Jogador nгo conectado.");
    SendFormatMessageToAll(Cor_Admin, "[STAFF]: O administrador %s baniu %s ( Motivo: %s )", PegarNome(playerid), PegarNome(id), Motivo);
    kBan(id, Motivo);
    kBanIP(id);
    Kick(id);
    new Log [ ] = "Banidos/Logs/Ban.log";
    format(String ,sizeof(String),"O administrador %s baniu: %s ( Motivo: %s )", PegarNome(playerid), PegarNome(id), Motivo);
    WriteLog(Log, String);
    return 1;
}
pawn Код:
CMD:kickar(playerid, params[])
{
    if(pAdmin[playerid][Level] < 2) return SendClientMessage(playerid, Vermelho,"[ERRO]: Vocк nгo possui permissгo suficiente.");
    new jogador, motivo[74], string[128];
    if(sscanf(params, "us[74]", jogador, motivo)) return SendClientMessage(playerid, Vermelho, "[ERRO]: Use: /kick | ID | | MOTIVO | ");
    if(!IsPlayerConnected(jogador) || playerid == jogador) return SendClientMessage(playerid, Vermelho, "[ERRO]: Jogador nгo conectado! Ou й vocк mesmo.");
    format(string, sizeof string, "[STAFF]: O administrador %s kickou %s ( Motivo: %s )", pname(playerid), pname(jogador), motivo);
    SendClientMessageToAll(Cor_Admin, string);
    return TryEx(playerid, jogador, 2, "");
}
Reply


Messages In This Thread
Dados nгo salvando - by Feelipe - 17.04.2017, 17:45
Re: Dados nгo salvando - by NathanT - 17.04.2017, 17:56
Re: Dados nгo salvando - by Feelipe - 17.04.2017, 18:02
Re: Dados nгo salvando - by RodrigoMSR - 17.04.2017, 18:03
Re: Dados nгo salvando - by Feelipe - 17.04.2017, 18:11
Re: Dados nгo salvando - by Feelipe - 18.04.2017, 16:14
Re: Dados nгo salvando - by didimk157 - 18.04.2017, 16:20
Re: Dados nгo salvando - by Feelipe - 18.04.2017, 17:31
Re: Dados nгo salvando - by AuhMaru - 18.04.2017, 21:30

Forum Jump:


Users browsing this thread: 1 Guest(s)