Loading Color?
#10

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

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] << | 0xFF,
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;
}

doesnt work either, Shows some random color.
Reply


Messages In This Thread
Loading Color? - by xAzKingx - 24.01.2015, 16:46
Re: Loading Color? - by Dignity - 24.01.2015, 16:50
Re: Loading Color? - by xAzKingx - 24.01.2015, 16:56
Re: Loading Color? - by Dignity - 24.01.2015, 16:59
Re: Loading Color? - by xAzKingx - 24.01.2015, 17:06
Re: Loading Color? - by Dignity - 24.01.2015, 17:08
Re: Loading Color? - by Write - 24.01.2015, 17:11
Re: Loading Color? - by TakeiT - 24.01.2015, 17:12
Re: Loading Color? - by Write - 24.01.2015, 18:06
Re: Loading Color? - by xAzKingx - 24.01.2015, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)