IRLUA_PLUGIN_CheckNumArgs = function(tbArgs,nArgs)
local nCount = #tbArgs;
if nCount < nArgs then
if _ShowErrorEventContext then
local sEventContext=Debug.GetEventContext()
IRLUA_PLUGIN_ERROR(nArgs.." Arguments expected, "..nCount.." Arguments passed.\r\n\r\nEventContext: "..sEventContext,3)
else
IRLUA_PLUGIN_ERROR(nArgs.." Arguments expected, "..nCount.." Arguments passed.",3)
end
end
end
Worked just fine =)Pabloko escribió:Seems to be script kiddie issues on that plugin. table.getn should't be used on lua 5-1+. The function failing is from IRLUA PLUGIN HELPERS by microbyte and centaurisoldier
u may want to fix that replacing table.getn by #tablename, good usage on this lua version.
For quick fix u can put this on your globalsIRLUA_PLUGIN_CheckNumArgs = function(tbArgs,nArgs) local nCount = #tbArgs; if nCount < nArgs then if _ShowErrorEventContext then local sEventContext=Debug.GetEventContext() IRLUA_PLUGIN_ERROR(nArgs.." Arguments expected, "..nCount.." Arguments passed.\r\n\r\nEventContext: "..sEventContext,3) else IRLUA_PLUGIN_ERROR(nArgs.." Arguments expected, "..nCount.." Arguments passed.",3) end end end