Jump to content

مشكلة في كود تحديد قريد ليست !


#Hulk

Recommended Posts

السلام عليكم ورحمة الله وبركاته ,

 

المشكله هي , سويت لوحة طبعا لمه تكتب ف الميمو ترسل قريد ليست ,

في لوحة تاني اذا حددت وضغط Read ,

تفتح لوحه بالي كتبه اللاعب

المشكله اذا فتحت اللوحه بلاقي كلام اللاعب الاول مو الي اخترته , الخطأ كود التحديد اظن

,  *ابي لمه يرسل اللاعب ويحدد الادمن يجيب الي كتبه اللاعب والجريد الي حدده مو الاخير

الاكواد

---Wind
GUIEditor = {
    gridlist = {},
    button = {}
}
local screenW, screenH = guiGetScreenSize()
wnd_Console = guiCreateWindow((screenW - 728) / 2, (screenH - 276) / 2, 728, 276, "", false)
guiWindowSetSizable(wnd_Console, false)
guiSetVisible(wnd_Console,false)
GUIEditor.gridlist[1] = guiCreateGridList(11, 28, 562, 238, false, wnd_Console)
guiGridListAddColumn(GUIEditor.gridlist[1], "Player Name", 0.5)
guiGridListAddColumn(GUIEditor.gridlist[1], "Details", 0.5)
GUIEditor.button[1] = guiCreateButton(587, 28, 131, 32, "Remove", false, wnd_Console)
GUIEditor.button[2] = guiCreateButton(587, 70, 131, 32, "Show ", false, wnd_Console)
GUIEditor.button[3] = guiCreateButton(587, 116, 131, 32, "Close", false, wnd_Console)
btnr = guiCreateButton(1311, 589, 45, 31, "R", false)


--Buttons

addEventHandler ( "onClientGUIClick", root, 
function ( text ) -- 
if source == send then 
local Edit1 = guiGetText ( editName )
local Edit2 = guiGetText ( editDetails )
if Edit1 == "" or Edit2 == "" or Edit3 == "" then return end

triggerServerEvent ( "onSend;Report", localPlayer, Edit1, Edit2,row)
elseif source == closeb then
guiSetVisible(wnd,false)

elseif source == GUIEditor.button[1] then
guiGridListClear ( GUIEditor.gridlist[1] )
selected1 = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
        if selected1 ~= -1 then
data = guiGridListGetItemText(GUIEditor.gridlist[1], selected1,1)	
triggerServerEvent('remove',localPlayer,data,row)
end


elseif source == GUIEditor.button[2] then
guiSetVisible(wi,true)


selected = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
       if selected ~= -1 then
	   if selected >= 0 then
       
guiSetText(memoe,guiGetText(editDetails))
end
end
elseif source == x then
guiSetVisible(wi,false)
elseif source == adress then
guiSetText(editName,guiGetText(adress))
elseif source == GUIEditor.button[3] then
guiSetVisible(wnd_Console,false)
elseif source == btnr then
guiSetVisible(wnd_Console,true)
end
end

)

 

Edited by #Hulk
Link to comment
11 hours ago, Default#^ said:

الكود مو مرتب حاول ترتبه وتحط كل الملف عشان نفهم ونساعدك

addEventHandler ( "onClientGUIClick", root, 
function ( text ) -- 
if source == send then 
local Edit1 = guiGetText ( editName )
local Edit2 = guiGetText ( editDetails )
if Edit1 == "" or Edit2 == "" or Edit3 == "" then return end
triggerServerEvent ( "onSend;Report", localPlayer, Edit1, Edit2,row)
elseif source == closeb then
guiSetVisible(wnd,false)
elseif source == GUIEditor.button[1] then
guiGridListClear ( GUIEditor.gridlist[1] )
selected1 = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
        if selected1 ~= -1 then
data = guiGridListGetItemText(GUIEditor.gridlist[1], selected1,1)	
triggerServerEvent('remove',localPlayer,data,row)
end
elseif source == GUIEditor.button[2] then
guiSetVisible(wi,true)
selected = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
       if selected ~= -1 then
	   if selected >= 0 then
guiSetText(memoe,guiGetText(editDetails))
end
end
elseif source == x then
guiSetVisible(wi,false)
elseif source == adress then
guiSetText(editName,guiGetText(adress))
elseif source == GUIEditor.button[3] then
guiSetVisible(wnd_Console,false)
elseif source == btnr then
guiSetVisible(wnd_Console,true)
end
end
)

كذا مرتب

12 hours ago, #Hulk said:

السلام عليكم ورحمة الله وبركاته ,

 

المشكله هي , سويت لوحة طبعا لمه تكتب ف الميمو ترسل قريد ليست ,

في لوحة تاني اذا حددت وضغط Read ,

تفتح لوحه بالي كتبه اللاعب

المشكله اذا فتحت اللوحه بلاقي كلام اللاعب الاول مو الي اخترته , الخطأ كود التحديد اظن

,  *ابي لمه يرسل اللاعب ويحدد الادمن يجيب الي كتبه اللاعب والجريد الي حدده مو الاخير

الاكواد


---Wind
GUIEditor = {
    gridlist = {},
    button = {}
}
local screenW, screenH = guiGetScreenSize()
wnd_Console = guiCreateWindow((screenW - 728) / 2, (screenH - 276) / 2, 728, 276, "", false)
guiWindowSetSizable(wnd_Console, false)
guiSetVisible(wnd_Console,false)
GUIEditor.gridlist[1] = guiCreateGridList(11, 28, 562, 238, false, wnd_Console)
guiGridListAddColumn(GUIEditor.gridlist[1], "Player Name", 0.5)
guiGridListAddColumn(GUIEditor.gridlist[1], "Details", 0.5)
GUIEditor.button[1] = guiCreateButton(587, 28, 131, 32, "Remove", false, wnd_Console)
GUIEditor.button[2] = guiCreateButton(587, 70, 131, 32, "Show ", false, wnd_Console)
GUIEditor.button[3] = guiCreateButton(587, 116, 131, 32, "Close", false, wnd_Console)
btnr = guiCreateButton(1311, 589, 45, 31, "R", false)


