Joker_Mta Posted August 9, 2012 Share Posted August 9, 2012 Hello ! Fix Please gridlist = guiCreateGridList(0.344,0.1011,0.7078,0.5005,true,GUIEditor_Window[2]) guiGridListSetSelectionMode(gridlist,2) name = guiGridListAddColumn(gridlist,"buy car",0.9) local o1o = guiGridListAddRow ( gridlist ) local o2o = guiGridListAddRow ( gridlist ) local o3o = guiGridListAddRow ( gridlist ) local o4o = guiGridListAddRow ( gridlist ) car1 = guiGridListSetItemText ( gridlist, o1o, name, "car1", false, false ) car2 = guiGridListSetItemText ( gridlist, o2o, name, "car2", false, false ) car3 = guiGridListSetItemText ( gridlist, o3o, name, "car3", false, false ) car4 = guiGridListSetItemText ( gridlist, o4o, name, "car4", false, false ) ------ name = guiCreateEdit(200, 313, 201, 20, "", false, GUIEditor_Window[2]) ------ addEventHandler("onClientGUIChanged",root,function() if source == gridlist then local text = guiGridListGetItemText(gridlist, guiGridListGetSelectedItem(gridlist), 1) if not text or text == "" then return end guiSetText(name,text) end end ) Link to comment
Guest Guest4401 Posted August 9, 2012 Share Posted August 9, 2012 You forgot to mention what you are trying to do. I guess you should use the event onClientGUIClick and not onClientGUIChanged? 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