undefined Posted March 21, 2014 Share Posted March 21, 2014 (edited) addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function ( theKiller ) local h = getTime() if h > 20 or h < 6 if theKiller then addPlayerEXP( theKiller, math.random(120, 200 )) else addPlayerEXP( theKiller, math.random(30, 60 )) end end end ) Error SCRIPT ERROR: Jack/exp.lua:6: 'then' expected near 'if' Edited March 22, 2014 by Guest Link to comment
JR10 Posted March 21, 2014 Share Posted March 21, 2014 You're missing a 'then' at line 5, as the error suggests. addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function ( theKiller ) local h = getTime() if h > 20 or h < 6 if theKiller then addPlayerEXP( theKiller, math.random(120, 200 )) else addPlayerEXP( theKiller, math.random(30, 60 )) end end end ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now