--Buttons

addEventHandler ( "onClientGUIClick", root, 
function ( text ) -- 
if source == send then 
local Edit1 = guiGetText ( editName )
local Edit2 = guiGetText ( editDetails )
if Edit1 == "" or Edit2 == "" or Edit3 == "" then return end

triggerServerEvent ( "onSend;Report", localPlayer, Edit1, Edit2,row)
elseif source == closeb then
guiSetVisible(wnd,false)

elseif source == GUIEditor.button[1] then
guiGridListClear ( GUIEditor.gridlist[1] )
selected1 = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
        if selected1 ~= -1 then
data = guiGridListGetItemText(GUIEditor.gridlist[1], selected1,1)	
triggerServerEvent('remove',localPlayer,data,row)
end


elseif source == GUIEditor.button[2] then
guiSetVisible(wi,true)


selected = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
       if selected ~= -1 then
	   if selected >= 0 then
       
guiSetText(memoe,guiGetText(editDetails))
end
end
elseif source == x then
guiSetVisible(wi,false)
elseif source == adress then
guiSetText(editName,guiGetText(adress))
elseif source == GUIEditor.button[3] then
guiSetVisible(wnd_Console,false)
elseif source == btnr then
guiSetVisible(wnd_Console,true)
end
end

)

 

مم ..
ما في زر بإسم
"send" 
 

12 hours ago, #Hulk said:

guiSetVisible(wi,true)

وين اللوحة الي اسمها
wi ?

Link to comment
On ١٤‏/٣‏/٢٠١٨ at 13:42, AbU - W6N said:

addEventHandler ( "onClientGUIClick", root, 
function ( text ) -- 
if source == send then 
local Edit1 = guiGetText ( editName )
local Edit2 = guiGetText ( editDetails )
if Edit1 == "" or Edit2 == "" or Edit3 == "" then return end
triggerServerEvent ( "onSend;Report", localPlayer, Edit1, Edit2,row)
elseif source == closeb then
guiSetVisible(wnd,false)
elseif source == GUIEditor.button[1] then
guiGridListClear ( GUIEditor.gridlist[1] )
selected1 = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
        if selected1 ~= -1 then
data = guiGridListGetItemText(GUIEditor.gridlist[1], selected1,1)	
triggerServerEvent('remove',localPlayer,data,row)
end
elseif source == GUIEditor.button[2] then
guiSetVisible(wi,true)
selected = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
       if selected ~= -1 then
	   if selected >= 0 then
guiSetText(memoe,guiGetText(editDetails))
end
end
elseif source == x then
guiSetVisible(wi,false)
elseif source == adress then
guiSetText(editName,guiGetText(adress))
elseif source == GUIEditor.button[3] then
guiSetVisible(wnd_Console,false)
elseif source == btnr then
guiSetVisible(wnd_Console,true)
end
end
)

كذا مرتب

مم ..
ما في زر بإسم
"send" 
 

وين اللوحة الي اسمها
wi ?

انا ضايف الاكواد الرئيسيه مو اللوح , عايز المطلوب بس المشكله ف كود التحديد ! , وبعدين الاكواد عاديه اظن

Link to comment
1 minute ago, #Hulk said:

انا ضايف الاكواد الرئيسيه مو اللوح , عايز المطلوب بس المشكله ف كود التحديد ! , وبعدين الاكواد عاديه اظن

انا مو فاهم قصدك ولا ساعدتك 

Link to comment

طيب انا فهمتك ,
بس بدي أسالك وجاوبني
اول شيء صور لي اللوحة حقت المود وكيف تضيف نص وكذا, واطرح اكواد الكلنت كامله كامله هي والسيرفر وان شاء الله بضبطها لك ... 

Link to comment
On 3/16/2018 at 08:31, AbU - W6N said:

طيب انا فهمتك ,
بس بدي أسالك وجاوبني
اول شيء صور لي اللوحة حقت المود وكيف تضيف نص وكذا, واطرح اكواد الكلنت كامله كامله هي والسيرفر وان شاء الله بضبطها لك ... 

تمام , الفكره ان الشكاوي توصل للادمن الي سيرياله موضوع , 

كل شخص بيرسل شكوه بتنحط في قريد ليست 

الادمن بيجي يشوفها بحدد ويفتح الرساله , 

الحين اذا ارسلت كذا شي بالقريد بيجي اول شي رسلته بس ما بيجي مضمون الرساله المحدده من القريد ليست يعني تيكست ثابت , 

الاكواد كامله , 

-- #Hulk

local screenW, screenH = guiGetScreenSize()
wnd = guiCreateWindow((screenW - 576) / 2, (screenH - 352) / 2, 576, 352, "Report Manager #Hulk", false)
guiWindowSetSizable(wnd, false)
guiSetVisible(wnd,false)
editName = guiCreateEdit(10, 36, 296, 40, "", false, wnd)
editDetails = guiCreateMemo(10, 86, 547, 173, "", false, wnd)
label1 = guiCreateLabel(14, 21, 221, 15, "Your Name :", false, wnd)
label3 = guiCreateLabel(478, 71, 89, 15, "Your Details :", false, wnd)
label2 = guiCreateLabel(373, 21, 185, 19, "", false, wnd)
send = guiCreateButton(206, 269, 155, 33, "Send", false, wnd)
closeb = guiCreateButton(206, 309, 155, 33, "Close", false, wnd)
ox = guiCreateLabel(10, 327, 177, 15, "", false, wnd)

--
local screenW, screenH = guiGetScreenSize()

wi = guiCreateWindow(573, 162, 736, 308, "Report Manager", false)
guiWindowSetSizable(wi, false)
guiSetVisible(wi,false)
memoe = guiCreateMemo(9, 78, 716, 216, "", false, wi)
guiMemoSetReadOnly(memoe, true)
x = guiCreateButton(693, 26, 32, 23, "X", false, wi)
adress = guiCreateMemo(10, 34, 258, 34, "", false, wi)
guiMemoSetReadOnly(adress, true)


