Tym sposobem:
if(getPlayerStorageValue(cid, first) == 0) then
npcHandler:setMessage(MESSAGE_GREET, "xxx")
talkState[talkUser] = 1
setPlayerStorageValue(cid, first, 1)
else
npcHandler:setMessage(MESSAGE_GREET, "xxy")
talkState[talkUser] = 1
end
npcHandler:setMessage(MESSAGE_GREET, "xxx")
talkState[talkUser] = 1
setPlayerStorageValue(cid, first, 1)
else
npcHandler:setMessage(MESSAGE_GREET, "xxy")
talkState[talkUser] = 1
end
table index is nil
Kod :
data/lib/npc.lua:54: attempt to index local 'message' <a nil value>
Zakładki