SA-MP Forums Archive
Dini Spawn Probleme - 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: Dini Spawn Probleme (/showthread.php?tid=545294)



Dini Spawn Probleme - StreetRP - 07.11.2014

Hello everyone , i have a probleme with my spawn spawn system (load)

I have write a : LoadSpawnCar() and forward this
and public like this

Код:
public LoadSpawnCar()
{
	for(new c = 450; c < MAX_VEHICLES; c ++)
	{
	    if(CarInfo[c][cSpawned] == 1)
	    {
			CarInfo[c][cSpawned] = 0;
			new file[256];
			format(file, sizeof(file), "LARP/Vehicles/%s.%s.ini", CarInfo[c][cOwner], VehicleNames[GetVehicleModel©-400]);
			if(dini_Exists(file))
			{
				dini_IntSet(file,"Spawned",CarInfo[c][cSpawned]);
				dini_IntSet(file, "Spawned", 0);
			}
		}
	}
	return 1;
}
But when i compile i doesent have error
but when i launch samp server.exe , no vehicle loaded x/

Plz can one help me (sory i'm french )


Re: Dini Spawn Probleme - dominik523 - 07.11.2014

You are saving two integers instead of loading them.
Use dini_Int.