-----

GUIEditor = {
    gridlist = {},
    button = {}
}
local screenW, screenH = guiGetScreenSize()
wnd_Console = guiCreateWindow((screenW - 728) / 2, (screenH - 276) / 2, 728, 276, "Lead Admin Report Manager Beta Version #Hulk", false)
guiWindowSetSizable(wnd_Console, false)
guiSetVisible(wnd_Console,false)
GUIEditor.gridlist[1] = guiCreateGridList(11, 28, 562, 238, false, wnd_Console)
guiGridListAddColumn(GUIEditor.gridlist[1], "Player Name", 0.5)
guiGridListAddColumn(GUIEditor.gridlist[1], "Details", 0.5)
GUIEditor.button[1] = guiCreateButton(587, 28, 131, 32, "Remove", false, wnd_Console)
GUIEditor.button[2] = guiCreateButton(587, 70, 131, 32, "Show ", false, wnd_Console)
GUIEditor.button[3] = guiCreateButton(587, 116, 131, 32, "Close", false, wnd_Console)
btnr = guiCreateButton(1326, 645, 30, 29, "R", false)
guiSetAlpha(btnr, 0.80)
addEventHandler('onClientGUIClick',GUIEditor.button[3],
function()
guiSetVisible(wnd_Console,false)
end
)
function ControlSttas()
-- if getElementData(localPlayer,"OnOpenSendAll") then 
if getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 

then
if (guiGetVisible(wnd_Console) == false) then
guiSetVisible(wnd_Console,true)
guiSetVisible(btnr,true)

else
guiSetVisible(wnd_Console,false)
guiSetVisible(btnr,false)
end
end
end
addCommandHandler("pr",ControlSttas)
--


addEvent ( "Send2", true )
addEventHandler ( "Send2", root,
function ( Table ) 
guiGridListClear( GUIEditor.gridlist[1] ) 
for i, _ in ipairs( Table ) do 
local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) 
guiGridListSetItemText( GUIEditor.gridlist[1], row, 1,Table.Edit1, false, false) 
guiGridListSetItemText( GUIEditor.gridlist[1], row, 2,Table.Edit2, false, false)
end 
end 
) 

addEventHandler ( "onClientGUIClick", root,
function ( text ) 
if source == send then 
local Edit1 = guiGetText ( editName )
local Edit2 = guiGetText ( editDetails )
if Edit1 == "" or Edit2 == "" or Edit3 == "" then return end

triggerServerEvent ( "onSend;Report", localPlayer, Edit1, Edit2,row)
elseif source == closeb then
guiSetVisible(wnd,false)

elseif source == GUIEditor.button[1] then
--guiGridListClear ( GUIEditor.gridlist[1] )
selected1 = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
        if selected1 ~= -1 then
data = guiGridListGetItemText(GUIEditor.gridlist[1], selected1,1)    
triggerServerEvent('remove',localPlayer,data,row)
end
--guiGridListRemoveRow (gr1,selected1)
--selected = guiGridListGetItemText ( gr1, guiGridListGetSelectedItem ( gr1 ) )
elseif source == GUIEditor.button[2] then
guiSetVisible(wi,true)

--guiGetText(editDetails,guiSetText(memoe))selected = guiGridListGetSelectedItem(GridBan)
selected = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
       if selected ~= -1 then
       if selected >= 0 then
        --       data = guiGridListGetItemText(GUIEditor.gridlist[1], selected,1)
        --    triggerServerEvent("removeserial",localPlayer,data)
          --  guiGridListRemoveRow (GUIEditor.gridlist[1],selected)
guiSetText(memoe,guiGetText(editDetails))
end
end
elseif source == x then
guiSetVisible(wi,false)
elseif source == adress then
guiSetText(editName,guiGetText(adress))
elseif source == GUIEditor.button[3] then
guiSetVisible(wnd_Console,false)
elseif source == btnr then
guiSetVisible(wnd_Console,true)
--elseif source == GUIEditor.button[1]
end
end

)

----
addEventHandler( "onClientResourceStart", resourceRoot, -- حدث اذا المود اتفتح
function(  ) -- وظيفه
triggerServerEvent( "Refresh", localPlayer ) -- تريقر لسرفر
-- ذا عشان تسوي تحديث للقاعده او " القريد لست "
end
)


addEvent("AddRowNew",true)
addEventHandler("AddRowNew",root,
function( table )
guiGridListClear(gr)
for i,v in ipairs ( table ) do
local Row = guiGridListAddRow(gr)
guiGridListSetItemText( gr, Row, 1, v.Text, false, false)
guiGridListSetItemText( gr, Row, 2, v.combo, false, false)
guiGridListSetItemText( gr, Row, 3, v.edit1, false, false)
guiGridListSetItemText( gr, Row, 3, v.edit2, false, false)
end
end
)

function ControlSttas()
-- if getElementData(localPlayer,"OnOpenSendAll") then 
if getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 

then
if (guiGetVisible(wnd) == false) then
guiSetVisible(wnd,true)

else
guiSetVisible(wnd,false)

end
end
end
addCommandHandler("rl",ControlSttas)

 

Edited by #Hulk
Link to comment
35 minutes ago, #Hulk said:

تمام , الفكره ان الشكاوي توصل للادمن الي سيرياله موضوع , 

كل شخص بيرسل شكوه بتنحط في قريد ليست 

الادمن بيجي يشوفها بحدد ويفتح الرساله , 

الحين اذا ارسلت كذا شي بالقريد بيجي اول شي رسلته بس ما بيجي مضمون الرساله المحدده من القريد ليست يعني تيكست ثابت , 

الاكواد كامله , 


-- #Hulk

