PDA

View Full Version : noob need help



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

Jontor
02-05-2016, 02:58 PM
There's nothing missing

IKillYou
02-05-2016, 03:21 PM
"function onWalkerSelectLabel(LabelName)
if(labelName == "Checker") then"

try change first LabelName to labelName

kamilqq
02-06-2016, 01:29 AM
"function onWalkerSelectLabel(LabelName)
if(labelName == "Checker") then"

try change first LabelName to labelName

thats right, but its about end's :D Yeah nothing is missing, You should send whole code.