Jump to content

مشكلة في الكلنت سيد


D7mas

Recommended Posts

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

قلي السيرفر في مشكلة بالكلنت سيد حق ؟myGroupList 

ممكن تشوفوها

addEvent("myGroupList", true)
addEventHandler("myGroupList", root,
function(Owner, members, data, color1, color2)
	guiGridListClear(MyGroup_Members_Grid)
	for i, group in pairs(members) do
		local row = guiGridListAddRow(MyGroup_Members_Grid)
		guiGridListSetItemText(MyGroup_Members_Grid , row, 1, group["member_name"] or "N/A", false, false)
		guiGridListSetItemText(MyGroup_Members_Grid , row, 2, group["member_account"], false, false)
		guiGridListSetItemText(MyGroup_Members_Grid , row, 3, group["member_rank"], false, false)
		guiGridListSetItemText(MyGroup_Members_Grid , row, 5, group["WL"].."%", false, false)
		guiGridListSetItemText(MyGroup_Members_Grid , row, 6, group["mute"] or "false", false, false)
		if group["last_online"] == data then
			guiGridListSetItemText(MyGroup_Members_Grid , row, 4, "Today", false, false)
		else
			guiGridListSetItemText(MyGroup_Members_Grid , row, 4, group["last_online"], false, false)
		end
		if group["member_status"] == "Yes" and data == group["last_online"] then
		--	r, g, b = 0,255,0
		if Owner == group["member_account"] then
		r, g, b = 255, 255, 0
		else
		r, g, b = 0, 255 ,0
		end
		else
		r, g, b = 255,0,0
		end
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 1, r, g, b)
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 2, r, g, b)
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 3, r, g, b)
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 4, r, g, b)
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 5, r, g, b)
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 6, r, g, b)
	end
end)

 

Link to comment
2 minutes ago, D7mas said:

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

قلي السيرفر في مشكلة بالكلنت سيد حق ؟myGroupList 

ممكن تشوفوها


addEvent("myGroupList", true)
addEventHandler("myGroupList", root,
function(Owner, members, data, color1, color2)
	guiGridListClear(MyGroup_Members_Grid)
	for i, group in pairs(members) do
		local row = guiGridListAddRow(MyGroup_Members_Grid)
		guiGridListSetItemText(MyGroup_Members_Grid , row, 1, group["member_name"] or "N/A", false, false)
		guiGridListSetItemText(MyGroup_Members_Grid , row, 2, group["member_account"], false, false)
		guiGridListSetItemText(MyGroup_Members_Grid , row, 3, group["member_rank"], false, false)
		guiGridListSetItemText(MyGroup_Members_Grid , row, 5, group["WL"].."%", false, false)
		guiGridListSetItemText(MyGroup_Members_Grid , row, 6, group["mute"] or "false", false, false)
		if group["last_online"] == data then
			guiGridListSetItemText(MyGroup_Members_Grid , row, 4, "Today", false, false)
		else
			guiGridListSetItemText(MyGroup_Members_Grid , row, 4, group["last_online"], false, false)
		end
		if group["member_status"] == "Yes" and data == group["last_online"] then
		--	r, g, b = 0,255,0
		if Owner == group["member_account"] then
		r, g, b = 255, 255, 0
		else
		r, g, b = 0, 255 ,0
		end
		else
		r, g, b = 255,0,0
		end
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 1, r, g, b)
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 2, r, g, b)
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 3, r, g, b)
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 4, r, g, b)
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 5, r, g, b)
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 6, r, g, b)
	end
end)

 

ديبق وش يقول؟

Link to comment
4 minutes ago, A7MEDENO said:

التريقر حطه هنا

 

addEvent("Request_myGroup_MembersList", true)
addEventHandler("Request_myGroup_MembersList", root,
function(name)
	local data = data()
	local member = getGroupMembers(name)
	local Owner = getGroupOwner(name)
	local color1 = getGroupTurfColor(name)
	local color2 = getGroupChatColor(name)
	local result = dbPoll(dbQuery(db, "SELECT group_owner FROM groups"), -1)
	return triggerClientEvent(source, "myGroupList", source, Owner, member, data, color1, color2, result)
end)

 

Link to comment
2 minutes ago, D7mas said:

