[DiscordArchive] do you know if it has to be in the virtual drive that the eluna .conf points to?
[DiscordArchive] do you know if it has to be in the virtual drive that the eluna .conf points to?
Archived author: thebigclamp • Posted: 2023-08-16T20:28:38.442000+00:00
Original source
yeah i copied that code, just added a zero after "test" in the say
Archived author: Honey • Posted: 2023-08-16T20:28:58.099000+00:00
Original source
Your first lesson in Lua shall be to use `local` unless explicitely required not to.
Archived author: thebigclamp • Posted: 2023-08-16T20:29:15.596000+00:00
Original source
yes, global variables tends to mess with thigns
Archived author: Honey • Posted: 2023-08-16T20:29:17.843000+00:00
Original source
And be aware that `local` variables and functions need to be declared in order.
Archived author: thebigclamp • Posted: 2023-08-16T20:29:33.760000+00:00
Original source
so like a normal c code?
Archived author: thebigclamp • Posted: 2023-08-16T20:30:01.053000+00:00
Original source
is all variables declared in a function local to the function aswell right?
Archived author: Honey • Posted: 2023-08-16T20:30:22.662000+00:00
Original source
```lua
foo()
local function foo()
// do stuff
end
```
this won't work ☝️
Archived author: Honey • Posted: 2023-08-16T20:30:42.658000+00:00
Original source
yeah
Archived author: thebigclamp • Posted: 2023-08-16T20:31:09.150000+00:00
Original source
perfect, then i dont need to change my workflow
Archived author: Honey • Posted: 2023-08-16T20:32:19.252000+00:00
Original source
The elegant solution is to put everything in one table.
```lue
local foo = {}
foo.bar()
function foo.bar()
// do stuff
end
```
This way it works