Problem with my nitro code
#1

I've got some problems with my code it complies fine but doesn't work.

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(GetPlayerVehicleID(playerid) != 522)
{

}
else

if(IsPlayerInAnyVehicle(playerid))
{

if(newkeys & KEY_FIRE)
{
	//Car Jump//
	if(IsPlayerInAnyVehicle(playerid))
	AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); // Nitro
	

}
return 1;
}

}
Its ment to stop the vehicle from installing nitro if its a bike.


But it doesn't even install nitro in the alowed vehicles no why?

Please reply,.

Thanks

Xtreme
Reply


Messages In This Thread
Problem with my nitro code - by Jay. - 23.06.2010, 06:58
Re: Problem with my nitro code - by Kar - 23.06.2010, 07:01
Re: Problem with my nitro code - by Jay. - 23.06.2010, 07:02
Re: Problem with my nitro code - by Kar - 23.06.2010, 07:03
Re: Problem with my nitro code - by Jay. - 23.06.2010, 07:07
Re: Problem with my nitro code - by (SF)Noobanatior - 23.06.2010, 07:07

Forum Jump:


Users browsing this thread: 1 Guest(s)