addEvent("Request_myGroup_MembersList", true)
addEventHandler("Request_myGroup_MembersList", root,
function(name)
	local data = data()
	local member = getGroupMembers(name)
	local Owner = getGroupOwner(name)
	local color1 = getGroupTurfColor(name)
	local color2 = getGroupChatColor(name)
	local result = dbPoll(dbQuery(db, "SELECT group_owner FROM groups"), -1)
	return triggerClientEvent(source, "myGroupList", source, Owner, member, data, color1, color2, result)
end)

 

addEvent("Request_myGroup_MembersList", true)
addEventHandler("Request_myGroup_MembersList", root,
function(name)
	local data = data()
	local member = getGroupMembers(name)
	local Owner = getGroupOwner(name)
	local color1 = getGroupTurfColor(name)
	local color2 = getGroupChatColor(name)
	local result = dbPoll(dbQuery(db, "SELECT group_owner FROM groups"), -1)
	return triggerClientEvent(source, "myGroupList", source, Owner, members, data, color1, color2)
end)

جرب كدا

Edited by A7MEDENO
Link to comment
addEvent("Request_myGroup_MembersList", true)
addEventHandler("Request_myGroup_MembersList", root,
function(name)
	local data = data()
	local member = getGroupMembers(name)
	local Owner = getGroupOwner(name)
	local color1 = getGroupTurfColor(name)
	local color2 = getGroupChatColor(name)
	local result = dbPoll(dbQuery(db, "SELECT group_owner FROM groups"), -1)
	return triggerClientEvent(source, "myGroupList", source, Owner, member, data, color1, color2, result)
end)
addEvent("myGroupList", true)
addEventHandler("myGroupList", root,
function(Owner, member, data, color1, color2, result)
	guiGridListClear(MyGroup_Members_Grid)
	for i, group in pairs(members) do
		local row = guiGridListAddRow(MyGroup_Members_Grid)
		guiGridListSetItemText(MyGroup_Members_Grid , row, 1, group["member_name"] or "N/A", false, false)
		guiGridListSetItemText(MyGroup_Members_Grid , row, 2, group["member_account"], false, false)
		guiGridListSetItemText(MyGroup_Members_Grid , row, 3, group["member_rank"], false, false)
		guiGridListSetItemText(MyGroup_Members_Grid , row, 5, group["WL"].."%", false, false)
		guiGridListSetItemText(MyGroup_Members_Grid , row, 6, group["mute"] or "false", false, false)
		if group["last_online"] == data then
			guiGridListSetItemText(MyGroup_Members_Grid , row, 4, "Today", false, false)
		else
			guiGridListSetItemText(MyGroup_Members_Grid , row, 4, group["last_online"], false, false)
		end
		if group["member_status"] == "Yes" and data == group["last_online"] then
		--	r, g, b = 0,255,0
		if Owner == group["member_account"] then
		r, g, b = 255, 255, 0
		else
		r, g, b = 0, 255 ,0
		end
		else
		r, g, b = 255,0,0
		end
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 1, r, g, b)
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 2, r, g, b)
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 3, r, g, b)
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 4, r, g, b)
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 5, r, g, b)
		guiGridListSetItemColor(MyGroup_Members_Grid, row, 6, r, g, b)
	end
end)

جرب الكودين

Link to comment
43 minutes ago, Talis said:

addEvent("Request_myGroup_MembersList", true)addEventHandler("Request_myGroup_MembersList", root,function(name)	local data = data()	local member = getGroupMembers(name)	return triggerClientEvent(source, "myGroupList", source, member, data)end)

جرب ي صاحب الموضوع @

نفس المشكلة :( 

Link to comment
6 hours ago, Omoi said:

حط الكلينت  بالكامل والسيرفر ايضا

بوصل  الكلنت 3الف سطر وال السيرفر400 الف 

 

اعطيكو لوحة القارد ليست ؟؟

هي كانت تشتغل بس انا غيرت حجمها

Link to comment
Just now, D7mas said:

شباب انا غيرت حجم لوحة القارد ليست عن الحجم الاصلي يمكن هاي المشكلة ؟؟؟؟

المشكلة من القارد ليست

متأكد أنك عدلت حجم اللوحة فقط ؟

Link to comment
49 minutes ago, #BrosS said:

المشكلة من القارد ليست

متأكد أنك عدلت حجم اللوحة فقط ؟

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

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