yMassai Posted May 17, 2012 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? Community Profile MTA:SA = Click Here
Guest Guest4401 Posted May 17, 2012 Posted May 17, 2012 Change bindKey ( "F5","down", WindowTest ) to bindKey ( "F5","down", ShowTest )
yMassai Posted May 17, 2012 Author Posted May 17, 2012 a small error. but don't work Community Profile MTA:SA = Click Here
Guest Guest4401 Posted May 17, 2012 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 )
Smart. Posted May 17, 2012 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 ) lol
yMassai Posted May 17, 2012 Author Posted May 17, 2012 dont work here... Community Profile MTA:SA = Click Here
TAPL Posted May 17, 2012 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 ?
yMassai Posted May 17, 2012 Author Posted May 17, 2012 To use this function "guiCreateWindow" i use "client" Community Profile MTA:SA = Click Here
Smart. Posted May 17, 2012 Posted May 17, 2012 If the whole script is client sided it should work as it works on mine. lol
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