[AJUDA] BUG id 0
#3

Ta Ae!!

pawn Код:
public OnGameModeExit()
{
    new playerid;
    GetPlayerName(playerid, nome, sizeof(nome));
 format(arquivo,sizeof(arquivo),"/Arquivos/Contas/%s.ini",nome);
 if(fexist(arquivo))
 {
   dini_IntSet(arquivo,"Dinheiro",GetPlayerMoney(playerid));
      dini_IntSet(arquivo,"Level", GetPlayerScore(playerid));
 }
  TextDrawHideForAll(Textdrawdebaixodoradar);
  TextDrawDestroy(Textdrawdebaixodoradar);
 for(new i=0; i<MAX_PLAYERS; i++)
 {
    TextDrawHideForPlayer(i, PlayersOnServer);
    }
       return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
   new pName[MAX_PLAYER_NAME];
    new string[56];
 GetPlayerName(playerid, pName, sizeof(pName));
 format(string, sizeof(string), "(ID %d) %s Saiu do Servidor! ", playerid, pName); // mensagem se alguem sair
 SendClientMessageToAll(GREY, string);
    GetPlayerName(playerid, nome, sizeof(nome));
 format(arquivo,sizeof(arquivo),"/Arquivos/Contas/%s.ini",nome);
 if(fexist(arquivo))
 {
   dini_IntSet(arquivo,"Dinheiro",GetPlayerMoney(playerid));
      dini_IntSet(arquivo,"Level", GetPlayerScore(playerid));
 }

    return 1;
}
Reply


Messages In This Thread
[AJUDA] BUG id 0 - by [BWL]DuST - 09.10.2011, 05:55
Re: [AJUDA] BUG id 0 - by Macintosh - 09.10.2011, 06:05
Re: [AJUDA] BUG id 0 - by [BWL]DuST - 09.10.2011, 06:10
Re: [AJUDA] BUG id 0 - by Macintosh - 09.10.2011, 06:21
Re: [AJUDA] BUG id 0 - by [BWL]DuST - 09.10.2011, 06:22
Re: [AJUDA] BUG id 0 - by Macintosh - 09.10.2011, 06:35
Re: [AJUDA] BUG id 0 - by [BWL]DuST - 09.10.2011, 06:40
Re: [AJUDA] BUG id 0 - by [O.z]Caroline - 09.10.2011, 06:51
Re: [AJUDA] BUG id 0 - by MatriXBorn - 09.10.2011, 06:58
Re: [AJUDA] BUG id 0 - by [O.z]Caroline - 09.10.2011, 07:01

Forum Jump:


Users browsing this thread: 1 Guest(s)