Originally Posted by steeldark
muda essa aqui:
pawn Код:
if(strcmp(cmd, "/preprr", true) == 0) { new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); format(string, sizeof(string), "[INFO] O Administrador %s (%d) estб preparando o servidor para reniciar, Seus Dados Foram Salvos!", aname,playerid); SendClientMessageToAll(GREEN, string); for(new i=0;i<MAX_PLAYERS;i++) { if(pAdmin[playerid] > 4) { new pname[MAX_PLAYER_NAME]; GetPlayerName(i, pname, MAX_PLAYER_NAME); format(file, sizeof(file), PASTA_CONTAS, pname); new grana; grana = GetPlayerMoney(i); dini_IntSet(file, "Dinheiro", grana); dini_IntSet(file, "LevelAdmin", pAdmin[playerid]); } } return 1; }
para essa:
pawn Код:
if(strcmp(cmd, "/preprr", true) == 0) { new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); format(string, sizeof(string), "[INFO] O Administrador %s (%d) estб preparando o servidor para reniciar, Seus Dados Foram Salvos!", aname,playerid); SendClientMessageToAll(GREEN, string); for(new i=0;i<MAX_PLAYERS;i++) { if(pAdmin[playerid] > 4) { new pname[MAX_PLAYER_NAME]; GetPlayerName(i, pname, MAX_PLAYER_NAME); format(file, sizeof(file), PASTA_CONTAS, pname); new grana; grana = GetPlayerMoney(i); dini_IntSet(file, "Dinheiro", grana); dini_IntSet(file, "LevelAdmin", pAdmin[i]); } } return 1; }
|