[Ajuda]Contador de Players
#5

Isto talvez o ajude:

pawn Код:
#include "PGD"
   
    new Precord;//Topo do Gamemode
   
    //OnGameModeInit
    if(pgd_ArquivoExiste("Record.cfg"))
    {
        Precord = pgd_CarregarInt("Record.cfg", "RecordeJogadores", ":");
    }
    else
    {
        pgd_CriarArquivo("Record.cfg");
        pgd_EscreverInt("Record.cfg", "RecordeJogadores", ":", 0);
        Precord = 0;
    }
    //OnGameModeInit
   
    new string[256];
    new players = 0;for(new i; i <MAX_PLAYERS; i++){ if(IsPlayerConnected(i)) { players++;}}
    format(string, sizeof(string),"agora tem %d players Online",players);
    SendClientMessage(playerid,string);
    format(string, sizeof(string),"O Recorde de jogadores online й: %d",Precord);
    SendClientMessage(playerid,string);

    if(pgd_CarregarInt("Record.cfg", "RecordeJogadores", ":") > players)
    {
        pgd_EscreverInt("Record.cfg", "RecordeJogadores", ":", players);
    }
Vocк necessitarб de:

PGD - Protioso Gerenciamento de Dados
Reply


Messages In This Thread
[Ajuda]Contador de Players - by keller012 - 15.09.2010, 19:52
Re: [Ajuda]Contador de Players - by zSuYaNw - 15.09.2010, 23:06
Re: [Ajuda]Contador de Players - by keller012 - 16.09.2010, 01:12
Re: [Ajuda]Contador de Players - by TiagoPS - 16.09.2010, 13:45
Re: [Ajuda]Contador de Players - by Shelby - 16.09.2010, 16:20
Re: [Ajuda]Contador de Players - by Gabriel_Halls - 16.09.2010, 20:44
Respuesta: [Ajuda]Contador de Players - by BiieL - 16.09.2010, 20:46
Re: Respuesta: [Ajuda]Contador de Players - by Shelby - 16.09.2010, 20:48
Re: [Ajuda]Contador de Players - by zSuYaNw - 16.09.2010, 20:51
Re: [Ajuda]Contador de Players - by Shelby - 16.09.2010, 20:55

Forum Jump:


Users browsing this thread: 2 Guest(s)