issue solved.
shame on me, prise full relog.
solved
Forum rules
Before posting on this forum, be sure to read the Terms of Use
Before posting on this forum, be sure to read the Terms of Use
Ads
Re: Addon editing (lua files)
issue solved.
Last edited by bichka on Mon Apr 08, 2019 6:23 pm, edited 1 time in total.
- OldSerpenT
- Posts: 103
Re: Addon editing (lua files)
You're trying to return "false" which inflicts further processing when your settings are not loaded and your last transaction doesn't exist.
Put this "return false" after the line that checks "now" value.
I'd also suggest editor that supports line numbers. Helps a lot when pointing on what line has an issue.
Put this "return false" after the line that checks "now" value.
I'd also suggest editor that supports line numbers. Helps a lot when pointing on what line has an issue.


Re: Addon editing (lua files)
issue solved.
Last edited by bichka on Mon Apr 08, 2019 6:24 pm, edited 1 time in total.
- OldSerpenT
- Posts: 103
Re: Addon editing (lua files)
That's why you need an editor with line numbers.
You probably just need to turn them on.
If your editor doesn't support it, try something like Notepad++
if not now then return end
return false
if earlier and blahblahblah
You probably just need to turn them on.
If your editor doesn't support it, try something like Notepad++
if not now then return end
return false
if earlier and blahblahblah


Re: Addon editing (lua files)
issue solved.
Last edited by bichka on Mon Apr 08, 2019 6:24 pm, edited 1 time in total.
Re: Addon editing (lua files)
my whole point is to turn function into simple
i don't need any initialization of variables for it which is not here anyway.
Code: Select all
function ThinkOutLoud.SuperUsefulFunc()
return false
end
Ads
- OldSerpenT
- Posts: 103
Re: Addon editing (lua files)
You can't because the expected return values are "true", "false" or "nil". If it is not "nil" then there should be further processing.
If you want to just skip the entire function then put empty return without true or false value.
If you want to just skip the entire function then put empty return without true or false value.
Code: Select all
function ThinkOutLoud.SuperUsefulFunc()
return
end


Re: Addon editing (lua files)
issue solved.
Last edited by bichka on Mon Apr 08, 2019 6:24 pm, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 3 guests