SA-MP Forums Archive
Crash on nos add ? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Crash on nos add ? (/showthread.php?tid=99569)



Crash on nos add ? - hipy - 28.09.2009

Hi

On spawn i do the following
Код:
if(IsBike(vehicle[playerid]))
	{
	 	bike[playerid] = 1;
	}
	else
	{
	 	AddVehicleComponent(vehicle[playerid], 1010);//The nitro
	}
This is placed under OnPlayerSpawn
The isbike function is if vehicle id = ( all bike id's ) then bike player = 1 else it adds the nitro , but on spawn with a tractor i didnt crash and i crashed with a packer. Nos Was added .

Can sombody help me with this problem

thanks in advance


Re: Crash on nos add ? - Desert - 28.09.2009

Umm im pretty sure it wont work since you put it under OnPlayerSpawn

Try put it under OnPlayerEnterVehicle

Btw im pretty sure bikes can't get nitro


Re: Crash on nos add ? - shady91 - 28.09.2009

make sure you dont add nos to a vehicle like a push bike other wise it will cause a crash and all other vehicle's that that are not ment to use nos.


Re: Crash on nos add ? - hipy - 28.09.2009

Well if you read a bit up

if its a bike it wont be added

if it isnt abike it will be added

but i will try on playentervehicle and report again


Re: Crash on nos add ? - shady91 - 28.09.2009

yes it will if you make a command to add nos to the vehicle your in and your on a bike it will crash.


Re: Crash on nos add ? - hipy - 28.09.2009

It isnt added onto a bike!

Its added to a vehicle but every time you are in a car and nos gets added your client crashes!


Re: Crash on nos add ? - shady91 - 28.09.2009

what vehicle you adding it to?



Re: Crash on nos add ? - hipy - 28.09.2009

all vehicles posible. I crash with tugs etc

Then when i reconnect i crash instant on connect

i tried via command but still crashed on connect. after i removed the /nos command i didnt crash anymore


Re: Crash on nos add ? - shady91 - 28.09.2009

Quote:
Originally Posted by hipy
all vehicles posible. I crash with tugs etc

Then when i reconnect i crash instant on connect

i tried via command but still crashed on connect. after i removed the /nos command i didnt crash anymore
you want to make a group with all vehicle's that cant use nos and then make when on spawn for that group of vehcile it doesn't add the nos other wise it will crash you.


Re: Crash on nos add ? - hipy - 28.09.2009

so a tug with nos crashes. i Had a crash with normal cars to :S like bullet etc