Stellow
C++/C#/PHP/LUA
I have created a script, in which the functions are located in /lib and the others scripts /actions for example interact with them,
Keep in mind that I have done the exactly same thing on the past.
The script worked perfectly on my pc, but when I sent to a linux machine, for some reason the /action cannot locate the config table on /lib, but the talkaction can.
Script files:
/lib/arena_config
/lib/arena_entrance
/action/arenajoin
Error:
Obs:
All parameters has been checked before and after entering the function. It seems like it cannot locate the table, even if I use the table on the same file.
Suggestions?
Keep in mind that I have done the exactly same thing on the past.
The script worked perfectly on my pc, but when I sent to a linux machine, for some reason the /action cannot locate the config table on /lib, but the talkaction can.
Script files:
/lib/arena_config
Code:
Arena = {
[1] = {
ENTRANCE_FEE = {-1000, -2000, -3000},
MAXTIME_WAVE = {60, 60, 60},
LEVEL_REQUIREMENT = {100, 150, 200},
[...]
/lib/arena_entrance
Code:
function isArenaPlayerOverRequirement(cid, level, difficult)
local playerLevel = getPlayerLevel(cid)
local arena = Arena[level]
local levelRequirement = arena.LEVEL_REQUIREMENT[difficult]
if playerLevel >= levelRequirement then
[...]
/action/arenajoin
Code:
local function joinArenaWaitList(cid)
if not isArenaActive(ArenaLevel) then
if isArenaPlayerOverRequirement(cid, ArenaLevel, ArenaDifficult) then
[...]
Error:
Obs:
All parameters has been checked before and after entering the function. It seems like it cannot locate the table, even if I use the table on the same file.
Suggestions?