hi all
i want , If the player select the name of the map shows the name of the map in edit
i try but not working
this code client :
mapGridList = guiCreateGridList(7,12,183,270,false,tab6)
mapsColumn = guiGridListAddColumn(mapGridList,"Maps List",0.85)
guiGridListSetSelectionMode(mapGridList,2)
mapNameEdit = guiCreateEdit(280,25,140,29,"",false,tab6)
guiEditSetReadOnly(mapNameEdit,5)
and:
addEvent("sendMaps", true )
function sendmaps(name)
row = guiGridListAddRow ( mapGridList )
guiGridListSetItemText ( mapGridList, row, mapsColumn, name, false, false )
end
addEventHandler( "sendMaps", getLocalPlayer(), sendmaps, set )
function set ( )
selectedRow, selectedCol = guiGridListGetSelectedItem( mapGridList )
gridMapName = guiGridListGetItemText( mapGridList, selectedRow, selectedCol )
guiSetText ( mapNameEdit, gridMapName )
end
please help me