Make StaticVehiclesFromFile into a team vehicle
#1

Hello,

I wonder if theres any way to set the vehicles you load from a file into a value.
I tried this;

Код:
new taxi;
Код:
taxi = total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_taxi.txt");
then under onplayerstatechange

Код:
	if(newstate == PLAYER_STATE_DRIVER)
	{	
new bam = GetPlayerVehicleID(playerid);	
if(bam == taxi)
{
blablabla
 		{
eventually i want to make them into a team or lock them all
Reply
#2

hmm...can anyone please help me?
Reply
#3

It is possible to pass an array as reference to the function (you'll need to edit the function first to make it save the vehicle ids into the array), but this is very unhandy, since the array will need to be a set size, while the vehicle count in a file can be unlimited
Reply
#4

Hmm ye... i'll better look for an alternative i guess
thanks man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)