Jump to content

Why not working aclGroupAddObject?


Turbe$Z

Recommended Posts

18 minutes ago, NeXuS™ said:

Replace your checkValues function

  Hide contents


 function checkValues( source,arg1,arg2)    if (arg2 >= 60) then        t[ source ][ 'min' ] = tonumber( t[ source ][ 'min' ] or 0 ) + 1        t[ source ][ 'sec' ] = 0    end    if (arg1 >= 60) then        t[ source ][ 'min' ] = 0        t[ source ][ 'hours' ] = tonumber( t[ source ][ 'hours' ] or 0 ) + 1    end    return arg1, arg2end

 

with

  Hide contents


 function checkValues( source,arg1,arg2)    if (arg2 >= 60) then        t[ source ][ 'min' ] = tonumber( t[ source ][ 'min' ] or 0 ) + 1        t[ source ][ 'sec' ] = 0    end    if (arg1 >= 60) then        t[ source ][ 'min' ] = 0        t[ source ][ 'hours' ] = tonumber( t[ source ][ 'hours' ] or 0 ) + 1    	dependent(source)    end    return arg1, arg2end

 

 

same problem :S

 

Edited by Turbo777
Link to comment
function checkValues( source,arg1,arg2)
	if (arg2 >= 60) then
		t[ source ][ 'min' ] = tonumber( t[ source ][ 'min' ] or 0 ) + 1
		t[ source ][ 'sec' ] = 0
	end
	if (arg1 >= 60) then
		t[ source ][ 'min' ] = 0
		t[ source ][ 'hours' ] = tonumber( t[ source ][ 'hours' ] or 0 ) + 1
	end
	dependent(source)
	return arg1, arg2
end

Moving the dependent function out of the if statement will do a better result.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...