01.05.2015, 13:24
Okay I am trying to load floats from a file into variables, this worked exactly with this method with other vars but it's no longer working. it just says the floats are 0.00000
ini file: (DEA.ini)
Код:
INI_Load("Locations/DEA.ini");
Код:
INI:DEA[](name[], value[])
{
if (!strcmp(name, "XPOS"))
{
DEAx = floatstr(value);
}
if (!strcmp(name, "YPOS"))
{
DEAy = floatstr(value);
}
if (!strcmp(name, "ZPOS"))
{
DEAz = floatstr(value);
}
}
Quote:
|
[DEA] XPOS = -1396.869750 YPOS = 2633.291015 ZPOS = 55.888492 |

