Crash on nos add ?
#1

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

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
Reply
#3

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.
Reply
#4

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
Reply
#5

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

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!
Reply
#7

what vehicle you adding it to?
Reply
#8

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
Reply
#9

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.
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)