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
#2

Anyone?
Reply
#3

Fixed, the problem was I forgot to add the tag
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)