https://imgur.com/a/OBvcDx3
Am observat ca atunci cand dau restart se face asa. Daca cumpar casa apare si gen se repara la toate.
Vreo idee cum as putea rezolva?
if(idx == 0)
{
file2 = fopen("cfg/property.cfg", io_write);
}
else
{
file2 = fopen("cfg/property.cfg", io_append);
}
if(HouseInfo[idx][hOwned] == 1)
{
if(HouseInfo[idx][hRentabil] == 0)
{
format(string, sizeof(string), "{CCFF99}Owner: {FFFFFF}%s \n{CCFF99}Level: {FFFFFF}%d \n{CCFF99}Descriere: {FFFFFF}%s \n{CCFF99}Valoare: {FFFFFF}%d \n{CCFF99}House ID: {FFFFFF}%d",HouseInfo[idx][hOwner],HouseInfo[idx][hLevel], HouseInfo[idx][hDiscription], HouseInfo[idx][hValue], idx);
}
else
{
format(string, sizeof(string), "{CCFF99}Owner: {FFFFFF}%s \n{CCFF99}Level: {FFFFFF}%d \n{CCFF99}Rent: {FFFFFF}%d \n{CCFF99}Descriere: {FFFFFF}%s \n{CCFF99}Valoare: {FFFFFF}%d \n{CCFF99}ID: {FFFFFF}%d\n{CCFF99}Type: /rentroom",HouseInfo[idx][hOwner],HouseInfo[idx][hLevel], HouseInfo[idx][hRent], HouseInfo[idx][hDiscription], HouseInfo[idx][hValue], idx);
}
}
else
{
format(string, sizeof(string), "{2EAD15}House For Sale! \n{2EAD15}Level: {FFFFFF}%d \n{2EAD15}Descriere: {FFFFFF}%s \n{2EAD15}Valoare: {FFFFFF}%d \n{2EAD15}ID: {FFFFFF}%d\n{2EAD15}Type: /buyhouse",HouseInfo[idx][hLevel], HouseInfo[idx][hDiscription], HouseInfo[idx][hValue], idx);
}
Update3DTextLabelText(HouseLabel[idx], 0xFFFFFFFF, string);
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}