Hello
I was wondering if someone could help me well basically how do covert this into C(sharp)
if(Input.GetKey(KeyCode.F) && BulletsLeft ){
not all of the line just the && because i get an error message but in java this works fine
please can someone help me thank you in advance MCHALO
I have :) its called public int BulletsLeft = 0; on my script and i get this error : Assets/FPSScripts/C(Sharp)/RayShootC.cs(68,34): error CS0019: Operator
– MC_HALO&&' cannot be applied to operands of typebool' and `int' :)yes you can't do this because (BulletsLeft) is int and u need to make something like this if(Input.GetKey(KeyCode.F) && BulletsLeft == 0 ){
– Ziadyep that solved it i need to do that but the equal had to be > because if i did 0 then i could only fire if my bullets went to 0 thank you :)
– MC_HALOUgh yeah , you welcome :)
– Ziad: ) lol thanks once again :)
– MC_HALO