^iiEcoo'x_) Posted January 15, 2017 Share Posted January 15, 2017 السلام عليكم ورحمة الله وبركاته عندي استفسار انا مسوي 2 رو ابي الي معه داتا اسمها data1 يجي تحت الرو الاول اسامي الي معهم داتا علما بانه الاسامي تجي تحت الرو الاول وفوق الرو الثاني عشان م يختلطن وهكذا ,,,, بانتظار ردودكمــ شكرا مقدماً Link to comment
Me[Z]oO Posted January 16, 2017 Share Posted January 16, 2017 --loop guiGridListAddRow getPlayerName guiGridListSetItemText tonumber getElementData Link to comment
^iiEcoo'x_) Posted January 16, 2017 Author Share Posted January 16, 2017 انا ما بيه يخلتطط مع الرو الثاني Link to comment
Me[Z]oO Posted January 16, 2017 Share Posted January 16, 2017 2 hours ago, #_iMr,[E]coo said: انا ما بيه يخلتطط مع الرو الثاني اعمل اثنين row واحد للاسم والثاني للداتا Link to comment
^iiEcoo'x_) Posted January 16, 2017 Author Share Posted January 16, 2017 انا ابي كذا Row S اسم اللاعبين الي معهم داتا S Row T اسم الاعبين الي معهم داتا T Link to comment
Abu-Solo Posted January 16, 2017 Share Posted January 16, 2017 19 minutes ago, #_iMr,[E]coo said: انا ابي كذا Row S اسم اللاعبين الي معهم داتا S Row T اسم الاعبين الي معهم داتا T سوي تحقق من الالمنت داتا Link to comment
MR.GRAND Posted January 16, 2017 Share Posted January 16, 2017 guiGridListAddRow guiGridListInsertRowAfter Link to comment
^iiEcoo'x_) Posted January 16, 2017 Author Share Posted January 16, 2017 تسلللم طيب الحين سويت مثل فوق يجي كذا صح ؟ Row S اسم اسم اسم الخ.. وهنا يجي Row T اسم اسم الخخ ..... بدون م يتلخبطن مع بعض ؟ذذ Link to comment
SycroX Posted January 16, 2017 Share Posted January 16, 2017 function loadPlayers() for index, value in ipairs(getElementsByType("player")) do local Row = guiGridListAddRow(GridList) if getElementData(value, "data1") then guiGridListSetItemText(GridList, Row, 1, getPlayerName(value), false, false) guiGridListSetItemColor(GridList, Row, 1, 255, 255, 0) else guiGridListSetItemText(GridList, Row, 2, getPlayerName(value), false, false) guiGridListSetItemColor(GridList, Row, 2, 0, 255, 0) end end end 1 Link to comment
Master_MTA Posted January 16, 2017 Share Posted January 16, 2017 ? function loadPlayers() for index, value in ipairs(getElementsByType("player")) do local Row = guiGridListAddRow(GridList) if getElementData(value, "data1") then guiGridListSetItemText(GridList, Row, 1, getPlayerName(value), false, false) guiGridListSetItemColor(GridList, Row, 1, 255, 255, 0) elseif getElementData(value, "data2") then guiGridListSetItemText(GridList, Row, 2, getPlayerName(value), false, false) guiGridListSetItemColor(GridList, Row, 2, 0, 255, 0) end end end هذي الطريقه افضل لو حبيت تضيف اكثر من داتا الكود حق الاخ @#Skrillex Link to comment
^iiEcoo'x_) Posted January 16, 2017 Author Share Posted January 16, 2017 مشكوورين يعيكم العافية @#Skrillex @Master_MTA 1 Link to comment
Master_MTA Posted January 16, 2017 Share Posted January 16, 2017 الله يعافيك يا غالي @#_iMr,[E]coo Link to comment
^iiEcoo'x_) Posted January 16, 2017 Author Share Posted January 16, 2017 1 minute ago, Master_MTA said: الله يعافيك يا غالي @#_iMr,[E]coo سوال لو بحط اكثر من اسم كذا ؟ guiGridListSetItemText(GridList, Row, 2, getPlayerName(value[1]), false, false) Link to comment
Master_MTA Posted January 16, 2017 Share Posted January 16, 2017 Just now, #_iMr,[E]coo said: سوال لو بحط اكثر من اسم كذا ؟ guiGridListSetItemText(GridList, Row, 2, getPlayerName(value[1]), false, false) لا يا غالي كذا بيعطيك اول اسم بيطلع guiGridListSetItemText(GridList, Row, 2, getPlayerName(value), false, false) كذا الصحيح Link to comment
Mr.CoR Posted January 16, 2017 Share Posted January 16, 2017 اعتقد تقدر تسويها برضو في ال XML عن طريق الآباء والأبناء Link to comment
N3xT Posted January 16, 2017 Share Posted January 16, 2017 1 minute ago, [ sH!5 ]~|>#Mr,[C]oR said: اعتقد تقدر تسويها برضو في ال XML عن طريق الآباء والأبناء مافيه اخوان ؟ ههه 3 Link to comment
Master_MTA Posted January 16, 2017 Share Posted January 16, 2017 1 minute ago, N3xT said: مافيه اخوان ؟ ههه حلوه بس لا تعيدها 1 Link to comment
^iiEcoo'x_) Posted January 16, 2017 Author Share Posted January 16, 2017 انا مسوي انه يجي اكثر من اسم مب اسم لاعب لحاله يعني ذا صح ؟ guiGridListSetItemText(GridList, Row, 2, getPlayerName(value[1]), false, false) guiGridListSetItemText(GridList, Row2, 2, getPlayerName(value[2]), false, false) Link to comment
Master_MTA Posted January 16, 2017 Share Posted January 16, 2017 1 minute ago, #_iMr,[E]coo said: انا مسوي انه يجي اكثر من اسم مب اسم لاعب لحاله يعني ذا صح ؟ guiGridListSetItemText(GridList, Row, 2, getPlayerName(value[1]), false, false) guiGridListSetItemText(GridList, Row2, 2, getPlayerName(value[2]), false, false) يب كذا يطلعلك اول اسمين فقط 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