Burczyk
New Member
- Joined
- Oct 10, 2011
- Messages
- 94
- Reaction score
- 3
Witam chciałem napisać skrypta którego tabele wyglądały tak
i sam skrypt
Ale skrypt nie działa i wywala takie błędy, moje pytanie brzmi jak to zrobić, i jak można to proszę o przykład albo naprawienie tego.
LUA:
OUTS = {
[2] = {tov = 1, nlt = {lookType=24},
[3] = {tov = 1, nlt = {lookType=24}},
}
LUA:
local function doPlayerRevert(cid, manaloss, check)
if check == false or getCreatureMana(cid) < manaloss then
if OUTS[getPlayerVocation(cid)] then
doCreatureChangeOutfit(cid, OUTS.NLT)
doPlayerSetVocation(cid, OUTS.TOV)
else
doPlayerSendCancel(cid, "lol?")
end
return true
end
end
LUA:
[09/10/2011 09:27:27] [Error - TalkAction Interface]
[09/10/2011 09:27:27] data/talkactions/scripts/transform.lua:onSay
[09/10/2011 09:27:27] Description:
[09/10/2011 09:27:27] attempt to index a nil value
[09/10/2011 09:27:27] stack traceback:
[09/10/2011 09:27:27] [C]: in function 'doCreatureChangeOutfit'
[09/10/2011 09:27:27] data/talkactions/scripts/transform.lua:84: in function 'doPlayerRevert'
[09/10/2011 09:27:27] data/talkactions/scripts/transform.lua:112: in function <data/talkactions/scripts/transform.lua:104>
Last edited: