24.01.2015, 16:46
How do you load this color from saved files?
I have 0xFFFFF000 and 0xFFF000FF saved in KingdomColor and KingdomFlagColor.
They are not loading. This is my loading thing.
I have 0xFFFFF000 and 0xFFF000FF saved in KingdomColor and KingdomFlagColor.
They are not loading. This is my loading thing.
Код:
public LoadFamilys() { new arrCoords[3][64]; new strFromFile2[256]; new File: file = fopen("LARP/Familys.cfg", io_read); if (file) { new idx; while (idx < sizeof(FamilyInfo)) { fread(file, strFromFile2); split(strFromFile2, arrCoords, '|'); FamilyInfo[idx][FamilyTaken] = strval(arrCoords[0]); FamilyInfo[idx][FamilyColor] = strval(arrCoords[1]); FamilyInfo[idx][FamilyFlagColor] = strval(arrCoords[2]); idx++; } fclose(file); } return 1; }