Hallo Leute,
Bei mein Haus System Ladet die interiorid nicht korrekt bitte um hilfe.
Danke im Vorraus
Load House! + Save House!
stock LoadHouses()
{
new str[158];
new hausstring[256];
for(new i = 0; i<SCRIPT_MAXHOUSES; i++)
{
format(str, sizeof str, "/Houses/%d.ini", i);
if(fexist(str))
{
HouseInfo[i][hEntrancex] = dini_Float(str, "Entrancex");
HouseInfo[i][hEntrancey] = dini_Float(str, "Entrancey");
HouseInfo[i][hEntrancez] = dini_Float(str, "Entrancez");
HouseInfo[i][hExitx] = Interiors[HouseInfo[i][hIntid]][intpx];
HouseInfo[i][hExity] = Interiors[HouseInfo[i][hIntid]][intpy];
HouseInfo[i][hExitz] = Interiors[HouseInfo[i][hIntid]][intpz];
format(HouseInfo[i][hOwner], 256,"%s",dini_Get(str,"Besitzer"));
HouseInfo[i][hPrice] = dini_Int(str, "Preis");
HouseInfo[i][hInt] = Interiors[HouseInfo[i][hIntid]][interiorid];
HouseInfo[i][hLock] = dini_Int(str, "Lock");
HouseInfo[i][hOwned] = dini_Int(str, "Besitz");
HouseInfo[i][hRent] = dini_Int(str, "Miete");
HouseInfo[i][hRentabil] = dini_Int(str, "Mietbar");
HouseInfo[i][hKasse] = dini_Int(str, "Kasse");
HouseInfo[i][hSpielzeit] = dini_Int(str, "Spielzeit");
HouseInfo[i][hLeben] = dini_Int(str, "Leben");
HouseInfo[i][hIntid] = dini_Int(str, "Intid"); }
}
return 1;
}
stock LoadHouse(i)
{
new str[158];
new hausstring[256];
format(str, sizeof str, "/Houses/%d.ini", i);
if(fexist(str))
{
HouseInfo[i][hEntrancex] = dini_Float(str, "Entrancex");
HouseInfo[i][hEntrancey] = dini_Float(str, "Entrancey");
HouseInfo[i][hEntrancez] = dini_Float(str, "Entrancez");
HouseInfo[i][hExitx] = Interiors[HouseInfo[i][hIntid]][intpx];
HouseInfo[i][hExity] = Interiors[HouseInfo[i][hIntid]][intpy];
HouseInfo[i][hExitz] = Interiors[HouseInfo[i][hIntid]][intpz];
format(HouseInfo[i][hOwner], 256,"%s",dini_Get(str,"Besitzer"));
HouseInfo[i][hPrice] = dini_Int(str, "Preis");
HouseInfo[i][hInt] = Interiors[HouseInfo[i][hIntid]][interiorid]);
HouseInfo[i][hLock] = dini_Int(str, "Lock");
HouseInfo[i][hOwned] = dini_Int(str, "Besitz");
HouseInfo[i][hRent] = dini_Int(str, "Miete");
HouseInfo[i][hRentabil] = dini_Int(str, "Mietbar");
HouseInfo[i][hKasse] = dini_Int(str, "Kasse");
HouseInfo[i][hSpielzeit] = dini_Int(str, "Spielzeit");
HouseInfo[i][hLeben] = dini_Int(str, "Leben");
HouseInfo[i][hIntid] = dini_Int(str, "Intid"); }
return 1;
}
stock SaveHouses()
{
new str[128];
for(new i = 0; i<SCRIPT_MAXHOUSES; i++)
{
format(str, sizeof str, "/Houses/%d.ini", i);
if(fexist(str))
{
dini_FloatSet(str,"Entrancex", HouseInfo[i][hEntrancex]);
dini_FloatSet(str, "Entrancey", HouseInfo[i][hEntrancey]);
dini_FloatSet(str, "Entrancez", HouseInfo[i][hEntrancez]);
dini_Set(str,"Besitzer", HouseInfo[i][hOwner]);
dini_IntSet(str, "Preis", HouseInfo[i][hPrice]);
dini_IntSet(str, "Lock", HouseInfo[i][hLock]);
dini_IntSet(str, "Besitz", HouseInfo[i][hOwned]);
dini_IntSet(str, "Miete", HouseInfo[i][hRent]);
dini_IntSet(str, "Mietbar", HouseInfo[i][hRentabil]);
dini_IntSet(str, "Kasse", HouseInfo[i][hKasse]);
dini_IntSet(str, "Spielzeit", HouseInfo[i][hSpielzeit]);
dini_IntSet(str, "Intid", HouseInfo[i][hIntid]);
dini_IntSet(str, "Leben", HouseInfo[i][hLeben]);
}
}
return 1;
}
stock SaveHouse(i)
{
new str[60];
format(str, sizeof str, "/Houses/%d.ini", i);
if(fexist(str))
{
dini_FloatSet(str,"Entrancex", HouseInfo[i][hEntrancex]);
dini_FloatSet(str, "Entrancey", HouseInfo[i][hEntrancey]);
dini_FloatSet(str, "Entrancez", HouseInfo[i][hEntrancez]);
dini_Set(str,"Besitzer", HouseInfo[i][hOwner]);
dini_IntSet(str, "Preis", HouseInfo[i][hPrice]);
dini_IntSet(str, "Lock", HouseInfo[i][hLock]);
dini_IntSet(str, "Besitz", HouseInfo[i][hOwned]);
dini_IntSet(str, "Miete", HouseInfo[i][hRent]);
dini_IntSet(str, "Mietbar", HouseInfo[i][hRentabil]);
dini_IntSet(str, "Kasse", HouseInfo[i][hKasse]);
dini_IntSet(str, "Spielzeit", HouseInfo[i][hSpielzeit]);
dini_IntSet(str, "Intid", HouseInfo[i][hIntid]);
dini_IntSet(str, "Leben", HouseInfo[i][hLeben]);
}
return 1;
}
Hoffe ihr könnt mir helfen