Jump to content

طلب مساعده ضروريه


Recommended Posts

نبي نختار شيء من القريد ليست يظهر في الاديت بوكس لكن القريد ليست مايظهر فيها اشياء ارجو المساعده ذا الكود

for i,GR in ipairs(Questions_AnswerS) do

local row = guiGridListAddRow(System_grid)

guiGridListSetItemText(System_grid,row,1,GR[1],false,false)

guiGridListSetItemData(System_grid,row,1, GR[2])

guiGridListSetItemColor(System_grid,row,1,math.random(1,255),math.random(2,255),math.random(3,255))

end

addEventHandler("onClientGUIClick",root,

function ()

if source == close then

if ( guiGetVisible(Wind) == false ) then

end

guiSetVisible ( Wind, false )

showCursor(false)

guiSetInputEnabled(false)

end

end

)

function click ()

if source == GUIEditor.edit[2] then

guiSetText (GUIEditor.edit[2], "اختر السيريال من لوحة السيريالات" )

end

local row,col = guiGridListGetSelectedItem(System_grid)

if ( row and col and row = -1 and col = -1 ) then

local Answers = guiGridListGetItemData ( System_grid, guiGridListGetSelectedItem ( System_grid ), 1 )

guiSetText (GUIEditor.edit[2], Answers )

end

end

addEventHandler("onClientGUIClick", root, click )

Link to comment
استخدم

guiGridListGetItemText

عشان تجيب الكلام اللى بالقريد وتحطه بالايديت

هو يبي يجيب الكلام المقابل للي بالقريد لست اي بمعنى ثاني هو نده جدول

Table = {  
{'value1', 'value2} 
} 

وهو يبغى انه لوحدد على شي بالقريد لست اللي اسم الايتيم حقها هو

value1

يبي لما يحدد يجي

value2

بالقريد لست

+ ماشوف اخطاء بكودك ^

أطرح لنا الديبوق لو في خطأ +

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