PDA

View Full Version : LUA problem



ziomal92
11-09-2015, 09:03 PM
Hello boys i've got problem with my lua.
XenoScript Error:
Script: Horetis RP.lua
Line #: 47
Chunk: ...Users?toshiba?DOCUME?1?XenoBot?Scripts??HORETI? 1.LUA
Error: 'luaGotoLabel' called with invalid number of arguments [1 supplied, 2 required]!

function onWalkerSelectLabel(labelName)
if (labelName == "checkManas") then
if (Self.ItemCount(PotID) <= MinPots) or (Self.Cap() < MinCap) or (Self.ItemCount(7378) <= SpearLeave) then
gotoLabel("Leave")
else
gotoLabel("start") <<<<<47

Can someone help me with this lua?

Nakuu
11-09-2015, 09:05 PM
Replace gotoLabel with Walker.Goto.

ziomal92
11-09-2015, 09:10 PM
Thank You mate :)