Jump to content

= [ مشكله ] =


Recommended Posts

-- #Server
addEvent("getDatas",true)
addEventHandler("getDatas",root,
function()
    local MnHmAr = executeSQLQuery("SELECT * FROM `SaveSystem`")
    triggerClientEvent(root,"aGrid1",root,MnHmAr)
end
)
 
-- #Client

 addEvent ( "aGrid1", true )
 addEventHandler ( "aGrid1", root, function(tabl)
   for k,v in ipairs(tabl) do
   local row = guiGridListAddRow (GUIEditor.gridlist[2])
   guiGridListSetItemText (GUIEditor.gridlist[2],row,1,v.account,false,false)
   guiGridListSetItemText (GUIEditor.gridlist[2],row,2,v.editdays,false,false)
   guiGridListSetItemText (GUIEditor.gridlist[2],row,3,v.editsbab,false,false)		
   guiGridListSetItemColor ( GUIEditor.gridlist[2],row,1, 222, 200, 22 )
   guiGridListSetItemColor ( GUIEditor.gridlist[2],row,2, 220, 220, 250 )
   guiGridListSetItemColor ( GUIEditor.gridlist[2],row,3, 220, 220, 250 )
   end
 end 
)

وش الغلط :) 

 

هذا بعض الاكواد..

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