31.08.2013, 02:06
pawn Код:
Model = 429
Location_X = 1529.599975
Location_Y = -1691.199951
Location_Z = 13.097030
Angle = 316.994476
Color_1 = 1
Color_2 = 1
Owner = test123_sdlsdsd
Owned = 1
Locked = 0
Paintjob = 999
VirtualWorld = 0
Component0 = 0
Component1 = 0
Component2 = 0
Component3 = 0
Component4 = 0
Component5 = 0
Component6 = 0
Component7 = 0
Component8 = 0
Component9 = 0
Component10 = 0
Component11 = 0
Component12 = 0
Component13 = 0
SecurityCode = 835
In Y_INI how do you stop it using spaces?
pawn Код:
new carfile[64];
format(carfile, sizeof(carfile),"LARP/Vehicles/%d.ini",idx);
new INI:cfile = INI_Open(carfile);
if(fexist(carfile))
{
INI_WriteInt(cfile,"Model", CarInfo[idx][cModel]);
INI_WriteFloat(cfile,"Location_X",CarInfo[idx][cLocationx]);
INI_WriteFloat(cfile,"Location_Y",CarInfo[idx][cLocationy]);
INI_WriteFloat(cfile,"Location_Z",CarInfo[idx][cLocationz]);
INI_WriteFloat(cfile,"Angle",CarInfo[idx][cAngle]);
INI_WriteInt(cfile,"Color_1",CarInfo[idx][cColorOne]);
INI_WriteInt(cfile,"Color_2",CarInfo[idx][cColorTwo]);
INI_WriteString(cfile,"Owner",CarInfo[idx][cOwner]);
INI_WriteInt(cfile,"Owned",CarInfo[idx][cOwned]);
INI_WriteInt(cfile,"Locked",CarInfo[idx][cLock]);
INI_WriteInt(cfile,"Paintjob",CarInfo[idx][cPaintjob]);
INI_WriteInt(cfile,"VirtualWorld",CarInfo[idx][cVirWorld]);
INI_WriteInt(cfile,"Component0",CarInfo[idx][cComponent0]);
INI_WriteInt(cfile,"Component1",CarInfo[idx][cComponent1]);
INI_WriteInt(cfile,"Component2",CarInfo[idx][cComponent2]);
INI_WriteInt(cfile,"Component3",CarInfo[idx][cComponent3]);
INI_WriteInt(cfile,"Component4",CarInfo[idx][cComponent4]);
INI_WriteInt(cfile,"Component5",CarInfo[idx][cComponent5]);
INI_WriteInt(cfile,"Component6",CarInfo[idx][cComponent6]);
INI_WriteInt(cfile,"Component7",CarInfo[idx][cComponent7]);
INI_WriteInt(cfile,"Component8",CarInfo[idx][cComponent8]);
INI_WriteInt(cfile,"Component9",CarInfo[idx][cComponent9]);
INI_WriteInt(cfile,"Component10",CarInfo[idx][cComponent10]);
INI_WriteInt(cfile,"Component11",CarInfo[idx][cComponent11]);
INI_WriteInt(cfile,"Component12",CarInfo[idx][cComponent12]);
INI_WriteInt(cfile,"Component13",CarInfo[idx][cComponent13]);
INI_WriteInt(cfile,"SecurityCode",CarInfo[idx][cCode]);
INI_Close(cfile); // Closes the file