HelpChange weapon damage

Posts 1–5 of 5 · Page 1 of 1
Change weapon damage
Ok before you say yes I did look at the tutorial but i just keep getting syntax errors.

Code:
if(sWeapon == "weaponname_mp") // use if(isSubStr(sWeapon, "cheytac_")) if you want the weapon to do the damage no matter which attachments
iDamage = 100;
i use this but i get syntax error

can someone just give me the line of code to put into the damage file to edit for different guns

thanks
Since weaponname isnt a weapon u get a error >.>
Quote Originally Posted by JustAndy View Post
Ok before you say yes I did look at the tutorial but i just keep getting syntax errors.

Code:
if(sWeapon == "weaponname_mp") // use if(isSubStr(sWeapon, "cheytac_")) if you want the weapon to do the damage no matter which attachments
iDamage = 100;
i use this but i get syntax error

can someone just give me the line of code to put into the damage file to edit for different guns

thanks
You miss the "do if"

Code:
if(sWeapon == "weaponname_mp"){
iDamage = 100;
}
Quote Originally Posted by mathieutje12 View Post
Since weaponname isnt a weapon u get a error >.>
well i obviously changed that part, i was just showing what i started with

thanks but thats the tut i said i got errors from

Quote Originally Posted by Jorndel View Post
You miss the "do if"

Code:
if(sWeapon == "weaponname_mp"){
iDamage = 100;
}
thanks but in the end i solved the problem with this code:
Code:
	if(isSubStr(sWeapon, "barrett_"))
		iDamage = 150;
so its a bit different from what i had but it now works
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us