Search found 824 matches

by Bugala
Fri Sep 20, 2019 12:36 pm
Forum: General programming
Topic: How to optimize this code?
Replies: 0
Views: 255

How to optimize this code?

I am in process of making my own buttons system, however, as I was testing it today, I noticed it is too slow. This is the current version of the actual handler code (wont work independent): Function s_Buttons:HandlerFunc(msg) /* handlerfunc doesnt take into account donothing option yet*/ msg.action...
by Bugala
Thu Sep 19, 2019 9:26 pm
Forum: Hollywood bugs
Topic: function table:continue() not allowed
Replies: 6
Views: 396

Re: function table:continue() not allowed

Good idea Emeck. Thanks from tip. Will use that instead.
by Bugala
Thu Sep 19, 2019 6:16 pm
Forum: Hollywood bugs
Topic: function table:continue() not allowed
Replies: 6
Views: 396

Re: function table:continue() not allowed

yeah, its not a big deal, just a slight uncomfort.
by Bugala
Thu Sep 19, 2019 1:10 pm
Forum: Hollywood bugs
Topic: function table:continue() not allowed
Replies: 6
Views: 396

Re: function table:continue() not allowed

not very handy when cannot use even in a context like that, after all, Continue can be very useful function name many times.

Video:Continue
Scroll:Continue
Game:Continue
by Bugala
Thu Sep 19, 2019 1:04 pm
Forum: Newbie questions
Topic: does variable = NIL clean variable away?
Replies: 4
Views: 295

Re: does variable = NIL clean variable away?

Thanks Jpv, forgot I can do it that way, although have done so before.


But one more question. Is there possibility to do similar empty declaration of a variable when using Function?

For example:
CreateNewItem(20, 30, Global status)
by Bugala
Thu Sep 19, 2019 1:03 pm
Forum: Hollywood bugs
Topic: SetInterval(1, a, 1) putting : between a and , crashes Windows IDE
Replies: 2
Views: 202

Re: SetInterval(1, a, 1) putting : between a and , crashes Windows IDE

Ah, remembered that one, but didnt realise it was the same actually.
by Bugala
Wed Sep 18, 2019 6:40 pm
Forum: Newbie questions
Topic: does variable = NIL clean variable away?
Replies: 4
Views: 295

does variable = NIL clean variable away?

I am quite often using something following: function func() var = NIL if varcheck = true then var = 1 return(var) endfunction My assumption has been that I create a "local var" that would get destroyed after returning from the function. However, now I am wondering if I have misunderstood something. ...
by Bugala
Wed Sep 18, 2019 12:45 pm
Forum: Wishlist
Topic: self usable to evt_tables and others.
Replies: 3
Views: 2014

Re: self usable to evt_tables and others.

I figured a way to get around when using setinterval:

Code: Select all

setinterval(1, function () MyFunction:SelfFunction endfunction, 100
by Bugala
Wed Sep 18, 2019 12:27 pm
Forum: Hollywood bugs
Topic: SetInterval(1, a, 1) putting : between a and , crashes Windows IDE
Replies: 2
Views: 202

SetInterval(1, a, 1) putting : between a and , crashes Windows IDE

This is a very odd one, happens on Windows 10 Windows IDE If I write this from beginning to end, no problem. But If I instead first this first: SetInterval(1, a, 1) And if I click between "a" and "," and try to write ":" it crashes Windows IDE As I tried different variations, it seems to have to do ...
by Bugala
Wed Sep 18, 2019 11:52 am
Forum: Hollywood bugs
Topic: function table:continue() not allowed
Replies: 6
Views: 396

function table:continue() not allowed

On Windows 10 Windows IDE Hollywood 8:

Code: Select all

test = {}

Function test:continue()
EndFunction
says "line 3: variable expected!"


Bug or a feature?