Floats not loading with y_ini
#1

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_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);
    }
}
ini file: (DEA.ini)

Quote:

[DEA]
XPOS = -1396.869750
YPOS = 2633.291015
ZPOS = 55.888492

Reply


Messages In This Thread
Floats not loading with y_ini - by Sellize - 01.05.2015, 13:24
Re: Floats not loading with y_ini - by Sellize - 02.05.2015, 08:24
Re: Floats not loading with y_ini - by Sellize - 04.05.2015, 09:34

Forum Jump:


Users browsing this thread: 1 Guest(s)