local screenW, screenH = guiGetScreenSize()
wnd = guiCreateWindow((screenW - 576) / 2, (screenH - 352) / 2, 576, 352, "Report Manager #Hulk", false)
guiWindowSetSizable(wnd, false)
guiSetVisible(wnd,false)
editName = guiCreateEdit(10, 36, 296, 40, "", false, wnd)
editDetails = guiCreateMemo(10, 86, 547, 173, "", false, wnd)
label1 = guiCreateLabel(14, 21, 221, 15, "Your Name :", false, wnd)
label3 = guiCreateLabel(478, 71, 89, 15, "Your Details :", false, wnd)
label2 = guiCreateLabel(373, 21, 185, 19, "", false, wnd)
send = guiCreateButton(206, 269, 155, 33, "Send", false, wnd)
closeb = guiCreateButton(206, 309, 155, 33, "Close", false, wnd)
ox = guiCreateLabel(10, 327, 177, 15, "", false, wnd)

--
local screenW, screenH = guiGetScreenSize()

wi = guiCreateWindow(573, 162, 736, 308, "Report Manager", false)
guiWindowSetSizable(wi, false)
guiSetVisible(wi,false)
memoe = guiCreateMemo(9, 78, 716, 216, "", false, wi)
guiMemoSetReadOnly(memoe, true)
x = guiCreateButton(693, 26, 32, 23, "X", false, wi)
adress = guiCreateMemo(10, 34, 258, 34, "", false, wi)
guiMemoSetReadOnly(adress, true)


-----

GUIEditor = {
    gridlist = {},
    button = {}
}
local screenW, screenH = guiGetScreenSize()
wnd_Console = guiCreateWindow((screenW - 728) / 2, (screenH - 276) / 2, 728, 276, "Lead Admin Report Manager Beta Version #Hulk", false)
guiWindowSetSizable(wnd_Console, false)
guiSetVisible(wnd_Console,false)
GUIEditor.gridlist[1] = guiCreateGridList(11, 28, 562, 238, false, wnd_Console)
guiGridListAddColumn(GUIEditor.gridlist[1], "Player Name", 0.5)
guiGridListAddColumn(GUIEditor.gridlist[1], "Details", 0.5)
GUIEditor.button[1] = guiCreateButton(587, 28, 131, 32, "Remove", false, wnd_Console)
GUIEditor.button[2] = guiCreateButton(587, 70, 131, 32, "Show ", false, wnd_Console)
GUIEditor.button[3] = guiCreateButton(587, 116, 131, 32, "Close", false, wnd_Console)
btnr = guiCreateButton(1326, 645, 30, 29, "R", false)
guiSetAlpha(btnr, 0.80)
addEventHandler('onClientGUIClick',GUIEditor.button[3],
function()
guiSetVisible(wnd_Console,false)
end
)
function ControlSttas()
-- if getElementData(localPlayer,"OnOpenSendAll") then 
if getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 

then
if (guiGetVisible(wnd_Console) == false) then
guiSetVisible(wnd_Console,true)
guiSetVisible(btnr,true)

else
guiSetVisible(wnd_Console,false)
guiSetVisible(btnr,false)
end
end
end
addCommandHandler("pr",ControlSttas)
--


addEvent ( "Send2", true )
addEventHandler ( "Send2", root,
function ( Table ) 
guiGridListClear( GUIEditor.gridlist[1] ) 
for i, _ in ipairs( Table ) do 
local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) 
guiGridListSetItemText( GUIEditor.gridlist[1], row, 1,Table.Edit1, false, false) 
guiGridListSetItemText( GUIEditor.gridlist[1], row, 2,Table.Edit2, false, false)
end 
end 
) 

addEventHandler ( "onClientGUIClick", root,
function ( text ) 
if source == send then 
local Edit1 = guiGetText ( editName )
local Edit2 = guiGetText ( editDetails )
if Edit1 == "" or Edit2 == "" or Edit3 == "" then return end

triggerServerEvent ( "onSend;Report", localPlayer, Edit1, Edit2,row)
elseif source == closeb then
guiSetVisible(wnd,false)

elseif source == GUIEditor.button[1] then
--guiGridListClear ( GUIEditor.gridlist[1] )
selected1 = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
        if selected1 ~= -1 then
data = guiGridListGetItemText(GUIEditor.gridlist[1], selected1,1)    
triggerServerEvent('remove',localPlayer,data,row)
end
--guiGridListRemoveRow (gr1,selected1)
--selected = guiGridListGetItemText ( gr1, guiGridListGetSelectedItem ( gr1 ) )
elseif source == GUIEditor.button[2] then
guiSetVisible(wi,true)

--guiGetText(editDetails,guiSetText(memoe))selected = guiGridListGetSelectedItem(GridBan)
selected = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
       if selected ~= -1 then
       if selected >= 0 then
        --       data = guiGridListGetItemText(GUIEditor.gridlist[1], selected,1)
        --    triggerServerEvent("removeserial",localPlayer,data)
          --  guiGridListRemoveRow (GUIEditor.gridlist[1],selected)
guiSetText(memoe,guiGetText(editDetails))
end
end
elseif source == x then
guiSetVisible(wi,false)
elseif source == adress then
guiSetText(editName,guiGetText(adress))
elseif source == GUIEditor.button[3] then
guiSetVisible(wnd_Console,false)
elseif source == btnr then
guiSetVisible(wnd_Console,true)
--elseif source == GUIEditor.button[1]
end
end

)

----
addEventHandler( "onClientResourceStart", resourceRoot, -- حدث اذا المود اتفتح
function(  ) -- وظيفه
triggerServerEvent( "Refresh", localPlayer ) -- تريقر لسرفر
-- ذا عشان تسوي تحديث للقاعده او " القريد لست "
end
)


addEvent("AddRowNew",true)
addEventHandler("AddRowNew",root,
function( table )
guiGridListClear(gr)
for i,v in ipairs ( table ) do
local Row = guiGridListAddRow(gr)
guiGridListSetItemText( gr, Row, 1, v.Text, false, false)
guiGridListSetItemText( gr, Row, 2, v.combo, false, false)
guiGridListSetItemText( gr, Row, 3, v.edit1, false, false)
guiGridListSetItemText( gr, Row, 3, v.edit2, false, false)
end
end
)

