Postado Janeiro 31, 2018 7 anos agora estou com outro problema espero que vocês possa me ajudar Meu Server nao esta reconhecendo o firstitems. e ta dando o erro 47 e 45 Data/creaturesscript/script/firstitems.lua:onlogin [C}: im function 'maxn' Data/creaturesscript/script/firstitems.lua:47 Data/creaturesscript/script/firstitems.lua:45 local firstItems = {} firstItems[0] = { 2120, 5710, 2789, 2305, 2261, 2274, 2273 } firstItems[1] = { 2323, 8871, 7730, 2643, 2525 } firstItems[2] = { 2323, 8871, 7730, 2643, 2525 } firstItems[3] = { 2457, 8872, 2647, 2643, 2525 } firstItems[4] = { 2457, 2463, 2647, 2643, 2525 } function onLogin(cid) if getPlayerStorageValue(cid, 30001) == -1 then for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)], 1)endif getPlayerSex(cid) == 0 thendoPlayerAddItem(cid, 2789, 1)elsedoPlayerAddItem(cid, 2789, 1)endlocal bag = doPlayerAddItem(cid, 11235, 1)doAddContainerItem(bag, 2268, 1)doAddContainerItem(bag, 2269, 1)doAddContainerItem(bag, 2304, 1)doAddContainerItem(bag, 2274, 1) doAddContainerItem(bag, 2191, 1)doAddContainerItem(bag, 2186, 1)doAddContainerItem(bag, 2400, 1)doAddContainerItem(bag, 7368, 1) doAddContainerItem(bag, 7620, 1)doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 2278, 1)doAddContainerItem(bag, 2261, 1)doAddContainerItem(bag, 2789, 100)doAddContainerItem(bag, 2293, 1)doAddContainerItem(bag, 2305, 1)setPlayerStorageValue(cid, 30001, 1)endreturn TRUEend Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.