02.01.2014, 14:24
First of all, i would like to thank you for creating y_ini script 
I want to create script to save and load buyed vehicles (on player connect) in GM
I've got working saving but the script won't load data from ini file
OnPlayerConnect
file exists so it calls the function
(I removed the part of code that creates the vehicle for now, otherwise i've got it in code)
the function starts but it will print all zeros
i read whole tutorial for y_ini and did everything what was there but i don't know what to do know
can anybody help me, please ?
this is the .ini file:

I want to create script to save and load buyed vehicles (on player connect) in GM
I've got working saving but the script won't load data from ini file
OnPlayerConnect
Код:
new fileName[]="users_vehicles/Mato0.ini"; if(fexist(fileName)){ INI_ParseFile(fileName, "loadVehicle", .bPassTag=true); }
Код:
forward loadVehicle(tag[], name[], value[]); public loadVehicle(tag[], name[], value[]){ new vehID, Float:vehHealth, Float:vehPosX, Float:vehPosY, Float:vehPosZ, Float:vehZAngle, vehInterior, vehColor1, vehColor2, vehPaintjob; INI_Int("vID", vehID); INI_Float("vHealth", vehHealth); INI_Float("vPosX", vehPosX); INI_Float("vPosY", vehPosY); INI_Float("vPosZ", vehPosZ); INI_Float("vZAngle", vehZAngle); INI_Int("vInterior", vehInterior); INI_Int("vColor1", vehColor1); INI_Int("vColor1", vehColor2); INI_Int("vPaintjob", vehPaintjob); printf("%d, %.1f, %.1f, %.1f, %.1f, %.1f, %d, %d, %d, %d", vehID, vehHealth, vehPosX, vehPosY, vehPosZ, vehZAngle, vehInterior, vehColor1, vehColor2, vehPaintjob); }
the function starts but it will print all zeros

i read whole tutorial for y_ini and did everything what was there but i don't know what to do know

can anybody help me, please ?
this is the .ini file:
Код:
vID = 562 vHealth = 1000.000000 vPosX = 2074.495361 vPosY = 1685.016357 vPosZ = 10.302776 vZAngle = 178.577453 vInterior = 0 vColor1 = 1 vColor2 = 1 vPaintjob = 1