switchbre
02-04-2016, 10:21 PM
local AmmoName = "simple arrow"
local LeaveAmmo = 40
local AmmoID = Item.GetID(AmmoName)
function onWalkerSelectLabel(LabelName)
if(labelName == "Checker") then
Walker.ConditionalGoto((Self.ItemCount(AmmoID) <= LeaveAmmo), "Leave", "Hunt")
end
end
Error: 'end' expected (to close 'if' at line 4)near '<eof>'
hello, can anyone help a noob out? :p
local LeaveAmmo = 40
local AmmoID = Item.GetID(AmmoName)
function onWalkerSelectLabel(LabelName)
if(labelName == "Checker") then
Walker.ConditionalGoto((Self.ItemCount(AmmoID) <= LeaveAmmo), "Leave", "Hunt")
end
end
Error: 'end' expected (to close 'if' at line 4)near '<eof>'
hello, can anyone help a noob out? :p