• Console being spammed with errors after printer being spawned, what's it mean?
    6 replies, posted
So, i'm using this money printer ( [url]www.mathium.net/money_printer.rar[/url] ). And the error im getting spit at me is [CODE][ERROR] ...modes/darkrp/entities/entities/money_printer/cl_init.lua:13: attempt to call global 'ValidEntity' (a nil value) 1. unknown - ...modes/darkrp/entities/entities/money_printer/cl_init.lua:13 [ERROR] ...modes/darkrp/entities/entities/money_printer/cl_init.lua:13: attempt to call global 'ValidEntity' (a nil value) 1. unknown - ...modes/darkrp/entities/entities/money_printer/cl_init.lua:13 [ERROR] ...modes/darkrp/entities/entities/money_printer/cl_init.lua:13: attempt to call global 'ValidEntity' (a nil value) 1. unknown - ...modes/darkrp/entities/entities/money_printer/cl_init.lua:13 [ERROR] ...modes/darkrp/entities/entities/money_printer/cl_init.lua:13: attempt to call global 'ValidEntity' (a nil value) 1. unknown - ...modes/darkrp/entities/entities/money_printer/cl_init.lua:13 [ERROR] ...modes/darkrp/entities/entities/money_printer/cl_init.lua:13: attempt to call global 'ValidEntity' (a nil value) 1. unknown - ...modes/darkrp/entities/entities/money_printer/cl_init.lua:13 [ERROR] ...modes/darkrp/entities/entities/money_printer/cl_init.lua:13: attempt to call global 'ValidEntity' (a nil value) 1. unknown - ...modes/darkrp/entities/entities/money_printer/cl_init.lua:13 [ERROR] ...modes/darkrp/entities/entities/money_printer/cl_init.lua:13: attempt to call global 'ValidEntity' (a nil value) 1. unknown - ...modes/darkrp/entities/entities/money_printer/cl_init.lua:13 [/CODE] And this just spams console as soon as a printer is spawned.
Simplest solution: [U][B]Update DarkRP.[/B][/U]
I currently am on the latest version off of github, and still getting this. I like these money printers because it stores the money in the printer & prints rapidly (IE: $5 / 3sec) instead of $250 every 5 minutes. This was recently made, so any fix would be greatly appreciated.
Replace ValidEntity with IsValid
Ok, yeah I had just figured that out, but then ran into another problem. The timers are now broken, which I then read up on this : [url]https://docs.google.com/document/d/1khSuIYrAMkqXu7wlH5YRJNwz6hOH6Xqi5lqBhE3x6gA/edit?pli=1[/url] But i'm not really understanding. In this : [CODE]timer.Simple(self.PrinterTime, PrintMore, self)[/CODE] And [CODE]timer.Simple(burntime, self.Fireball, self)[/CODE] What am I changing exactly?
[lua]timer.Simple(self.PrinterTime, function() PrintMore( self ) end )[/lua]
Didn't work, just getting a few more errors. [CODE][ERROR] ...des/darkrp/entities/entities/money_printer_ruby/init.lua:89: attempt to index global 'self' (a nil value) 1. PrintMore - ...des/darkrp/entities/entities/money_printer_ruby/init.lua:89 2. unknown - gamemodes/darkrp/entities/entities/money_printer/init.lua:27 Timer Failed! [Simple][@gamemodes/darkrp/entities/entities/money_printer/init.lua (line 27)][/CODE] [B]EDIT:[/B] It seems that it prints once, then goes ka-put. The first $2 is printed, then it stops altogether.
Sorry, you need to Log In to post a reply to this thread.