SolideRock Posted May 13, 2016 Share Posted May 13, 2016 السلام عليكم ورحمه الله وبركاته انا عندي قريد ليست ابي يحط فيها اسماء اللاعبين الي دخلو السيرفر + السيريال حقهم + ترتيب الللاعبين ذا كود الجريد ليست GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 473, 302, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "NamePlayer", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "Serial", 0.3) Link to comment
YourMind Posted May 13, 2016 Share Posted May 13, 2016 "onClientResourceStart" triggerServerEvent -- server executeSQLQuery -- create table executeSQLQuery -- select triggerClientEvent -- client guiGridListAddRow guiGridListSetItemText "onPlayerJoin" getPlayerName getPlayerSerial executeSQLQuery -- للحفظ triggerClientEvent -- client guiGridListAddRow guiGridListSetItemText Link to comment
SolideRock Posted May 14, 2016 Author Share Posted May 14, 2016 اعطيني كود جاهز وانا بتعلم منو انا تعلمت مثل كذا Link to comment
Adham Posted May 14, 2016 Share Posted May 14, 2016 ذا يكتب اسمهاا كل الفي سرفر في القريد لست function update () guiGridListClear(grid) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (grid) guiGridListSetItemText (grid,rp,1,getPlayerName(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) يجي سريالهم : function update () guiGridListClear(GUIEditor.gridlist[2]) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (GUIEditor.gridlist[2]) guiGridListSetItemText (GUIEditor.gridlist[2],rp,1,getPlayerSerial(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) Link to comment
SPLM Posted May 14, 2016 Share Posted May 14, 2016 ذا يكتب اسمهاا كل الفي سرفر في القريد لست function update () guiGridListClear(grid) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (grid) guiGridListSetItemText (grid,rp,1,getPlayerName(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) يجي سريالهم : function update () guiGridListClear(GUIEditor.gridlist[2]) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (GUIEditor.gridlist[2]) guiGridListSetItemText (GUIEditor.gridlist[2],rp,1,getPlayerSerial(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) getPlayerSerial Server-only functionNote: The client side version of getPlayerSerial has been deprecated as it can return the wrong value for some players, and is potentially insecure. The following article assumes that the function is serverside only. Link to comment
SolideRock Posted May 14, 2016 Author Share Posted May 14, 2016 مازبط server function update () guiGridListClear(Grid) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (Grid) guiGridListSetItemText (Grid,rp,1,getPlayerName(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) function update () guiGridListClear(Grid) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (Grid) guiGridListSetItemText (Grid,rp,1,getPlayerName(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) Link to comment
Mostafa MohammeD Posted May 14, 2016 Share Posted May 14, 2016 مش عارف ليش ؟ شو هاد الهريس الي انت مسويه هاي مستحيل يشتغل هم اعطوك جزء من المود انت اشتغلت نسخ لصق عليه ؟ Link to comment
SolideRock Posted May 14, 2016 Author Share Posted May 14, 2016 طيب اعطيني انتا الكود الصح Link to comment
Mostafa MohammeD Posted May 14, 2016 Share Posted May 14, 2016 طيب اعطيني انتا الكود الصح وليش ما تحاول تسويه انت من الفنكشات يلي عطاها اليك DTC12 فوق ولا شكلك انت تبي كود جاز وخلاص Link to comment
nxFairlywell Posted May 14, 2016 Share Posted May 14, 2016 انت حاط بوظيفة انشاء رو Grid استبدله بإسم القريد لست حقتك Link to comment
SolideRock Posted May 14, 2016 Author Share Posted May 14, 2016 ذا اسم القريد حقي حاطه Grid = guiCreateGridList(9, 20, 473, 302, false, Wind) guiGridListAddColumn(Grid, "#", 0.3) guiGridListAddColumn(Grid, "NamePlayer", 0.3) guiGridListAddColumn(Grid, "Serial", 0.6) Link to comment
Adham Posted May 14, 2016 Share Posted May 14, 2016 function update () guiGridListClear(Grid) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (Grid) guiGridListSetItemText (Grid,rp,2,getPlayerName(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) Link to comment
SolideRock Posted May 14, 2016 Author Share Posted May 14, 2016 انا بحط كودك بملف سيرفر Link to comment
a7zan Posted May 14, 2016 Share Posted May 14, 2016 مازبطserver function update () guiGridListClear(Grid) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (Grid) guiGridListSetItemText (Grid,rp,1,getPlayerName(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) function update () guiGridListClear(Grid) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (Grid) guiGridListSetItemText (Grid,rp,1,getPlayerName(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) الاكواد كلنت ياقلبي مو سيرفر Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now