[ SOLVED ] Having a problem with putting a function into a list

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
imDread
Prole
Posts: 6
Joined: Mon May 20, 2024 10:39 am

[ SOLVED ] Having a problem with putting a function into a list

Post by imDread »

Code: Select all

function Exit()
		love.event.quit()
	end
	F1 = Exit
	-- Ui Dementions
	
	
	
	UiHeight = 15
	textOpacity = 0.1
	textsClr = {{0.2,0.2,0.2}}
	textsFunctions {F1}
-**Btw this code is written in love.load()**-

im trying to put that function in a list but every time i do that it gives me this error :

main.lua:120: attempt to call global 'textsFunctions' (a nil value)

Pls guys help :(
Last edited by imDread on Sat May 25, 2024 8:10 am, edited 1 time in total.
User avatar
keharriso
Party member
Posts: 103
Joined: Fri Nov 16, 2012 9:34 pm

Re: Having a problem with putting a function into a list

Post by keharriso »

I think you're missing an equals sign.

You want

Code: Select all

textsFunctions = {F1}
LÖVE-Nuklear - a lightweight immediate mode GUI for LÖVE games
imDread
Prole
Posts: 6
Joined: Mon May 20, 2024 10:39 am

Re: Having a problem with putting a function into a list

Post by imDread »

Oh, thanks
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest