SA-MP Forums Archive
Y_INI doesnt load - 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: Y_INI doesnt load (/showthread.php?tid=343231)



Y_INI doesnt load - Bartando - 16.05.2012

i did easy script for show what Y_INI does to me

paste bin link is here

This script shoud does this:
-save position of car (X,Y,Z)
-save Lock and Alarm (if is activated or no)
-and save model of vehicle where i write /savec (that c means car)

save works fine ! here is what this script saved
Код:
[Auto]
Model = 411
PosX = 1751.392578
PosY = -2111.434570
PosZ = 13.223710
Alarm = -1
Lock = -1
this is what i want , but when i want to load this things to spawn my saved car (after my re-connect)
nothing happend

thats reason why i add to my script this
Код:
printf("%d %d %d %d Here is pos and modelid",CarInformation[playerid][Model] , CarInformation[playerid][cX], CarInformation[playerid][cY], CarInformation[playerid][cZ]);
But that printf.. print me to console only this
0 0 0 0 Here is pos and modelid ,
And the car is NOT spawn.

I'm realy sorry for my Amazing bad english...
But can somebody help me?


Re: Y_INI doesnt load - ViniBorn - 16.05.2012

pawn Код:
printf("%f %f %f %f Here is pos and modelid",CarInformation[playerid][Model] , CarInformation[playerid][cX], CarInformation[playerid][cY], CarInformation[playerid][cZ]);
Check if 'cX' 'cY' 'cZ' are float.


Re: Y_INI doesnt load - Bartando - 16.05.2012

I try it and it print this



Re: Y_INI doesnt load - park4bmx - 16.05.2012

Can't see the postbin but what I would say is make sure that the enums are floats they are saved as floats they are loaded as floats !
Also y_ini needs to Peres files to load them so make sure you do that but persing them make sure your persing them as strin two.


Re: Y_INI doesnt load - Bartando - 16.05.2012

I have write and load with float and enum too. But i dont understand "Peres files" and persing


Re: Y_INI doesnt load - Bartando - 17.05.2012

No body. ? Or some writing and loading system what is easy for use