Jump to content

Error


Recommended Posts

what's worng with this script ?

function createGUIWindow1() 
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Memo = {} 
GUIEditor_Label = {} 
GUIEditor_Edit = {} 
  
GUIEditor_Window[1] = guiCreateWindow(363,194,579,330,"[sSC] Black list",false) 
guiWindowSetSizable(GUIEditor_Window[1],false) 
GUIEditor_Label[1] = guiCreateLabel(80,45,364,34,"No one yet",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"clear-normal") 
GUIEditor_Label[2] = guiCreateLabel(7,67,66,24,"Attention:",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],255,0,0) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(70,67,502,15,"Do not copy their names and put it as your nickname becuase you will banned for 2 days",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[3],"default-bold-small") 
GUIEditor_Button[1] = guiCreateButton(140,271,295,50,"Reason",false,GUIEditor_Window[1]) 
GUIEditor_Edit[1] = guiCreateEdit(74,-117,98,40,"",false,GUIEditor_Button[1]) 
GUIEditor_Memo[1] = guiCreateMemo(115,238,345,31,"              Read Why these peoples in black list",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[1],true) 
guiSetVisible ( GUIEditor_Window[1] ,false ) 
  
addEventHandler("onClientResourceStart", root, createGUIWindow1) 
end 
addCommandHandler("blacklist", createGUIWindow1) 
  

debugscript says: ERROR:8: attempt to call global 'guiCreateWindow' ( a nil value )

Link to comment
  
function createGUIWindow1() 
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Memo = {} 
GUIEditor_Label = {} 
GUIEditor_Edit = {} 
  
GUIEditor_Window[1] = guiCreateWindow(363,194,579,330,"[sSC] Black list",false) 
guiWindowSetSizable(GUIEditor_Window[1],false) 
GUIEditor_Label[1] = guiCreateLabel(80,45,364,34,"No one yet",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"clear-normal") 
GUIEditor_Label[2] = guiCreateLabel(7,67,66,24,"Attention:",false,GUIEditor_Window[1]) 
guiLabelSetColor(GUIEditor_Label[2],255,0,0) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(70,67,502,15,"Do not copy their names and put it as your nickname becuase you will banned for 2 days",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[3],"default-bold-small") 
GUIEditor_Button[1] = guiCreateButton(140,271,295,50,"Reason",false,GUIEditor_Window[1]) 
GUIEditor_Edit[1] = guiCreateEdit(74,-117,98,40,"",false,GUIEditor_Button[1]) 
GUIEditor_Memo[1] = guiCreateMemo(115,238,345,31,"              Read Why these peoples in black list",false,GUIEditor_Window[1]) 
guiMemoSetReadOnly(GUIEditor_Memo[1],true) 
guiSetVisible ( GUIEditor_Window[1] ,false ) 
 end 
addEventHandler("onClientResourceStart", resourceRoot, createGUIWindow1) 
addCommandHandler("blacklist", function() 
guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
showCursor(guiGetVisible(GUIEditor_Window[1])) 
  
end ) 
  
  

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