Hooray Its Me Again! (LUA Gun Script Causing Errors)
6 replies, posted
function SWEP:IsEquipment( )
return if it
end
its a sniper rifle with five bullets, so would it be equipment or not, and where would i put the true/false on the ' return if it ' line
(I edited this post by the way) (HELP!)
We need the code, put it in [ lua] [ /lua] tags, remove the space in start
is that everything you need?
[editline]17th November 2013[/editline]
i might not get this ever fixed :(
You aren't reading your errors. The reason you are getting this is because your weapon doesn't have IsEquipment defined.
[code]
function SWEP:IsEquipment( )
return if it is
end[/code]
[QUOTE=Kogitsune;42892684]You aren't reading your errors. The reason you are getting this is because your weapon doesn't have IsEquipment defined.
[code]
function SWEP:IsEquipment( )
return if it is
end[/code][/QUOTE]
wait, im now getting: [ERROR] lua/weapons/gdcw_intervention/shared.lua:12: unexpected symbol near 'if'
1. unknown - lua/weapons/gdcw_intervention/shared.lua:0
Line 12: return if it is - what is wrong with this? - i am new to this :/
- and i dont understand the line 0. - whats wrong with that?
[QUOTE=Sir Abyssal;42892823]wait, im now getting: [ERROR] lua/weapons/gdcw_intervention/shared.lua:12: unexpected symbol near 'if'
1. unknown - lua/weapons/gdcw_intervention/shared.lua:0
Line 12: return if it is - what is wrong with this? - i am new to this :/[/QUOTE]
return true or false, true if it is equipment, false if not.
[QUOTE=Busan1;42893233]return true or false, true if it is equipment, false if not.[/QUOTE]
Its a sniper rifle, with 5 bullets, where would i put the true in the script
Sorry, you need to Log In to post a reply to this thread.