• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Explode()

DedicatedOT

New Member
Joined
Jun 13, 2009
Messages
977
Reaction score
4
Location
USA
Code:
[17/06/2009 12:50:59] Lua Script Error: [TalkAction Interface] 
[17/06/2009 12:50:59] data/talkactions/scripts/bh-add.lua:onSay

[17/06/2009 12:50:59] data/talkactions/scripts/bh-add.lua:6: attempt to call field 'explode' (a nil value)
[17/06/2009 12:50:59] stack traceback:
[17/06/2009 12:50:59] 	data/talkactions/scripts/bh-add.lua:6: in function <data/talkactions/scripts/bh-add.lua:1>

Anyone have the code for explode() ?
 
it's a function, to explode parameters... For example, if you entering talkaction !addgold Fare,1000 then you got
param = Fare,1000
and you need 2 parameters to be exploded, you use
local t = string.explode(param, ",")
and you get t[1] = Fare and t[2] = 1000
 
Back
Top