Dini Spawn Probleme
#1

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 )
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)