function ControlSttas()
-- if getElementData(localPlayer,"OnOpenSendAll") then 
if getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 

then
if (guiGetVisible(wnd) == false) then
guiSetVisible(wnd,true)

else
guiSetVisible(wnd,false)

end
end
end
addCommandHandler("rl",ControlSttas)

 

getPlayerSerial(player)

كيف حاط كود سيرفر سيد جوا ملف كلينت سايد ؟

Link to comment
1 hour ago, #Hulk said:

الكود ك تجربه مش اكتر , في فلسفه ولا مساعده ؟

لو استعملتها getPlayerSerial 

بالكلنت تستعمل getPlayerSerial() ويجيب لك سيريال لوكال بلاير يعني مافيه ضرر تستعمل بـ كلنت 

المهم اطرح اكواد السيرفر

Edited by Rakan#
Link to comment
13 hours ago, Rakan# said:

لو استعملتها getPlayerSerial 

بالكلنت تستعمل getPlayerSerial() ويجيب لك سيريال لوكال بلاير يعني مافيه ضرر تستعمل بـ كلنت 

المهم اطرح اكواد السيرفر

عارف جربتها واشتغلت عندي , هو يتفلسف وخلاص , Server ,

executeSQLQuery( "CREATE TABLE IF NOT EXISTS `TEST` ( Edit1,Edit2 ) " ) 

addEvent ( "onSend;Report", true ) 
addEventHandler ( "onSend;Report", root,
function ( Edit1,Edit2 )

if Edit1 and Edit1 then 
executeSQLQuery( 'INSERT INTO `TEST`( Edit1,Edit2 ) VALUES(?,?) ' , Edit1,Edit2 ) 

triggerEvent( "Refresh", root ) 

end 
end 
) 


addEvent ( "Refresh", true ) 
addEventHandler ( "Refresh", root,
function ( ) 
local SQLListe = executeSQLQuery ( "SELECT * FROM `TEST` " )
if #SQLListe ~= 0 then 
triggerClientEvent ( "Send2", root, SQLListe ) 
end
end)

+ ماظن في داعي للاكواد السيرفر لان انا المشكله في تحديد الكلام التيكست بيكون ثابت ما يتحدث 

@Default#^ @Master_MTA <3 

  • Thanks 1
Link to comment
20 hours ago, #Hulk said:

الكود ك تجربه مش اكتر , في فلسفه ولا مساعده ؟

رد مثل هذا الرد يعبر عن شخص لا يستحق المساعدة

خل عنك الفلسفه

كيف حاط كود سيرفر سايد في كلانت تسوقها ع من؟

Link to comment
10 minutes ago, *RayaN-Alharbi. said:

رد مثل هذا الرد يعبر عن شخص لا يستحق المساعدة

خل عنك الفلسفه

كيف حاط كود سيرفر سايد في كلانت تسوقها ع من؟

الحين فلسفه صارت مسبه , طيب الكود شغال تمام عندي وجربه , + م تستحق الرد :lol:

Link to comment
12 hours ago, #Hulk said:

عارف جربتها واشتغلت عندي , هو يتفلسف وخلاص , Server ,


