XML Float reading bug?
#1

Hello, I am using this XML Plugin: https://sampforum.blast.hk/showthread.php?tid=425175
For some reason, xml_pointer_getvalue_float retrieves only the first numbers before the dot.
e.g:
PHP код:
new FloatXFloatYstring[64];
xml_pointer_childattr(pointer"posX");
xml_pointer_getvalue_float(pointer);
xml_pointer_nextattr(pointer"posY");
xml_pointer_getvalue_float(pointer);
format(string64"Object -> X: %f | Y: %f"XY);
SendClientMessage(playerid, -1string); 
Output:


XML File:
Код:
posX="4202.7002" posY="399.39941"
Am I doing anything wrong? or its just the plugin.
Reply


Messages In This Thread
XML Float reading bug? - by ranme15 - 08.10.2014, 21:00

Forum Jump:


Users browsing this thread: 1 Guest(s)