SA-MP Forums Archive
Problem with saving y_ini - 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: Problem with saving y_ini (/showthread.php?tid=480468)



Problem with saving y_ini - iLegend5 - 10.12.2013

I have vehicle ownership that saves/load with y_ini, on home server it creates file and write variables in file, but on host server it only create's file, but it's won't write variables in file. What's the problem?


Re: Problem with saving y_ini - DanishHaq - 10.12.2013

Either something will be featured in your server log file or your host is one of those cheap/free ones that are not capable of writing stuff inside a file.


Re: Problem with saving y_ini - JustinAn - 10.12.2013

Quote:
Originally Posted by iLegend5
Посмотреть сообщение
I have vehicle ownership that saves/load with y_ini, on home server it creates file and write variables in file, but on host server it only create's file, but it's won't write variables in file. What's the problem?
Well, I'm not sure if this will help you but I had this problem with my home server. I ran the samp-server.exe as administrator and it was filled with variables, but when I didn't run it as admin. It did create the file but the file was blank.


Re: Problem with saving y_ini - iLegend5 - 10.12.2013

I'm using good host I think..

@Justin

How can I check that on host server?


Re: Problem with saving y_ini - AiRaLoKa - 11.12.2013

can you give us the your y_ini code?


Re: Problem with saving y_ini - iLegend5 - 11.12.2013

Here:

Код:
		new dFile[32];
		format(dFile, 35, Car_File, name);
		new INI:File = INI_Open(dFile);

		INI_WriteFloat(File, "X1", VehicleInfo[playerid][vX1]);
		INI_WriteFloat(File, "Y1", VehicleInfo[playerid][vY1]);
		INI_WriteFloat(File, "Z1", VehicleInfo[playerid][vZ1]);
		INI_WriteFloat(File, "A1", VehicleInfo[playerid][vA1]);
		INI_WriteInt(File, "vModel1", VehicleInfo[playerid][vModel1]);
		INI_WriteInt(File, "Lock1", VehicleInfo[playerid][vLock1]);
		INI_WriteString(File, "Owner1", VehicleInfo[playerid][vOwner1]);
		INI_WriteInt(File, "Color1", VehicleInfo[playerid][vColor1]);
		INI_WriteInt(File, "Color2", VehicleInfo[playerid][vColor2]);
		INI_WriteInt(File, "Money1", VehicleInfo[playerid][vMoney1]);
		INI_WriteInt(File, "Gun1", VehicleInfo[playerid][vGun1]);
		INI_WriteInt(File, "Ammo1", VehicleInfo[playerid][vAmmo1]);
		INI_WriteInt(File, "Gun2", VehicleInfo[playerid][vGun2]);
		INI_WriteInt(File, "Ammo2", VehicleInfo[playerid][vAmmo2]);
		INI_WriteInt(File, "TuneComponent1", VehicleInfo[playerid][vTuneVehicleComponent1]);
		INI_WriteInt(File, "TuneComponent2", VehicleInfo[playerid][vTuneVehicleComponent2]);
		INI_WriteInt(File, "TuneComponent3", VehicleInfo[playerid][vTuneVehicleComponent3]);
		INI_WriteInt(File, "TuneComponent4", VehicleInfo[playerid][vTuneVehicleComponent4]);
		INI_WriteInt(File, "TuneComponent5", VehicleInfo[playerid][vTuneVehicleComponent5]);
		INI_WriteInt(File, "TuneComponent6", VehicleInfo[playerid][vTuneVehicleComponent6]);
		INI_WriteInt(File, "TuneComponent7", VehicleInfo[playerid][vTuneVehicleComponent7]);
		INI_WriteInt(File, "TuneComponent8", VehicleInfo[playerid][vTuneVehicleComponent8]);
		INI_WriteInt(File, "TuneComponent9", VehicleInfo[playerid][vTuneVehicleComponent9]);
		INI_WriteInt(File, "TuneComponent10", VehicleInfo[playerid][vTuneVehicleComponent10]);
		INI_WriteInt(File, "TuneComponent11", VehicleInfo[playerid][vTuneVehicleComponent11]);
		INI_WriteInt(File, "TuneComponent12", VehicleInfo[playerid][vTuneVehicleComponent12]);
		INI_WriteInt(File, "TuneComponent13", VehicleInfo[playerid][vTuneVehicleComponent13]);
		INI_WriteInt(File, "TuneComponent14", VehicleInfo[playerid][vTuneVehicleComponent14]);
		INI_WriteInt(File, "TuneComponent15", VehicleInfo[playerid][vTuneVehicleComponent15]);
		INI_WriteInt(File, "TuneComponent16", VehicleInfo[playerid][vTuneVehicleComponent16]);
		INI_WriteInt(File, "TuneComponent17", VehicleInfo[playerid][vTuneVehicleComponent17]);
		INI_WriteInt(File, "TuneComponent18", VehicleInfo[playerid][vTuneVehicleComponent18]);
		INI_WriteInt(File, "Bonnet1", VehicleInfo[playerid][vBonnet1]);
        INI_WriteInt(File, "Trunk1", VehicleInfo[playerid][vTrunk1]);
        INI_WriteInt(File, "Gorivo", VehicleInfo[playerid][vFuel]);
    	INI_Close(File);



Re: Problem with saving y_ini - iLegend5 - 12.12.2013

Bump


Re: Problem with saving y_ini - iLegend5 - 14.12.2013

Bump!