SA-MP Forums Archive
Plate System - 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: Plate System (/showthread.php?tid=594190)



Plate System - AtomicSAMP - 14.11.2015

I need the spawne car with a plate inside the gamemode and save this card like this:

Код:
stock FindVehicleByPlate(plate[])
{
	for(new i = 0; i < MAX_VEHICLES; i++)
	{
		if(!strcmp(CarData[i][carPlate], vehicleid, true))
		{
			return i;
		}
	}
	return 0;
}
I'm using script South Central Roleplay!


Re : Plate System - Dutheil - 14.11.2015

Код:
stock FindVehicleByPlate(plate[])
{
	for(new i = 0; i < MAX_VEHICLES; i++)
	{	
		if(strcmp(CarData[i][carPlate], plate, true) == 0)
		{
			return i;
		}
	}
	
	return 0;
}



Re: Plate System - AtomicSAMP - 14.11.2015

what? helps me deploy in gm?