24.01.2015, 18:51
(
Последний раз редактировалось xAzKingx; 24.01.2015 в 19:57.
)
like i have been saying, Color system is pain in ass lol
i tried this, but this aint working either
Edit: I tried this too
doesnt work either, Shows some random color.
i tried this, but this aint working either
Edit: I tried this too
Quote:
public LoadFamilys() { new rgba[4], argb[4], color[4]; new arrCoords[4][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]); color[idx] = HexToInt(arrCoords[1]); rgba[idx] = (color[idx] << ![]() argb[idx] = color[idx] | (0xFF << 24); FamilyInfo[idx][FamilyColor] = rgba[idx]; FamilyInfo[idx][FamilyFlagColor] = argb[idx]; //printf("Family:%d Taken: %d Name:%s MOTD:%s Leader:%s Members:%d SpawnX:%f SpawnY:%f SpawnZ:%f Int:%d", //idx,FamilyInfo[idx][FamilyTaken],FamilyInfo[idx][FamilyName],FamilyInfo[idx][FamilyMOTD],FamilyInfo[idx][FamilyLeader],FamilyInfo[idx][FamilyMembers],FamilyInfo[idx][FamilySpawn][0],FamilyInfo[idx][FamilySpawn][1],FamilyInfo[idx][FamilySpawn][2],FamilyInfo[idx][FamilyInterior]); idx++; } fclose(file); } return 1; } |