Electro88 Posted February 10, 2016 Share Posted February 10, 2016 (edited) hello i have problem in script codes same but give error ERROR: :27: 'end' expected (to close 'function' at line 10) near '(eof)' --[[function boss (player,comando,weaponid,skinid) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then local x,y,z = getElementPosition(player) slothbot1 = exports [ "slothbot" ]:spawnBot ( x,y,z , 90, tonumber(skinid), 0, 0, ex, tonumber(weaponid), "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot1, math.random(2500, 3355) ) end addCommandHandler("spawnbot",boss)]] function bos (player,comando,weaponid,skinid) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then local x,y,z = getElementPosition(player) slothbot1 = exports [ "slothbot" ]:spawnBot ( x,y,z , 90, tonumber(weaponid), 0, 0, ex, tonumber(skinid), "hunting", true ) exports.extra_health:setElementExtraHealth ( slothbot1, math.random(2500, 3355) ) end addCommandHandler("spawnbot",bos) Edited February 10, 2016 by Guest Link to comment
Enargy, Posted February 10, 2016 Share Posted February 10, 2016 You are missing an 'end'. Link to comment
Electro88 Posted February 10, 2016 Author Share Posted February 10, 2016 ok i fixed thanks. 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