nevereq
Member
- Joined
- Apr 16, 2011
- Messages
- 51
- Reaction score
- 5
Hello guys,
I have a problem with script by DanJ93 from tibia.net.pl ,
for me it's looking good, but in console error appears:
I'm using otx 8.54 server. Does anyone know, how to fix it?
I have a problem with script by DanJ93 from tibia.net.pl ,
Code:
function onLogin(cid)
local outfity = {
[1] = {111, 111},
[2] = {111, 111},
[3] = {111, 111},
[4] = {111, 111},
}
local i = 1,
if getPlayerVocation(cid) == outfity[i]
if getPlayerSex(cid) == 1
then
doSetCreatureOutfit(cid, outfity[i][1], -1)
else
doSetCreatureOutfit(cid, outfity[i][2], -1)
end
return true
end
for me it's looking good, but in console error appears:
[4/2/2017 19:32:24] >>> Loading creaturescripts... [Error - LuaInterface::loadFile] data/creaturescripts/scripts/outfitek.lua:9: unexpected symbol near 'if'
[4/2/2017 19:32:24] [Error - Event::checkScript] Cannot load script (data/creaturescripts/scripts/outfitek.lua)
[4/2/2017 19:32:24] data/creaturescripts/scripts/outfitek.lua:9: unexpected symbol near 'if'
I'm using otx 8.54 server. Does anyone know, how to fix it?