SA-MP Forums Archive
Dini problem - 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 problem (/showthread.php?tid=546674)



Dini problem - StreetRP - 16.11.2014

Hello everyone ,i have a problem with this code
Код:
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]);
			}
		}
	}
	return 1;
}
My Spawned dont want change and when i take this to ongamemodeinit , my server detec 0 vehicle , but when i remove this from ongamemodeinit my 161 cars are detected ...

Thks for help


Respuesta: Dini problem - Tusso4 - 16.11.2014

Try inserting it under callback.


Re : Dini problem - StreetRP - 17.11.2014

Dont work :/