09.11.2010, 22:09
(
Последний раз редактировалось lavamike; 10.11.2010 в 19:16.
)
Hi, i'm having trouble with Floats and tag mismatch. I have an INI account system which works like this for example:
For an integer:
Store: Takes integer, converts it to string, and saves it as a string in INI file
Load: Takes string in INI file, converts it back to an integer using strval, and returns.
For a float I tried the same process:
Store: Takes float, converts it to string, and saves it as a string in INI file
Load: Takes string in INI file, converts it back to a float using floatstr, and returns.
However I am getting a tag mismatches for returning the float. I've tried nearly everything I can think of and nothing seems to remove this warning. My only guess is that floatstr is broken?
Code: http://pastebin.com/wfeJx8nz
The lines that have warnings on them (176,320) are highlighted on the paste bin.
Below is the code I am trying to perform.
Thanks,
-Mike
For an integer:
Store: Takes integer, converts it to string, and saves it as a string in INI file
Load: Takes string in INI file, converts it back to an integer using strval, and returns.
For a float I tried the same process:
Store: Takes float, converts it to string, and saves it as a string in INI file
Load: Takes string in INI file, converts it back to a float using floatstr, and returns.
However I am getting a tag mismatches for returning the float. I've tried nearly everything I can think of and nothing seems to remove this warning. My only guess is that floatstr is broken?
Код:
C:\Users\Mike\Desktop\SAMP\LG\pawno\include\ACC.inc(176) : warning 213: tag mismatch C:\Users\Mike\Desktop\SAMP\LG\pawno\include\ACC.inc(320) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
The lines that have warnings on them (176,320) are highlighted on the paste bin.
Below is the code I am trying to perform.
pawn Код:
SetPlayerPos(playerid, AccountGetFloat(PlayerName, "posx"), AccountGetFloat(PlayerName, "posy"), AccountGetFloat(PlayerName, "posz"));
Thanks,
-Mike