Floats not loading with y_ini - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Floats not loading with y_ini (
/showthread.php?tid=572736)
Floats not loading with y_ini -
Sellize - 01.05.2015
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
|
Re: Floats not loading with y_ini -
Sellize - 02.05.2015
Anyone?
Re: Floats not loading with y_ini -
Sellize - 04.05.2015
Fixed, the problem was I forgot to add the tag