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

I'm trying to save co-ordinates to a text file, i can only get it to save 0.0000

I'm also trying to save hex colours to a text file.

this is what i've tried

pawn Код:
new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    format(GangZoneInfo[spaces][zXpos1], 32, "%f", X);
    format(GangZoneInfo[spaces][zYpos1], 32, "%f", Y);
it compiles fine, no errors or warnings, then when i try to save the position with a command i made it saves as 0.0000

Alsoi've tried this

pawn Код:
new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    GangZoneInfo[spaces][zXpos1] = X;//warning 213: tag mismatch
    GangZoneInfo[spaces][zYpos1] = Y;//warning 213: tag mismatch
only this time i get two warnings.
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)