[Include] [INC] SII 2.0.6 - Fast cache based INI Reader/Writer
#7

Code:
ownCar1owner=None
ownCar1x=1098
ownCar1y=-1774
ownCar1z=13.4
ownCar1f=268

ownCar2owner=None
ownCar2x=1098
ownCar2y=-1768
ownCar2z=13.4
ownCar2f=268
As far as I know, floats must not be alone, like, they must have a .0 on the end of it - otherwise are read as 0 - same for converting any other string to a float. So you should try changing that to this:
Code:
ownCar1owner=None
ownCar1x=1098.0
ownCar1y=-1774.0
ownCar1z=13.4
ownCar1f=268.0

ownCar2owner=None
ownCar2x=1098.0
ownCar2y=-1768.0
ownCar2z=13.4
ownCar2f=268.0

Also.. this part is wrong...
Code:
ownCar1owner = INI_ReadString("ownCar1owner");
Code:
ownCar2owner = INI_ReadString("ownCar2owner");
> stock INI_ReadString(dest[], const key[], maxlength = sizeof(dest))
You're using it wrong. Rather, It'd be:
Code:
INI_ReadString(ownCar1owner, "ownCar1owner");
Code:
INI_ReadString(ownCar2owner, "ownCar2owner");
Specify the size of the destination string if needed.


Oh yeah, if you're using it to store vehicles in that fashion, I'd suggest you increase the amount of lines, and store the XYZR like this, split using your own code by commas:
Code:
ownCar1pos=1098.0,-1774.0,13.4268.0,268.0
That results in a smaller file, and possibly even faster read/write speeds.


I've used SII for my entire gamemode - as far as I know, everything works perfectly.
Reply


Messages In This Thread
[INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 18.12.2008, 02:45
Re: Slick's INI Implementation 2.0.6 - Very fast cache based INI Reader/Writer - by Jason_Gregory - 18.12.2008, 03:05
Re: SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 18.12.2008, 22:20
Re: SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 18.12.2008, 23:00
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Antironix - 19.12.2008, 10:43
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Mazza101 - 23.12.2008, 17:48
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by KillFrenzy - 24.12.2008, 00:32
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Mazza101 - 24.12.2008, 00:40
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by KillFrenzy - 24.12.2008, 01:30
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Mazza101 - 24.12.2008, 02:11
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 24.12.2008, 02:13
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by MX_Master - 01.05.2009, 07:36
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Goldkiller - 01.05.2009, 10:04
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 03.05.2009, 05:31
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by MX_Master - 04.05.2009, 17:13
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Weirdosport - 04.05.2009, 17:25
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by MX_Master - 19.05.2009, 18:11
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by BlackFoX - 21.05.2009, 17:02
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Trooper[Y] - 23.07.2009, 13:04
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by yezizhu - 23.07.2009, 13:19
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Trooper[Y] - 23.07.2009, 13:39
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Chriss110 - 03.10.2009, 08:55
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by [RSD]Jan - 25.10.2009, 11:07
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by aXE5LOk - 14.11.2009, 22:21
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Trooper[Y] - 14.11.2009, 22:23
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Vincenzo77 - 17.01.2010, 10:05
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by [DRuG]Slick - 07.04.2010, 11:12
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by MahmutBey - 07.04.2010, 20:44
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by cloud9 - 08.04.2010, 02:52
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by kurta999 - 16.07.2010, 20:21
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by AvicennaRabama - 17.06.2015, 14:01
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by Yashas - 17.06.2015, 14:50
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by AndreiWow - 05.09.2015, 15:41
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by SpikY_ - 05.09.2015, 16:13
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by betola - 02.07.2017, 16:07
Re: [INC] SII 2.0.6 - Fast cache based INI Reader/Writer - by NaS - 02.07.2017, 16:23

Forum Jump:


Users browsing this thread: 2 Guest(s)