executeSQLQuery( "CREATE TABLE IF NOT EXISTS `TEST` ( Edit1,Edit2 ) " ) addEvent ( "onSend;Report", true ) addEventHandler ( "onSend;Report", root,function ( Edit1,Edit2 )if Edit1 and Edit1 then executeSQLQuery( 'INSERT INTO `TEST`( Edit1,Edit2 ) VALUES(?,?) ' , Edit1,Edit2 ) triggerEvent( "Refresh", root ) end end ) addEvent ( "Refresh", true ) addEventHandler ( "Refresh", root,function ( ) local SQLListe = executeSQLQuery ( "SELECT * FROM `TEST` " )if #SQLListe ~= 0 then triggerClientEvent ( "Send2", root, SQLListe ) endend)

+ ماظن في داعي للاكواد السيرفر لان انا المشكله في تحديد الكلام التيكست بيكون ثابت ما يتحدث 

@Default#^ @Master_MTA <3 

جرب الكلنت ذا

 
-- #Hulk
local screenW, screenH = guiGetScreenSize()
wnd = guiCreateWindow((screenW - 576) / 2, (screenH - 352) / 2, 576, 352, "Report Manager #Hulk", false)
guiWindowSetSizable(wnd, false)
guiSetVisible(wnd,false)
editName = guiCreateEdit(10, 36, 296, 40, "", false, wnd)
editDetails = guiCreateMemo(10, 86, 547, 173, "", false, wnd)
label1 = guiCreateLabel(14, 21, 221, 15, "Your Name :", false, wnd)
label3 = guiCreateLabel(478, 71, 89, 15, "Your Details :", false, wnd)
label2 = guiCreateLabel(373, 21, 185, 19, "", false, wnd)
send = guiCreateButton(206, 269, 155, 33, "Send", false, wnd)
closeb = guiCreateButton(206, 309, 155, 33, "Close", false, wnd)
ox = guiCreateLabel(10, 327, 177, 15, "", false, wnd)
--
local screenW, screenH = guiGetScreenSize()
wi = guiCreateWindow(573, 162, 736, 308, "Report Manager", false)
guiWindowSetSizable(wi, false)
guiSetVisible(wi,false)
memoe = guiCreateMemo(9, 78, 716, 216, "", false, wi)
guiMemoSetReadOnly(memoe, true)
x = guiCreateButton(693, 26, 32, 23, "X", false, wi)
adress = guiCreateMemo(10, 34, 258, 34, "", false, wi)
guiMemoSetReadOnly(adress, true)
-----
GUIEditor = {
    gridlist = {},
    button = {}
}
local screenW, screenH = guiGetScreenSize()
wnd_Console = guiCreateWindow((screenW - 728) / 2, (screenH - 276) / 2, 728, 276, "Lead Admin Report Manager Beta Version #Hulk", false)
guiWindowSetSizable(wnd_Console, false)
guiSetVisible(wnd_Console,false)
GUIEditor.gridlist[1] = guiCreateGridList(11, 28, 562, 238, false, wnd_Console)
guiGridListAddColumn(GUIEditor.gridlist[1], "Player Name", 0.5)
guiGridListAddColumn(GUIEditor.gridlist[1], "Details", 0.5)
GUIEditor.button[1] = guiCreateButton(587, 28, 131, 32, "Remove", false, wnd_Console)
GUIEditor.button[2] = guiCreateButton(587, 70, 131, 32, "Show ", false, wnd_Console)
GUIEditor.button[3] = guiCreateButton(587, 116, 131, 32, "Close", false, wnd_Console)
btnr = guiCreateButton(1326, 645, 30, 29, "R", false)
guiSetAlpha(btnr, 0.80)
addEventHandler('onClientGUIClick',GUIEditor.button[3],
function()
guiSetVisible(wnd_Console,false)
end
)
function ControlSttas()
-- if getElementData(localPlayer,"OnOpenSendAll") then 
if getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
then
if (guiGetVisible(wnd_Console) == false) then
guiSetVisible(wnd_Console,true)
guiSetVisible(btnr,true)
else
guiSetVisible(wnd_Console,false)
guiSetVisible(btnr,false)
end
end
end
addCommandHandler("pr",ControlSttas)
--
addEvent ( "Send2", true )
addEventHandler ( "Send2", root,
function ( Table ) 
guiGridListClear( GUIEditor.gridlist[1] ) 
for i,v in ipairs( Table ) do 
local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) 
guiGridListSetItemText( GUIEditor.gridlist[1], row, 1,v["Edit1"], false, false) 
guiGridListSetItemText( GUIEditor.gridlist[1], row, 2,v["Edit2"], false, false)
end 
end 
) 
addEventHandler ( "onClientGUIClick", root,
function ( text ) 
if source == send then 
local Edit1 = guiGetText ( editName )
local Edit2 = guiGetText ( editDetails )
if Edit1 == "" or Edit2 == "" or Edit3 == "" then return end
triggerServerEvent ( "onSend;Report", localPlayer, Edit1, Edit2,row)
elseif source == closeb then
guiSetVisible(wnd,false)
elseif source == GUIEditor.button[1] then
--guiGridListClear ( GUIEditor.gridlist[1] )
selected1 = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
        if selected1 ~= -1 then
data = guiGridListGetItemText(GUIEditor.gridlist[1], selected1,1)    
triggerServerEvent('remove',localPlayer,data,row)
end
--guiGridListRemoveRow (gr1,selected1)
--selected = guiGridListGetItemText ( gr1, guiGridListGetSelectedItem ( gr1 ) )
elseif source == GUIEditor.button[2] then
guiSetVisible(wi,true)
--guiGetText(editDetails,guiSetText(memoe))selected = guiGridListGetSelectedItem(GridBan)
selected = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
       if selected ~= -1 then
       if selected >= 0 then
        --       data = guiGridListGetItemText(GUIEditor.gridlist[1], selected,1)
        --    triggerServerEvent("removeserial",localPlayer,data)
          --  guiGridListRemoveRow (GUIEditor.gridlist[1],selected)
guiSetText(memoe,guiGetText(editDetails))
end
end
elseif source == x then
guiSetVisible(wi,false)
elseif source == adress then
guiSetText(editName,guiGetText(adress))
elseif source == GUIEditor.button[3] then
guiSetVisible(wnd_Console,false)
elseif source == btnr then
guiSetVisible(wnd_Console,true)
--elseif source == GUIEditor.button[1]
end
end
)
----
addEventHandler( "onClientResourceStart", resourceRoot, -- حدث اذا المود اتفتح
function(  ) -- وظيفه
triggerServerEvent( "Refresh", localPlayer ) -- تريقر لسرفر
-- ذا عشان تسوي تحديث للقاعده او " القريد لست "
end
)
addEvent("AddRowNew",true)
addEventHandler("AddRowNew",root,
function( table )
guiGridListClear(gr)
for i,v in ipairs ( table ) do
local Row = guiGridListAddRow(gr)
guiGridListSetItemText( gr, Row, 1, v.Text, false, false)
guiGridListSetItemText( gr, Row, 2, v.combo, false, false)
guiGridListSetItemText( gr, Row, 3, v.edit1, false, false)
guiGridListSetItemText( gr, Row, 3, v.edit2, false, false)
end
end
)
function ControlSttas()
-- if getElementData(localPlayer,"OnOpenSendAll") then 
if getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
then
if (guiGetVisible(wnd) == false) then
guiSetVisible(wnd,true)
else
guiSetVisible(wnd,false)
end
end
end
addCommandHandler("rl",ControlSttas)

 

Link to comment
16 hours ago, Rakan# said:

