Jump to content

Developement Mode


reeshan

Recommended Posts

you can see all info here about Development Mode=> Click Here!

and Here my Example:

client.lua

addCommandHandler("devmode", 
    function ( ) 
        if ( getDevelopmentMode( ) == false ) then 
            setDevelopmentMode( true ) 
        else 
            setDevelopmentMode( false ) 
        end 
    end 
) 

meta.xml

    

Edited by Guest
Link to comment

i got this error

[2013-08-25 14:16:55] start: Requested by Console

[2013-08-25 14:16:55] Starting dev

[2013-08-25 14:16:55] SCRIPT ERROR: dev\dev.lua:9: ')' expected (to close '(' at line 1) near 'end'

[2013-08-25 14:16:55] WARNING: Loading script failed: dev\dev.lua:9: ')' expected (to close '(' at line 1) near 'end'

[2013-08-25 14:16:55] start: Resource 'dev' started

[2013-08-25 14:17:39] restart: Requested by Console

[2013-08-25 14:17:39] restart: Resource restarting...

[2013-08-25 14:17:39] Stopping dev

[2013-08-25 14:17:40] Resource 'dev' changed, reloading and starting

[2013-08-25 14:17:40] Starting dev

[2013-08-25 14:17:40] SCRIPT ERROR: dev\dev.lua:10: ')' expected (to close '(' at line 2) near 'end'

[2013-08-25 14:17:40] WARNING: Loading script failed: dev\dev.lua:10: ')' expected (to close '(' at line 2) near 'end'

[2013-08-25 14:17:40] dev restarted successfully

Link to comment
  
addCommandHandler("devmode", 
    function ( ) 
        if ( getDevelopmentMode( ) == false ) then 
            setDevelopmentMode( true ) 
        else 
            setDevelopmentMode( false ) 
        end 
    end 
end) 
  

Try that. I think it sohuld work. He forgot to close one bracket so.

If that doesnt work try it this way.

  
function devMode() 
        if (getDevelopmentMode() == false) then 
            setDevelopmentMode(true) 
        else 
            setDevelopmentMode(false) 
        end 
    end 
end 
addCommandHandler("togdev", devMode) 
  

CMD for that is /togdev

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