function gridRe()
guiGridListClear( grid )
for i, v in ipairs( Ques ) do
local row = guiGridListAddRow( grid )
guiGridListSetItemText( grid, row, 1, i .. ' -', false, false )
guiGridListSetItemText( grid, row, 2, tostring( v[1] ), false, false )
guiGridListSetItemColor( grid, row, 1, 255, 230, 58, 255 )
guiGridListSetItemColor( grid, row, 2, math.random( 255 ), math.random( 255 ), math.random( 255 ) )
end
end
function wnd_W( Rank, Owners )
local ee = guiGridListGetItemText( grid, guiGridListGetSelectedItem( grid ), 2 )
if ee == 'كيف أحصل على رتبة ؟' then
guiSetText( ansrmemo, Rank )
elseif ee == 'من هم أصحـاب السـيرفـر ؟' then
guiSetText( ansrmemo, Owners )
end
end
addEventHandler('onClientGUIClick', root, wnd_W )
Rank = xmlLoadFile( "Rank.xml" )
Rank1 = xmlNodeGetValue( Rank )
Owners = xmlLoadFile( "Owners.xml" )
Owners1 = xmlNodeGetValue( Owners )
wnd_W ( Rank1, Owners1 )
وش الخطأ؟؟