انا ما ادري وش قصدك انت بضبط ,
بس ذا مثال بسيط
-- كلنت
addEventHandler("onClientGUIClick",getRootElement(),
function()
if ( source == GUIEditor.label[43] ) then
ss = guiGetText(GUIEditor.edit[1])
ss2 = guiGetText(GUIEditor.edit[2])
ss3 = guiGetText(GUIEditor.edit[3])
ss4 = guiGetText(GUIEditor.edit[4])
triggerServerEvent("msg", getLocalPlayer(), ss,ss2,ss3, ss4)
end
end
)
addEvent("msg1",true)
addEventHandler("msg1",root,
function (ss,ss2,ss3, ss4)
local row = guiGridListAddRow ( GUIEditor.gridlist[3] )
guiGridListSetItemText ( GUIEditor.gridlist[3], row, 1, ss, false, false )
guiGridListSetItemText ( GUIEditor.gridlist[3], row, 2, ss2, false, false )
guiGridListSetItemText ( GUIEditor.gridlist[3], row, 3, ss3, false, false )
guiGridListSetItemText ( GUIEditor.gridlist[3], row, 4, ss4, false, false )
end)
-- سرفر
addEvent("msg",true)
addEventHandler("msg",root,
function (ss,ss2,ss3, ss4)
triggerClientEvent ( root, "msg1", root, ss,ss2,ss3, ss4 )
end)