Jump to content

جريد ليست


Recommended Posts

  • Replies 139
  • Created
  • Last Reply

Top Posters In This Topic

Posted (edited)

يب لان بتحتاجه اذا راح تستمر بالبرمجة

وانصحك تبدأ بشي بسيط بالقريد ليست

مثلاً تجلب اسماء اللاعبين كلهم و لما يحدد على لاعب يقتله

الفنكشنات الي بتحتاجها

  
guiGridListClear 
getElementsByType -- loop ( player ) 
getPlayerName 
guiGridListAddRow 
guiGridListSetItemText 
'onClientPlayerChangeNick' 
'onClientPlayerJoin' 
- 
'onClientGUIClick' 
guiGridListGetItemText 
guiGridListGetSelectedItem 
triggerServerEvent 
killPed 
Edited by Guest
Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted
حاول تتعلمها لو لقيتها صعبة عليك شوف غيرها بس ملاحظة

الجريد ليست شغلها معظمه علي الجداول يعني لازم تكون فاهم الجداول جيدا مشان تسوي جريد ليست

وبالتوفيق

القريد ليست يقدر يستخدمه بأشياء ثانية مو بس بالجدوال , يعني بعض المودات مو لازم جدوال وبعضها لازم

ف أنا انصحك لا تتعب نفسك الحين وتتعلم الجدوال اهم شي تفهم القريد ليست عشان تقدر تطبقه مع الجدوال

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted
حاول تتعلمها لو لقيتها صعبة عليك شوف غيرها بس ملاحظة

الجريد ليست شغلها معظمه علي الجداول يعني لازم تكون فاهم الجداول جيدا مشان تسوي جريد ليست

وبالتوفيق

القريد ليست يقدر يستخدمه بأشياء ثانية مو بس بالجدوال , يعني بعض المودات مو لازم جدوال وبعضها لازم

يب :D

لهيك كتبت معظمهم بس هو بردو المودات اغلبيتها تحتاج جداول يعني هو لو يبي يصير مبرمج

لازم يفهم ولو شئ بسيط علي الجداول

مستواي في البرمجة 20%

Skype = mr_m.o.s.t.a.f.a

youtube = https://www.youtube.com/channel/UCEwOQx793Uxq5wazYDi-6mQ

Posted

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

قولي وش الفنكشنات كامله لا تنسى شي وكل واحد جمبه وش وظيفته

واكيد اخطائي راح تكون كثيره لانه ما اعرف له يعني راح تساعدوني ضض :D

 

 

 

 

Posted
راح احاول اسوي مود بقريد ليست يجيب اماكن ولما يحدد عليها ينقله

قولي وش الفنكشنات كامله لا تنسى شي وكل واحد جمبه وش وظيفته

واكيد اخطائي راح تكون كثيره لانه ما اعرف له يعني راح تساعدوني ضض :D

 table -- أنشاء جدول للأماكن 
