• Simple (Timer, Stopparticles) Error - but does nothing bad..? - Small Fix!
    2 replies, posted
I get this error when I use the object then delete it. I'm assuming the timers for the deleted object are still going and when they expire it realizes that there are no particles to stop and errors itself. It does absoliutely nothing except show an annoying popup window on the top left -.-.... Here are my really clear and finished Lua's!! Check the init.lua for the problem! [QUOTE][ERROR] addons/bonfire/lua/entities/bonfire/init.lua:51: Tried to use a NULL entity! 1. StopParticles - [C]:-1 2. unknown - addons/bonfire/lua/entities/bonfire/init.lua:51 Timer Failed! [Simple][@addons/bonfire/lua/entities/bonfire/init.lua (line 51)] [/QUOTE] [url]http://pastebin.com/p9PCbv1a[/url] - init.lua [url]http://pastebin.com/ghKTuYQ1[/url] - shared.lua [url]http://pastebin.com/QTSDJcHd[/url] - cl_init.lua
Someone's gotta know: Basically the timer exists after the count, when the entity is removed it expires with pretty much "no job" and just errors itself. It's just annoying seeing it. Does anyone have a suggestion on how to stop the particles anyways on their own?
IsValid the things [editline]12th January 2015[/editline] if not IsValid(thing) then return end
Sorry, you need to Log In to post a reply to this thread.