30.08.2013, 21:56
pawn Код:
new carfile[32];
format(carfile, sizeof(carfile),"LARP/Vehicles/%d.ini",idx);
new INI:cfile = INI_Open(carfile);
if(fexist(carfile))
{
INI_WriteInt(carfile, "Model", CarInfo[idx][cModel]);
INI_WriteFloat(carfile,"Location_X",CarInfo[idx][cLocationx]);
INI_WriteFloat(carfile,"Location_Y",CarInfo[idx][cLocationy]);
INI_WriteFloat(carfile,"Location_Z",CarInfo[idx][cLocationz]);
INI_WriteFloat(carfile,"Angle",CarInfo[idx][cAngle]);
INI_WriteInt(carfile,"Color_1",CarInfo[idx][cColorOne]);
INI_WriteInt(carfile,"Color_2",CarInfo[idx][cColorTwo]);
INI_WriteInt(carfile,"Owner",CarInfo[idx][cOwner]);
INI_WriteInt(carfile,"Owned",CarInfo[idx][cOwned]);
INI_WriteInt(carfile,"Locked",CarInfo[idx][cLock]);
INI_WriteInt(carfile,"Paintjob",CarInfo[idx][cPaintjob]);
INI_WriteInt(carfile,"VirtualWorld",CarInfo[idx][cVirWorld]);
INI_WriteInt(carfile,"Component0",CarInfo[idx][cComponent0]);
INI_WriteInt(carfile,"Component1",CarInfo[idx][cComponent1]);
INI_WriteInt(carfile,"Component2",CarInfo[idx][cComponent2]);
INI_WriteInt(carfile,"Component3",CarInfo[idx][cComponent3]);
INI_WriteInt(carfile,"Component4",CarInfo[idx][cComponent4]);
INI_WriteInt(carfile,"Component5",CarInfo[idx][cComponent5]);
INI_WriteInt(carfile,"Component6",CarInfo[idx][cComponent6]);
INI_WriteInt(carfile,"Component7",CarInfo[idx][cComponent7]);
INI_WriteInt(carfile,"Component8",CarInfo[idx][cComponent8]);
INI_WriteInt(carfile,"Component9",CarInfo[idx][cComponent9]);
INI_WriteInt(carfile,"Component10",CarInfo[idx][cComponent10]);
INI_WriteInt(carfile,"Component11",CarInfo[idx][cComponent11]);
INI_WriteInt(carfile,"Component12",CarInfo[idx][cComponent12]);
INI_WriteInt(carfile,"Component13",CarInfo[idx][cComponent13]);
INI_WriteInt(carfile,"SecurityCode",CarInfo[idx][cCode]);
INI_Close(carfile);
What did I do wrong their?