Jump to content

guiEditSetReadOnly problem


Recommended Posts

    GUIEditor_Window = {}  
    GUIEditor_TabPanel = {}  
    GUIEditor_Tab = {}  
    GUIEditor_Edit = {}  
    GUIEditor_Memo = {} 
  
    GUIEditor_Window[1] = guiCreateWindow(167,128,949,523,"Chats",false) 
    guiSetVisible(GUIEditor_Window[1], false) 
    GUIEditor_TabPanel[1] = guiCreateTabPanel(32,39,893,460,false,GUIEditor_Window[1]) 
    GUIEditor_Tab[1] = guiCreateTab("Help",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[1]) 
    GUIEditor_Memo[1] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[1]) 
    guiEditSetReadOnly(GUIEditor_Memo[1],true) 
    GUIEditor_Tab[2] = guiCreateTab("Main",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[2] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[2]) 
    GUIEditor_Memo[2] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[2]) 
    guiEditSetReadOnly(GUIEditor_Memo[2],true)                               guiMemoSetReadOnly(GUIEditor_Memo[1],true) 
    GUIEditor_Tab[3] = guiCreateTab("Arabic",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[3] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[3]) 
    GUIEditor_Memo[3] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[3]) 
    guiEditSetReadOnly(GUIEditor_Memo[3],true) 
    GUIEditor_Tab[4] = guiCreateTab("Russian",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[4] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[4]) 
    GUIEditor_Memo[4] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[4]) 
    guiEditSetReadOnly(GUIEditor_Memo[4],true) 
    GUIEditor_Tab[5] = guiCreateTab("Spanish",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[5] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[5]) 
    GUIEditor_Memo[5] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[5]) 
    guiEditSetReadOnly(GUIEditor_Memo[5],true) 
    GUIEditor_Tab[6] = guiCreateTab("Turkish",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[6] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[6]) 
    GUIEditor_Memo[6] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[6]) 
    guiEditSetReadOnly(GUIEditor_Memo[6],true) 
    GUIEditor_Tab[7] = guiCreateTab("French",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[7] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[7]) 
    GUIEditor_Memo[7] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[7]) 
    guiEditSetReadOnly(GUIEditor_Memo[7],true) 
    GUIEditor_Tab[8] = guiCreateTab("German",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[8] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[8]) 
    GUIEditor_Memo[8] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[8]) 
    guiEditSetReadOnly(GUIEditor_Memo[8],true)                          
    GUIEditor_Tab[9] = guiCreateTab("Indian",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[9] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[9]) 
    GUIEditor_Memo[9] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[9]) 
    guiEditSetReadOnly(GUIEditor_Memo[9],true) 
    GUIEditor_Tab[10] = guiCreateTab("Ireland",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[10] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[10]) 
    GUIEditor_Memo[10] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[10]) 
    guiEditSetReadOnly(GUIEditor_Memo[10],true) 
    GUIEditor_Tab[11] = guiCreateTab("Italian",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[11] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[11]) 
    GUIEditor_Memo[11] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[11]) 
    guiEditSetReadOnly(GUIEditor_Memo[11],true) 
    GUIEditor_Tab[12] = guiCreateTab("Portuguese",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[12] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[12]) 
    GUIEditor_Memo[12] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[12]) 
    guiEditSetReadOnly(GUIEditor_Memo[12],true) 
     
      
bindKey('f2','down', 
function () 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
end 
) 
  

It says WARNING: Teest\Test1.lua:All of the script: Bad argument @ 'guiEditSetreadOnly' [Expected gui-edit at argument 1, got gui-memo]

Why all of the script and i see no mistake at "GUIEditor_Memo"

Link to comment

here:

   GUIEditor_Window = {} 
    GUIEditor_TabPanel = {} 
    GUIEditor_Tab = {} 
    GUIEditor_Edit = {} 
    GUIEditor_Memo = {} 
  
    GUIEditor_Window[1] = guiCreateWindow(167,128,949,523,"Chats",false) 
    guiSetVisible(GUIEditor_Window[1], false) 
    GUIEditor_TabPanel[1] = guiCreateTabPanel(32,39,893,460,false,GUIEditor_Window[1]) 
    GUIEditor_Tab[1] = guiCreateTab("Help",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[1]) 
    GUIEditor_Memo[1] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[1]) 
    guiMemoSetReadOnly(GUIEditor_Memo[1],true) 
    GUIEditor_Tab[2] = guiCreateTab("Main",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[2] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[2]) 
    GUIEditor_Memo[2] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[2]) 
    guiMemoSetReadOnly(GUIEditor_Memo[2],true) 
    GUIEditor_Tab[3] = guiCreateTab("Arabic",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[3] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[3]) 
    GUIEditor_Memo[3] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[3]) 
    guiMemoSetReadOnly(GUIEditor_Memo[3],true) 
    GUIEditor_Tab[4] = guiCreateTab("Russian",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[4] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[4]) 
    GUIEditor_Memo[4] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[4]) 
    guiMemoSetReadOnly(GUIEditor_Memo[4],true) 
    GUIEditor_Tab[5] = guiCreateTab("Spanish",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[5] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[5]) 
    GUIEditor_Memo[5] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[5]) 
    guiMemoSetReadOnly(GUIEditor_Memo[5],true) 
    GUIEditor_Tab[6] = guiCreateTab("Turkish",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[6] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[6]) 
    GUIEditor_Memo[6] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[6]) 
    guiMemoSetReadOnly(GUIEditor_Memo[6],true) 
    GUIEditor_Tab[7] = guiCreateTab("French",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[7] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[7]) 
    GUIEditor_Memo[7] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[7]) 
    guiMemoSetReadOnly(GUIEditor_Memo[7],true) 
    GUIEditor_Tab[8] = guiCreateTab("German",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[8] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[8]) 
    GUIEditor_Memo[8] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[8]) 
    guiMemoSetReadOnly(GUIEditor_Memo[8],true)                         
    GUIEditor_Tab[9] = guiCreateTab("Indian",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[9] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[9]) 
    GUIEditor_Memo[9] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[9]) 
    guiMemoSetReadOnly(GUIEditor_Memo[9],true) 
    GUIEditor_Tab[10] = guiCreateTab("Ireland",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[10] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[10]) 
    GUIEditor_Memo[10] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[10]) 
    guiMemoSetReadOnly(GUIEditor_Memo[10],true) 
    GUIEditor_Tab[11] = guiCreateTab("Italian",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[11] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[11]) 
    GUIEditor_Memo[11] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[11]) 
    guiMemoSetReadOnly(GUIEditor_Memo[11],true) 
    GUIEditor_Tab[12] = guiCreateTab("Portuguese",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[12] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[12]) 
    GUIEditor_Memo[12] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[12]) 
    guiMemoSetReadOnly(GUIEditor_Memo[12],true) 
    
      
