[HELP] timer.Simple() Error

Guys this code is a bit old, I’m trying to make it work, and this:

[LUA]for i, pss in ipairs( files ) do
timer.Simple( i * delay, include, “cenas/” … pss )
AddCSLuaFile( “cenas/” … pss )
n = i
end[/LUA]

makes this:


Timer Failed! [Simple][@addons/cenas/lua/autorun/server/cenas.lua

What is wrong with the code?

Thanks for reading

timer.Simple only takes two arguments nowadays, a delay and a function.

This code will have the same result as that used to:



timer.Simple(i * delay, function()
    include("cenas/" .. pss)
end)


Now I get it, Thanks