Quote:
Originally Posted by Larceny
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
|
nгo й presiso criar as CFgs?