yMassai Posted May 17, 2012 Share Posted May 17, 2012 WindowTest = guiCreateWindow(350,250,450,320,"Exemplo",false) guiWindowSetSizable(WindowTest,false) guiSetVisible(WindowTest,false) function ShowTest ( ) guiSetVisible ( WindowTest, not guiGetVisible ( WindowTest ) ) showCursor ( not isCursorShowing( ) ) end bindKey ( "F5","down", WindowTest ) Which error? Why dont show the window? Link to comment
Guest Guest4401 Posted May 17, 2012 Share Posted May 17, 2012 Change bindKey ( "F5","down", WindowTest ) to bindKey ( "F5","down", ShowTest ) Link to comment
yMassai Posted May 17, 2012 Author Share Posted May 17, 2012 a small error. but don't work Link to comment
Guest Guest4401 Posted May 17, 2012 Share Posted May 17, 2012 WindowTest = guiCreateWindow(350,250,450,320,"Exemplo",false) guiWindowSetSizable(WindowTest,false) guiSetVisible(WindowTest,false) function ShowTest ( ) guiSetVisible ( WindowTest, not guiGetVisible ( WindowTest ) ) showCursor ( not isCursorShowing( ) ) end bindKey ( "F5","down", ShowTest ) Link to comment
Smart. Posted May 17, 2012 Share Posted May 17, 2012 try; WindowTest = guiCreateWindow(350,250,450,320,"Exemplo",false) guiWindowSetSizable(WindowTest,false) guiSetVisible(WindowTest,false) function ShowTest ( ) guiSetVisible ( WindowTest, not guiGetVisible ( WindowTest ) ) showCursor ( guiGetVisible ( WindowTest ) ) end bindKey ( "F5","down", ShowTest ) Link to comment
TAPL Posted May 17, 2012 Share Posted May 17, 2012 dont work here... it's should work are sure you're not using it server-side? did you try debugscript 3 ? Link to comment
yMassai Posted May 17, 2012 Author Share Posted May 17, 2012 To use this function "guiCreateWindow" i use "client" Link to comment
Smart. Posted May 17, 2012 Share Posted May 17, 2012 If the whole script is client sided it should work as it works on mine. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now