bindKey('f2','down',function() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
end) 
  

You used guiEditSetReadOnly, you could use guiMemoSetReadOnly

Link to comment
here:
   GUIEditor_Window = {} 
    GUIEditor_TabPanel = {} 
    GUIEditor_Tab = {} 
    GUIEditor_Edit = {} 
    GUIEditor_Memo = {} 
  
    GUIEditor_Window[1] = guiCreateWindow(167,128,949,523,"Chats",false) 
    guiSetVisible(GUIEditor_Window[1], false) 
    GUIEditor_TabPanel[1] = guiCreateTabPanel(32,39,893,460,false,GUIEditor_Window[1]) 
    GUIEditor_Tab[1] = guiCreateTab("Help",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[1] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[1]) 
    GUIEditor_Memo[1] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[1]) 
    guiMemoSetReadOnly(GUIEditor_Memo[1],true) 
    GUIEditor_Tab[2] = guiCreateTab("Main",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[2] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[2]) 
    GUIEditor_Memo[2] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[2]) 
    guiMemoSetReadOnly(GUIEditor_Memo[2],true) 
    GUIEditor_Tab[3] = guiCreateTab("Arabic",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[3] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[3]) 
    GUIEditor_Memo[3] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[3]) 
    guiMemoSetReadOnly(GUIEditor_Memo[3],true) 
    GUIEditor_Tab[4] = guiCreateTab("Russian",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[4] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[4]) 
    GUIEditor_Memo[4] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[4]) 
    guiMemoSetReadOnly(GUIEditor_Memo[4],true) 
    GUIEditor_Tab[5] = guiCreateTab("Spanish",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[5] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[5]) 
    GUIEditor_Memo[5] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[5]) 
    guiMemoSetReadOnly(GUIEditor_Memo[5],true) 
    GUIEditor_Tab[6] = guiCreateTab("Turkish",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[6] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[6]) 
    GUIEditor_Memo[6] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[6]) 
    guiMemoSetReadOnly(GUIEditor_Memo[6],true) 
    GUIEditor_Tab[7] = guiCreateTab("French",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[7] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[7]) 
    GUIEditor_Memo[7] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[7]) 
    guiMemoSetReadOnly(GUIEditor_Memo[7],true) 
    GUIEditor_Tab[8] = guiCreateTab("German",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[8] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[8]) 
    GUIEditor_Memo[8] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[8]) 
    guiMemoSetReadOnly(GUIEditor_Memo[8],true)                         
    GUIEditor_Tab[9] = guiCreateTab("Indian",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[9] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[9]) 
    GUIEditor_Memo[9] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[9]) 
    guiMemoSetReadOnly(GUIEditor_Memo[9],true) 
    GUIEditor_Tab[10] = guiCreateTab("Ireland",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[10] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[10]) 
    GUIEditor_Memo[10] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[10]) 
    guiMemoSetReadOnly(GUIEditor_Memo[10],true) 
    GUIEditor_Tab[11] = guiCreateTab("Italian",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[11] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[11]) 
    GUIEditor_Memo[11] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[11]) 
    guiMemoSetReadOnly(GUIEditor_Memo[11],true) 
    GUIEditor_Tab[12] = guiCreateTab("Portuguese",GUIEditor_TabPanel[1]) 
    GUIEditor_Edit[12] = guiCreateEdit(25,388,762,35,"",false,GUIEditor_Tab[12]) 
    GUIEditor_Memo[12] = guiCreateMemo(23,27,791,339,"",false,GUIEditor_Tab[12]) 
    guiMemoSetReadOnly(GUIEditor_Memo[12],true) 
    
      
bindKey('f2','down',function() 
    guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
end) 
  

You used guiEditSetReadOnly, you could use guiMemoSetReadOnly

Lol that was a silly mistake, how stupid i am lol

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