جرب الكلنت ذا


 -- #Hulklocal screenW, screenH = guiGetScreenSize()wnd = guiCreateWindow((screenW - 576) / 2, (screenH - 352) / 2, 576, 352, "Report Manager #Hulk", false)guiWindowSetSizable(wnd, false)guiSetVisible(wnd,false)editName = guiCreateEdit(10, 36, 296, 40, "", false, wnd)editDetails = guiCreateMemo(10, 86, 547, 173, "", false, wnd)label1 = guiCreateLabel(14, 21, 221, 15, "Your Name :", false, wnd)label3 = guiCreateLabel(478, 71, 89, 15, "Your Details :", false, wnd)label2 = guiCreateLabel(373, 21, 185, 19, "", false, wnd)send = guiCreateButton(206, 269, 155, 33, "Send", false, wnd)closeb = guiCreateButton(206, 309, 155, 33, "Close", false, wnd)ox = guiCreateLabel(10, 327, 177, 15, "", false, wnd)--local screenW, screenH = guiGetScreenSize()wi = guiCreateWindow(573, 162, 736, 308, "Report Manager", false)guiWindowSetSizable(wi, false)guiSetVisible(wi,false)memoe = guiCreateMemo(9, 78, 716, 216, "", false, wi)guiMemoSetReadOnly(memoe, true)x = guiCreateButton(693, 26, 32, 23, "X", false, wi)adress = guiCreateMemo(10, 34, 258, 34, "", false, wi)guiMemoSetReadOnly(adress, true)-----GUIEditor = {    gridlist = {},    button = {}}local screenW, screenH = guiGetScreenSize()wnd_Console = guiCreateWindow((screenW - 728) / 2, (screenH - 276) / 2, 728, 276, "Lead Admin Report Manager Beta Version #Hulk", false)guiWindowSetSizable(wnd_Console, false)guiSetVisible(wnd_Console,false)GUIEditor.gridlist[1] = guiCreateGridList(11, 28, 562, 238, false, wnd_Console)guiGridListAddColumn(GUIEditor.gridlist[1], "Player Name", 0.5)guiGridListAddColumn(GUIEditor.gridlist[1], "Details", 0.5)GUIEditor.button[1] = guiCreateButton(587, 28, 131, 32, "Remove", false, wnd_Console)GUIEditor.button[2] = guiCreateButton(587, 70, 131, 32, "Show ", false, wnd_Console)GUIEditor.button[3] = guiCreateButton(587, 116, 131, 32, "Close", false, wnd_Console)btnr = guiCreateButton(1326, 645, 30, 29, "R", false)guiSetAlpha(btnr, 0.80)addEventHandler('onClientGUIClick',GUIEditor.button[3],function()guiSetVisible(wnd_Console,false)end)function ControlSttas()-- if getElementData(localPlayer,"OnOpenSendAll") then if getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- thenif (guiGetVisible(wnd_Console) == false) thenguiSetVisible(wnd_Console,true)guiSetVisible(btnr,true)elseguiSetVisible(wnd_Console,false)guiSetVisible(btnr,false)endendendaddCommandHandler("pr",ControlSttas)--addEvent ( "Send2", true )addEventHandler ( "Send2", root,function ( Table ) guiGridListClear( GUIEditor.gridlist[1] ) for i,v in ipairs( Table ) do local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 1,v["Edit1"], false, false) guiGridListSetItemText( GUIEditor.gridlist[1], row, 2,v["Edit2"], false, false)end end ) addEventHandler ( "onClientGUIClick", root,function ( text ) if source == send then local Edit1 = guiGetText ( editName )local Edit2 = guiGetText ( editDetails )if Edit1 == "" or Edit2 == "" or Edit3 == "" then return endtriggerServerEvent ( "onSend;Report", localPlayer, Edit1, Edit2,row)elseif source == closeb thenguiSetVisible(wnd,false)elseif source == GUIEditor.button[1] then--guiGridListClear ( GUIEditor.gridlist[1] )selected1 = guiGridListGetSelectedItem(GUIEditor.gridlist[1])        if selected1 ~= -1 thendata = guiGridListGetItemText(GUIEditor.gridlist[1], selected1,1)    triggerServerEvent('remove',localPlayer,data,row)end--guiGridListRemoveRow (gr1,selected1)--selected = guiGridListGetItemText ( gr1, guiGridListGetSelectedItem ( gr1 ) )elseif source == GUIEditor.button[2] thenguiSetVisible(wi,true)--guiGetText(editDetails,guiSetText(memoe))selected = guiGridListGetSelectedItem(GridBan)selected = guiGridListGetSelectedItem(GUIEditor.gridlist[1])       if selected ~= -1 then       if selected >= 0 then        --       data = guiGridListGetItemText(GUIEditor.gridlist[1], selected,1)        --    triggerServerEvent("removeserial",localPlayer,data)          --  guiGridListRemoveRow (GUIEditor.gridlist[1],selected)guiSetText(memoe,guiGetText(editDetails))endendelseif source == x thenguiSetVisible(wi,false)elseif source == adress thenguiSetText(editName,guiGetText(adress))elseif source == GUIEditor.button[3] thenguiSetVisible(wnd_Console,false)elseif source == btnr thenguiSetVisible(wnd_Console,true)--elseif source == GUIEditor.button[1]endend)----addEventHandler( "onClientResourceStart", resourceRoot, -- حدث اذا المود اتفتحfunction(  ) -- وظيفهtriggerServerEvent( "Refresh", localPlayer ) -- تريقر لسرفر-- ذا عشان تسوي تحديث للقاعده او " القريد لست "end)addEvent("AddRowNew",true)addEventHandler("AddRowNew",root,function( table )guiGridListClear(gr)for i,v in ipairs ( table ) dolocal Row = guiGridListAddRow(gr)guiGridListSetItemText( gr, Row, 1, v.Text, false, false)guiGridListSetItemText( gr, Row, 2, v.combo, false, false)guiGridListSetItemText( gr, Row, 3, v.edit1, false, false)guiGridListSetItemText( gr, Row, 3, v.edit2, false, false)endend)function ControlSttas()-- if getElementData(localPlayer,"OnOpenSendAll") then if getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- thenif (guiGetVisible(wnd) == false) thenguiSetVisible(wnd,true)elseguiSetVisible(wnd,false)endendendaddCommandHandler("rl",ControlSttas)

 

نفس المشكله , الكود لمه بحدد وادوس Show بيجي نفس التكست الاول , المشكله بكود التحديد

Link to comment

مشكلتك وش هي بالضبط ؟

