21.08.2012, 10:02
Hello. I'm learning to use Y_INI as it is aways faster than dini, and with some tutorial, i succeded to start my vehicle system. It creates the file, everything is good. Just, how can i read the file so i load the information? 
Here's how it would be if i were using dini, but i want it Y_INI...
I tried this for Y_INI, but it gets me some errors....
The error line is:
Thanks in advance.

Here's how it would be if i were using dini, but i want it Y_INI...
pawn Код:
forward LoadVehicleIDInfo();
public LoadVehicleIDInfo()
{
new file[64];
format(file, sizeof(file), "ids.ini");
if(fexist(file))
{
VehicleIDInfo[CID] = dini_Int(file, "CARID");
}
}
pawn Код:
forward LoadVehicleIDInfo();
public LoadVehicleIDInfo()
{
new
carfile[] = "ids.ini",
INI:iniFile = INI_Open(carfile);
INI_Int("CARID", CarIDInfo[CID]);
INI_Close(iniFile);
return 1;
}
Код:
C:\Users\Ricardo\Desktop\Desktop\RRP New Version Windows\gamemodes\RRP.pwn(758) : error 017: undefined symbol "name" C:\Users\Ricardo\Desktop\Desktop\RRP New Version Windows\gamemodes\RRP.pwn(758) : error 017: undefined symbol "value"
pawn Код:
INI_Int("CARID", CarIDInfo[CID]);