• 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 -=[TFS]=- 0.4 8.60 ERROR ON SCRIPT SHOE ERROR ON CONSOLE

samuel157

/root
Joined
Mar 19, 2010
Messages
461
Solutions
3
Reaction score
59
Location
São Paulo, Brazil
GitHub
Samuel10M
vipacess:
LUA:
-- configs
templepos = {x=154,y=51,z=7}
cityid = 1
-- end configs

function onLogin(cid)
timenow = os.time()
viptime = getPlayerStorageValue(cid,13545)
quantity = math.floor((getPlayerStorageValue(cid,13545) - timenow)(360024))
if quantity = 0 and viptime  0 then
setPlayerStorageValue(cid,13545,0)
doTeleportThing(cid,templepos)
setPlayerTown (1),
end
return TRUE
end






acess:
LUA:
--[[ by vodkart ]]--
function onLogin(cid)

if getPlayerStorageValue(cid, 18956) - os.time() > 0 then
setPlayerStorageValue(cid, 18956, 1)
end

-- se quiser pode adicionar mais vocações

local pos = {
[2]= {x = 154, y= 51, z= 7}, -- Mage
[3]= {x = 154, y= 51, z= 7}, -- Paladin
[4]= {x = 154, y= 51, z= 7}, -- Knight
[6]= {x = 154, y= 51, z= 7} -- [VIP] Mage
[7]= {x = 154, y= 51, z= 7} -- [VIP] Paladin
[8]= {x = 154, y= 51, z= 7} -- [VIP] Knight
}


if getPlayerStorageValue(cid, 18956) == 1 and getPlayerStorageValue(cid, 18956) - os.time() < 1 or getPlayerStorageValue(cid, 18956) - os.time() == 0 then
doTeleportThing(cid ,pos[getPlayerVocation(cid)])
doPlayerPopupFYI(cid, "Sua vip Account acabou.")
setPlayerStorageValue(cid, 18956, -1)
end
return TRUE
end


LUA:
[15/06/2023 20:48:06] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/acessip.lua:15: '}' expected (to close '{' at line 10) near '['
[15/06/2023 20:48:06] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/acessip.lua)
[15/06/2023 20:48:06] data/creaturescripts/scripts/acessip.lua:15: '}' expected (to close '{' at line 10) near '['
[15/06/2023 20:48:06] [Error - LuaScriptInterface::loadFile] cannot open data/creaturescripts/scripts/acess.lua: No such file or directory
[15/06/2023 20:48:06] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/acess.lua)
[15/06/2023 20:48:06] cannot open data/creaturescripts/scripts/acess.lua: No such file or directory
[15/06/2023 20:48:06] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/vipsystem.lua:10: 'then' expected near '='
[15/06/2023 20:48:07] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/vipsystem.lua)
[15/06/2023 20:48:07] data/creaturescripts/scripts/vipsystem.lua:10: 'then' expected near '='
[15/06/2023 20:48:07] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/vipsystem1.lua:10: 'then' expected near '='
[15/06/2023 20:48:07] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/vipsystem1.lua)
[15/06/2023 20:48:07] data/creaturescripts/scripts/vipsystem1.lua:10: 'then' expected near '='
 
LUA:
local pos = {
[2]= {x = 154, y= 51, z= 7}, -- Mage
[3]= {x = 154, y= 51, z= 7}, -- Paladin
[4]= {x = 154, y= 51, z= 7}, -- Knight
[6]= {x = 154, y= 51, z= 7}, -- [VIP] Mage
[7]= {x = 154, y= 51, z= 7}, -- [VIP] Paladin
[8]= {x = 154, y= 51, z= 7} -- [VIP] Knight
}
local pos = {
[2]= {x = 154, y= 51, z= 7}, -- Mage
[3]= {x = 154, y= 51, z= 7}, -- Paladin
[4]= {x = 154, y= 51, z= 7}, -- Knight
[6]= {x = 154, y= 51, z= 7} -- [VIP] Mage
[7]= {x = 154, y= 51, z= 7} -- [VIP] Paladin
[8]= {x = 154, y= 51, z= 7} -- [VIP] Knight
}
LUA:
-- configs
templepos = {x=154,y=51,z=7}
cityid = 1
-- end configs

function onLogin(cid)
timenow = os.time()
viptime = getPlayerStorageValue(cid,13545)
quantity = math.floor((getPlayerStorageValue(cid,13545) - timenow)(360024))
if quantity == 0 and viptime == 0 then
setPlayerStorageValue(cid,13545,0)
doTeleportThing(cid,templepos)
setPlayerTown (1),
end
return TRUE
end
if quantity = 0 and viptime 0 then
 
@chucky91

LUA:
[15/06/2023 22:15:26] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/vipsystem.lua:13: unexpected symbol near ','
[15/06/2023 22:15:26] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/vipsystem.lua)
[15/06/2023 22:15:26] data/creaturescripts/scripts/vipsystem.lua:13: unexpected symbol near ','
[15/06/2023 22:15:26] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/acessip.lua:19: ']' expected near ')'
[15/06/2023 22:15:26] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/acessip.lua)
[15/06/2023 22:15:26] data/creaturescripts/scripts/acessip.lua:19: ']' expected near ')'
 
Last edited:
setPlayerTown (1) <-- removed ,

(getPlayerStorageValue(cid, 18956) - os.time() < 1 or getPlayerStorageValue(cid, 18956) - os.time() == 0) then

Put ( after and close ) then
 
Back
Top