05.10.2017, 14:51
How convert this?
Quote:
public SaveAccounts() { new respect, string[128]; foreach(new i : Player) { if(Logged[i]) { format(string, sizeof(string), "Accounts/%s.ini", LinuxName[i]); new File: account = fopen(string, io_write); if(account) { format(string, sizeof(string), "Key=%s\n", PlayerInfo[i][pKey]); dini_Set(account, string); format(string, sizeof(string), "LoserLevel=%d\n", PlayerInfo[i][pLoserLevel]); dini_Set(account, string); format(string, sizeof(string), "Name=%s\n", PlayerInfo[i][pName]); dini_Set(account, string); format(string, sizeof(string), "Level=%d\n", PlayerInfo[i][pLevel]); dini_Set(account, string); format(string, sizeof(string), "AdminLevel=%d\n", PlayerInfo[i][pAdmin]); dini_Set(account, string); format(string, sizeof(string), "DonateRank=%d\n", PlayerInfo[i][pPremium]); dini_Set(account, string); format(string, sizeof(string), "UpgradePoints=%d\n", PlayerInfo[i][pUpPoints]); dini_Set(account, string); format(string, sizeof(string), "ConnectedTime=%d\n", PlayerInfo[i][pHours]); dini_Set(account, string); format(string, sizeof(string), "Registered=%d\n", PlayerInfo[i][pReg]); dini_Set(account, string); format(string, sizeof(string), "Sex=%d\n", PlayerInfo[i][pSex]); dini_Set(account, string); format(string, sizeof(string), "Age=%d\n", PlayerInfo[i][pAge]); dini_Set(account, string); format(string, sizeof(string), "Origin=%s\n", PlayerInfo[i][pOrigin]); dini_Set(account, string); format(string, sizeof(string), "SAO=%d\n", PlayerInfo[i][pFactionPayday]); dini_Set(account, string); format(string, sizeof(string), "Muted=%d\n", PlayerInfo[i][pMuted]); dini_Set(account, string); format(string, sizeof(string), "Respect=%d\n", PlayerInfo[i][pExp]); dini_Set(account, string); format(string, sizeof(string), "Money=%d\n", PlayerInfo[i][pCash]); dini_Set(account, string); format(string, sizeof(string), "Bank=%d\n", PlayerInfo[i][pAccount]); dini_Set(account, string); format(string, sizeof(string), "Crimes=%d\n", PlayerInfo[i][pCrimes]); dini_Set(account, string); format(string, sizeof(string), "Kills=%d\n", PlayerInfo[i][pKills]); dini_Set(account, string); format(string, sizeof(string), "Deaths=%d\n", PlayerInfo[i][pDeaths]); dini_Set(account, string); etc etc etc... |