Jump to content
  • 0

What the difference between function test(a) and function test()


g1doz

Question

Posted

What the difference between this

function test(a)
end

and this

function test()
end

What to do function if we add a character in parentheses ?

3 answers to this question

Recommended Posts

Posted

test(a) is a preset function. 
a is a variable. 

for example you are lazy to type gg.searchNumber(x,y) then you can do this 
 

-- Preset function 
function SD(x) --search dword
	gg.searchNumber(x,gg.TYPE_DWORD)
end

then you can now use SD(any value) to search for dword. X is just an unknown, you can input any value inside or any variable.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.