1. Hey Folks,
    Using the Economics API, and trying to write up a quick and simple plugin that just does not seem to want to work. Am pretty new to lua, so chances are its something very simple that I've done wrong.

    http://paste.ubuntu.com/10565853/
    Code:
    Get this error message on player connect.
    6:47 PM [Error] Failed to call hook 'OnPlayerConnected' on plugin 'MoneyTime'
    File: MoneyTime.lua Line: 36 invalid arguments to method call:
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    Any help would be much appreciated!
     
  2. It tells you the error.
    File: MoneyTime.lua Line: 36 invalid arguments to method call:

    Something is wrong with your OnPlayerConnected function.
     
  3. Yeah, but the only thing within it is a timer, and as far as I can tell there are no mistake.
    Code:
    timer.Repeat(self.Config.Interval, function() self:payTime(player) end)
    In the OP there is a paste to the plugin.
     
  4. You aren't using the correct number of args for the timer function.
    http://docs.oxidemod.org/?lua#timer.repeat