General > Developers Corner
Multiple function calls in a ulx command doesn't work.
(1/1)
Rex744:
The rest of the code above doesn't matter, just imagine a ulx custom command that has two if statements, if something then Easy() and if something then Medium(), the only thing that works is the first function which is Easy()
Example below:
--- Code: ---function Easy()
RunConsoleCommand("Say","e")
end
function Medium()
RunConsoleCommand("Say","e")
end
local example = ulx.command( "Voting", "ulx example"} )
example:help( "example" )
example:defaultAccess( ULib.ACCESS_ADMIN )
--- End code ---
I need help getting passed this issue.
EDIT: I forgot to include elseif I just did a bunch of if statements.
An Error Has Occurred!
array_keys(): Argument #1 ($array) must be of type array, null given
[0] Board index
Go to full version