20.07.2014, 02:10
Oh, right.
The filterscript uses Dini:
As you can see, it uses a separate folder named Houses.
Код:
public LoadUser_data(playerid,name[],value[]) { INI_Int("Password",PlayerInfo[playerid][pPass]); INI_Int("Cash",PlayerInfo[playerid][pCash]); INI_Int("Admin",PlayerInfo[playerid][pAdmin]); INI_Int("Kills",PlayerInfo[playerid][pKills]); INI_Int("Deaths",PlayerInfo[playerid][pDeaths]); INI_Int("Sex",PlayerInfo[playerid][pSex]); INI_Int("Age",PlayerInfo[playerid][pAge]); INI_Int("Paytime",PlayerInfo[playerid][pPaytime]); INI_Int("Respekti",PlayerInfo[playerid][pRespekti]); INI_Int("Level",PlayerInfo[playerid][pLevel]); INI_Int("Bank_Wealth", PlayerInfo[playerid][BankWealth]); INI_String("Bank_Password", PlayerInfo[playerid][BankPassword], 129); INI_Int("Skin", PlayerInfo[playerid][pSkin]); return 1; }
Код:
format(file,sizeof(file),"Houses/%i.ini",i); if(!dini_Exists(file)) continue; if(dini_Exists(file)) { HouseInfo[i][Name] = strval(dini_Get(file,"Name")); HouseInfo[i][Level] = dini_Int(file,"Level"); HouseInfo[i][Price] = dini_Int(file,"Price"); HouseInfo[i][Owned] = dini_Int(file,"Owned"); HouseInfo[i][hX] = dini_Float(file,"X"); HouseInfo[i][hY] = dini_Float(file,"Y"); HouseInfo[i][hZ] = dini_Float(file,"Z"); HouseInfo[i][hVirtual] = dini_Int(file,"VirtualWorld"); hOwner = dini_Get(file,"Owner"); format(HouseInfo[i][Owner],24,"%s",hOwner);