when the player presses a special button, it's supposed to do this, put on a silencer..
as soon as i press the button, it crashes... i guess my newbie-brain has forgotten something with the keys or something..
i haven't made anything for the else yet but that can't be the problem(or am i wrong?)..
as soon as i press the button, it crashes... i guess my newbie-brain has forgotten something with the keys or something..
i haven't made anything for the else yet but that can't be the problem(or am i wrong?)..
Code:
user0:
if (silencer == 0)
{
silencer = silencer + 1;
DeactivateWeapon(player, mode);
if (trackID!= -1) jkStopPovKey(player, trackID, 0);
jkSetPovModel(player, silencermodel);
trackID = jkPlayPOVKey(player, silenceron, 0, 20);
SetMountWait(player, GetKeyLen(silenceron));
PlaySoundThing(silenceronsnd, player, 1, 0.3, 5.5, 0x80);
}
else
{
return;
}
return;