Loading Color?
#1

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.

Код:
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;
}
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)