Jump to content

Why not working aclGroupAddObject?


Turbe$Z

Recommended Posts

Posted (edited)
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

My Fun server:

560x95_FFFFFF_FF9900_000000_000000.png

My DD server:

n-560x95_FFFFFF_FFFFFF_000000_000000.png

Posted
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.

6C73yFv.png

Did I help you?

Mmpe7Jm.gif


NeXuS™#0001

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...