format and save to a file..hex colours
#7

Ah yes, cool. Thanks it works now


Do you know how to store hex colours in a variable?

I've tried adding zColor to the gangzone file.

Instead of it saving as a hex colour it saves as a number. for example "30"

pawn Код:
format(GangZoneInfo[spaces][zColor], 32, "0x00000042");
And for writing to the file
pawn Код:
format(info, 32, "Colour=%x\n", GangZoneInfo[spaces][zColor]);fwrite(gzfile, info);
Reply


Messages In This Thread
format and save to a file..hex colours - by Outbreak - 06.03.2009, 22:38
Re: format and save to a file.. - by Jefff - 06.03.2009, 23:12
Re: format and save to a file.. - by Outbreak - 06.03.2009, 23:32
Re: format and save to a file.. - by Jefff - 06.03.2009, 23:37
Re: format and save to a file.. - by Outbreak - 06.03.2009, 23:46
Re: format and save to a file.. - by Jefff - 06.03.2009, 23:47
Re: format and save to a file.. - by Outbreak - 07.03.2009, 00:11
Re: format and save to a file..hex colours - by [RP]Rav - 07.03.2009, 07:16
Re: format and save to a file..hex colours - by Outbreak - 07.03.2009, 11:40

Forum Jump:


Users browsing this thread: 1 Guest(s)