addEventHandler('onClientGUIClick',root, -- حدث الضغط على الزر 
guiGridListGetSelectedItem -- يجيب الشي الي حددة 
guiGridListGetItemData -- يجيب داتا الي حددة 
guiGridListAddRow -- يسوي رو بالقريد ليست 
setElementPosition -- ينقله للمكان 
Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted
  
GUIEditor = { 
    gridlist = {}, 
    window = {}, 
    button = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(438, 249, 284, 337, "التنقل", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.gridlist[1] = guiCreateGridList(9, 30, 265, 234, false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "أسم المكان", 0.9) 
        for i = 1, 2 do 
            guiGridListAddRow(GUIEditor.gridlist[1]) 
        end 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "الجبل", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "المقر", false, false) 
        GUIEditor.button[1] = guiCreateButton(9, 300, 82, 27, "نقل", false, GUIEditor.window[1]) 
        GUIEditor.button[2] = guiCreateButton(192, 301, 82, 26, "أغلاق", false, GUIEditor.window[1])     
    end 
) 
  

سويت اللوحة الحين ذي تحتاج جدول؟؟

 

 

 

 

Posted

ليه لازم يسوي رو بالقريد ليست ما هو مسوية من اللوحة نفسها

+وش وظيفة يجيب داتا يلي حددة

+الشي الي حددة ممكن توضح

 

 

 

 

Posted
  
GUIEditor = { 
    gridlist = {}, 
    window = {}, 
    button = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(438, 249, 284, 337, "التنقل", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.gridlist[1] = guiCreateGridList(9, 30, 265, 234, false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "أسم المكان", 0.9) 
        for i = 1, 2 do 
            guiGridListAddRow(GUIEditor.gridlist[1]) 
        end 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "الجبل", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "المقر", false, false) 
        GUIEditor.button[1] = guiCreateButton(9, 300, 82, 27, "نقل", false, GUIEditor.window[1]) 
        GUIEditor.button[2] = guiCreateButton(192, 301, 82, 26, "أغلاق", false, GUIEditor.window[1])     
    end 
) 
  

سويت اللوحة الحين ذي تحتاج جدول؟؟

يمكن لا

76561198264399996.png

 

 

 

 

Posted

بتحتاج جدول طبعاً ^

شوف هذا الموضوع

https://forum.multitheftauto.com/viewtopic.php?f=160&t=97915

والي ما فهمت منه شي كلمني هنا

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted
لا ما فهمت بس بفهم مع التجارب بحاول اسوي واطرح هنا تشوفون الهريسة

يب يكون افضل بتتعلم

وانا قلت لك الي ما فهمته اطرحه هنا وانا اقولك وضيفته

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted

سترونج مو داخله راسي ممكن تسويه اللوحة حقتي ينقل لمكان معين دون تعقيد اشوف كيف ترتيب لانه مو عارف وش الحدث الي يحتاجون

 

 

 

 

Posted
سترونج مو داخله راسي ممكن تسويه اللوحة حقتي ينقل لمكان معين دون تعقيد اشوف كيف ترتيب لانه مو عارف وش الحدث الي يحتاجون

هات اكواد لوحتك

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted
ما سويت شي لانه مو عارف اصلن وين احط حق القريد ليست

شوف انت سوي لوحة

وسوي قريد ليست بداخل اللوحة عادي اي مكان

وسوي زر

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted (edited)

List = { -- سوينا جدول ! 
{"البداية -1",832.931640625, -4505.3212890625, 13.8719911575317}, 
{"آلدآئري -2",1797.1727294922, 842.46630859375, 10.6328125}, 
{"آلنخيل -3",2068.7211914063, 907.06707763672, 8.1701345443726}, 
{"آلطعوس -4",-2617.193359375, -2547.3530273438, 3}, 
{"آلغروب -5",662.55310058594, 1936.7479248047, 5.5052728652954}, 
{"الشارع الطويل -6",-2876.2788085938, -3004.4331054688, 12.39999961853}, 
{"البنك -7",596.37750244141, -1241.4223632813, 18.39999961853}, 
{"المطار الاول -8",1717.6470947266, -2494.1176757813, 13.39999961853}, 
{"المطار الثاني -9",-1223.4300537109, -185.74758911133, 14.39999961853}, 
{"المطار الثالث -10",1411.7646484375, 1482.3529052734, 10.89999961853}, 
} 
  
GUIEditor = { 
    gridlist = {}, 
    window = {}, 
    button = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
local screenW, screenH = guiGetScreenSize() 
        GUIEditor.window[1] = guiCreateWindow((screenW - 370) / 2, (screenH - 355) / 2, 370, 355, "x[ مود الانتقالات ]x", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") 
        guiSetVisible (GUIEditor.window[1], false ) 
        GUIEditor.gridlist[1] = guiCreateGridList(9, 18, 351, 273, false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "List : ", 0.9) 
        for i,mk in ipairs(List) do -- جبنا الي بالجدول 
        local row = guiGridListAddRow(GUIEditor.gridlist[1]) -- ضفنا رو للقريد ليست 
        guiGridListSetItemText(GUIEditor.gridlist[1],row,1,mk[1],false,false) -- يحط الشي الي اختاره من القريد ليست 
        guiGridListSetItemData(GUIEditor.gridlist[1],row,1,{mk[2],mk[3],mk[4]}) -- يحط داتا للشي الي اختاره من القريد ليست 
        guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) -- حطيت لون عشوائي للقريد ليست  
        GUIEditor.button[1] = guiCreateButton(121, 309, 112, 39, "x[ موافق ]x", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")     
        end      
    end 
) 
  
  
  
addEventHandler ("onClientGUIClick", getRootElement(), -- حدث الضغط 
function () 
        if source == GUIEditor.button[1] then -- الزر 
        local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) -- يجيب الي اختاره من القريد اليست 
        if sel ~= -1 then 
            local x,y,z = unpack(guiGridListGetItemData(GUIEditor.gridlist[1],sel,1)) -- يجيب الداتا الي اختارها من القريد ليست 
            outputChatBox("# Warped.",54, 151, 224) -- يظهر كلام بالشات 
            setElementPosition( localPlayer, x, y, z ) -- ينقله للمكان الي اختاره  
            end 
        end 
    end 
) 
      
function OpenWin() 
    if guiGetVisible (GUIEditor.window[1]) then    
       guiSetVisible (GUIEditor.window[1], false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible (GUIEditor.window[1], true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
bindKey("F4", "down", OpenWin) 
Edited by Guest
Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted

انا كانت بدايتي في الجريد ليست اكواد جاهزة ..

خذلك اكواد جاهزة وتعلم خطوة بخطوة

وحنا بنشرحلك

..

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted
انت معدل على اكواد اللوحة نفسها؟؟

كيف يعني ما فهمتك ؟

سويت لوحة وحطيت الإكواد

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted

هو ما عدل هو اضاف اكواد في اللوحةة ..

يعني تقول انه عدل ..

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

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