جرب ذا طيب

 
-- #Hulk
local screenW, screenH = guiGetScreenSize()
wnd = guiCreateWindow((screenW - 576) / 2, (screenH - 352) / 2, 576, 352, "Report Manager #Hulk", false)
guiWindowSetSizable(wnd, false)
guiSetVisible(wnd,false)
editName = guiCreateEdit(10, 36, 296, 40, "", false, wnd)
editDetails = guiCreateMemo(10, 86, 547, 173, "", false, wnd)
label1 = guiCreateLabel(14, 21, 221, 15, "Your Name :", false, wnd)
label3 = guiCreateLabel(478, 71, 89, 15, "Your Details :", false, wnd)
label2 = guiCreateLabel(373, 21, 185, 19, "", false, wnd)
send = guiCreateButton(206, 269, 155, 33, "Send", false, wnd)
closeb = guiCreateButton(206, 309, 155, 33, "Close", false, wnd)
ox = guiCreateLabel(10, 327, 177, 15, "", false, wnd)
--
local screenW, screenH = guiGetScreenSize()
wi = guiCreateWindow(573, 162, 736, 308, "Report Manager", false)
guiWindowSetSizable(wi, false)
guiSetVisible(wi,false)
memoe = guiCreateMemo(9, 78, 716, 216, "", false, wi)
guiMemoSetReadOnly(memoe, true)
x = guiCreateButton(693, 26, 32, 23, "X", false, wi)
adress = guiCreateMemo(10, 34, 258, 34, "", false, wi)
guiMemoSetReadOnly(adress, true)
-----
GUIEditor = {
    gridlist = {},
    button = {}
}
local screenW, screenH = guiGetScreenSize()
wnd_Console = guiCreateWindow((screenW - 728) / 2, (screenH - 276) / 2, 728, 276, "Lead Admin Report Manager Beta Version #Hulk", false)
guiWindowSetSizable(wnd_Console, false)
guiSetVisible(wnd_Console,false)
GUIEditor.gridlist[1] = guiCreateGridList(11, 28, 562, 238, false, wnd_Console)
guiGridListAddColumn(GUIEditor.gridlist[1], "Player Name", 0.5)
guiGridListAddColumn(GUIEditor.gridlist[1], "Details", 0.5)
GUIEditor.button[1] = guiCreateButton(587, 28, 131, 32, "Remove", false, wnd_Console)
GUIEditor.button[2] = guiCreateButton(587, 70, 131, 32, "Show ", false, wnd_Console)
GUIEditor.button[3] = guiCreateButton(587, 116, 131, 32, "Close", false, wnd_Console)
btnr = guiCreateButton(1326, 645, 30, 29, "R", false)
guiSetAlpha(btnr, 0.80)
addEventHandler('onClientGUIClick',GUIEditor.button[3],
function()
guiSetVisible(wnd_Console,false)
end
)
function ControlSttas()
-- if getElementData(localPlayer,"OnOpenSendAll") then 
if getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
then
if (guiGetVisible(wnd_Console) == false) then
guiSetVisible(wnd_Console,true)
guiSetVisible(btnr,true)
else
guiSetVisible(wnd_Console,false)
guiSetVisible(btnr,false)
end
end
end
addCommandHandler("pr",ControlSttas)
--
addEvent ( "Send2", true )
addEventHandler ( "Send2", root,
function ( Table ) 
guiGridListClear( GUIEditor.gridlist[1] ) 
for i,v in ipairs( Table ) do 
local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) 
guiGridListSetItemText( GUIEditor.gridlist[1], row, 1,v["Edit1"], false, false) 
guiGridListSetItemText( GUIEditor.gridlist[1], row, 2,v["Edit2"], false, false)
end 
end 
) 
addEventHandler ( "onClientGUIClick", root,
function ( text ) 
if source == send then 
local Edit1 = guiGetText ( editName )
local Edit2 = guiGetText ( editDetails )
if Edit1 == "" or Edit2 == "" or Edit3 == "" then return end
triggerServerEvent ( "onSend;Report", localPlayer, Edit1, Edit2,row)
elseif source == closeb then
guiSetVisible(wnd,false)
elseif source == GUIEditor.button[1] then
--guiGridListClear ( GUIEditor.gridlist[1] )
selected1 = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
        if selected1 ~= -1 then
data = guiGridListGetItemText(GUIEditor.gridlist[1], selected1,1)    
triggerServerEvent('remove',localPlayer,data,row)
end
--guiGridListRemoveRow (gr1,selected1)
--selected = guiGridListGetItemText ( gr1, guiGridListGetSelectedItem ( gr1 ) )
elseif source == GUIEditor.button[2] then
guiSetVisible(wi,true)
--guiGetText(editDetails,guiSetText(memoe))selected = guiGridListGetSelectedItem(GridBan)
selected = guiGridListGetSelectedItem(GUIEditor.gridlist[1])
       if selected ~= -1 then
local d1 = guiGridListGetItemText(GUIEditor.gridlist[1], selected,1)
local d2 = guiGridListGetItemText(GUIEditor.gridlist[1], selected,2)
guiSetText(adress,d1)
guiSetText(memoe,d2)
end
elseif source == x then
guiSetVisible(wi,false)
elseif source == adress then
guiSetText(editName,guiGetText(adress))
elseif source == GUIEditor.button[3] then
guiSetVisible(wnd_Console,false)
elseif source == btnr then
guiSetVisible(wnd_Console,true)
--elseif source == GUIEditor.button[1]
end
end
)
----
addEventHandler( "onClientResourceStart", resourceRoot, -- حدث اذا المود اتفتح
function(  ) -- وظيفه
triggerServerEvent( "Refresh", localPlayer ) -- تريقر لسرفر
-- ذا عشان تسوي تحديث للقاعده او " القريد لست "
end
)
addEvent("AddRowNew",true)
addEventHandler("AddRowNew",root,
function( table )
guiGridListClear(gr)
for i,v in ipairs ( table ) do
local Row = guiGridListAddRow(gr)
guiGridListSetItemText( gr, Row, 1, v.Text, false, false)
guiGridListSetItemText( gr, Row, 2, v.combo, false, false)
guiGridListSetItemText( gr, Row, 3, v.edit1, false, false)
guiGridListSetItemText( gr, Row, 3, v.edit2, false, false)
end
end
)
function ControlSttas()
-- if getElementData(localPlayer,"OnOpenSendAll") then 
if getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
or getPlayerSerial(player) == "3EFCA40D311813E763FF162858E0F6E4" -- 
then
if (guiGetVisible(wnd) == false) then
guiSetVisible(wnd,true)
else
guiSetVisible(wnd,false)
end
end
end
addCommandHandler("rl",ControlSttas)

 

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