Monty Posted June 27, 2012 Share Posted June 27, 2012 i press f2 but no gui appear GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(277,224,250,120,"POLICE Computer",false) GUIEditor_Label[1] = guiCreateLabel(8,11,83,20,"Name:"..getPlayerName(thePlayer),false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(8,22,83,20,"Arrest:",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(8,41,52,20,"Team:"..getTeamName(getPlayerTeam(thePlayer)),false,GUIEditor_Window[1]) GUIEditor_Label[3] = guiCreateLabel(92,22,53,18,"ARMY:"..countPlayerInTeam(getTeamFromName("ARMY")),false,GUIEditor_Window[1]) GUIEditor_Label[4] = guiCreateLabel(92,41,52,18,"SWAT:"..countPlayerInTeam(getTeamFromName("SWAT")),false,GUIEditor_Window[1]) GUIEditor_Label[5] = guiCreateLabel(165,22,39,15,"FBI:"..countPlayerInTeam(getTeamFromName("FBI")),false,GUIEditor_Window[1]) GUIEditor_Label[6] = guiCreateLabel(165,41,40,14,"Police:..countPlayerInTeam(getTeamFromName("police"))",false,GUIEditor_Window[1]) guiSetVisible( GUIEditor_Window[1], false ) showCursor ( false ) function showGUI ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) end bindKey ( "F2","down", showGUI ) Link to comment
Kenix Posted June 27, 2012 Share Posted June 27, 2012 Your code totally wrong. 1. thePlayer not defined so when you use this it return false. 2. function countPlayerInTeam doesn't exists. You should use countPlayersInTeam 3. Syntax error GUIEditor_Label[6] = guiCreateLabel(165,41,40,14,"Police:..countPlayerInTeam(getTeamFromName("police"))",false,GUIEditor_Window[1]) Use /debugscript 3 before post code! 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