Jump to content

طلب ...


Recommended Posts

Posted

سلام عليكم

الحين انا مسوي لوب

جريد ليست اوك ؟

جريد ليست فيها اماكن

انا ابي ابحث داخل الجريد ليست بالايديت

طيب انا اعرف انه الفنكشنات المطلوبه

  
string.find 
  

وحاجة ثانيه مدري وش هي

بس تحذف الجريد ليست

المهم ابي انا مثال على

string.find

-- مع حذف الجريد لييست

مدري كيف بس ابي المثال

مشروحح شرحا لم يشرحه اهل المشروحين الشرج الادبي

المهم شرح فقط

مثاال

guicreatebutton --نعمل بوتن

كاتب بعض الاشياء غلط لاني مستعجل

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

قصدك الجريد ليست والايديت ؟ ^

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
  
-- لوب طويل بيعمل زحمة 
GUIEditor = { 
    gridlist = {}, 
    window = {}, 
    button = {}, 
    edit = {} 
} 
  
        GUIEditor.window[1] = guiCreateWindow(787, 319, 327, 495, "لوحةة انتقالات ~#", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.edit[1] = guiCreateEdit(29, 37, 242, 36, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(275, 38, 43, 35, "بحث", false, GUIEditor.window[1]) 
        GUIEditor.gridlist[1] = guiCreateGridList(35, 94, 240, 317, false, GUIEditor.window[1]) 
        col = guiGridListAddColumn(GUIEditor.gridlist[1], "الاماكن", 0.9) 
        GUIEditor.button[2] = guiCreateButton(56, 430, 193, 51, "انتقال | Warp", false, GUIEditor.window[1])  
  
for i,mk in ipairs(Plases) 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]}) 
end 
  
  

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
  
-- لوب طويل بيعمل زحمة 
GUIEditor = { 
    gridlist = {}, 
    window = {}, 
    button = {}, 
    edit = {} 
} 
  
        GUIEditor.window[1] = guiCreateWindow(787, 319, 327, 495, "لوحةة انتقالات ~#", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.edit[1] = guiCreateEdit(29, 37, 242, 36, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(275, 38, 43, 35, "بحث", false, GUIEditor.window[1]) 
        GUIEditor.gridlist[1] = guiCreateGridList(35, 94, 240, 317, false, GUIEditor.window[1]) 
        col = guiGridListAddColumn(GUIEditor.gridlist[1], "الاماكن", 0.9) 
        GUIEditor.button[2] = guiCreateButton(56, 430, 193, 51, "انتقال | Warp", false, GUIEditor.window[1])  
  
for i,mk in ipairs(Plases) 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]}) 
end 
  
  

  
-- لوب طويل بيعمل زحمة 
GUIEditor = { 
    gridlist = {}, 
    window = {}, 
    button = {}, 
    edit = {} 
} 
  
        GUIEditor.window[1] = guiCreateWindow(787, 319, 327, 495, "لوحةة انتقالات ~#", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.edit[1] = guiCreateEdit(29, 37, 242, 36, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(275, 38, 43, 35, "بحث", false, GUIEditor.window[1]) 
        GUIEditor.gridlist[1] = guiCreateGridList(35, 94, 240, 317, false, GUIEditor.window[1]) 
        col = guiGridListAddColumn(GUIEditor.gridlist[1], "الاماكن", 0.9) 
        GUIEditor.button[2] = guiCreateButton(56, 430, 193, 51, "انتقال | Warp", false, GUIEditor.window[1]) 
  
addEventHandler("onClientGUIChanged",GUIEditor.edit[1],function () 
guiGridListClear(GUIEditor.gridlist[1]) 
for k,v in ipairs(places) do 
if string.find(v[1],guiGetText(GUIEditor.edit[1] )) then 
local row = guiGridListAddRow(GUIEditor.gridlist[1]) 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false) 
guiGridListSetItemData(GUIEditor.gridlist[1],row,1,{v[2],v[3],v[4]}) 
end 
end 
end,false) 

جرب

بس ملاحظة انت مب ضايف اماكن ولا جدول حتي مشان ما اتقول ما في اشياء بالجريد ليست

وملاحظة اخري يجب ان يكون الجدول بي اسم

places

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

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

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

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

حط جدولك في اول الكود مع الاحداثيات و ان شاء الله هايشتغل معاك

GUIEditor = { 
    gridlist = {}, 
    window = {}, 
    button = {}, 
    edit = {} 
} 
local screenW, screenH = guiGetScreenSize() 
GUIEditor.window[1] = guiCreateWindow((screenW - 327) / 2, (screenH - 495) / 2, 327, 495, "لوحةة انتقالات ~#", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
  
GUIEditor.edit[1] = guiCreateEdit(17, 37, 242, 36, "", false, GUIEditor.window[1]) 
GUIEditor.button[1] = guiCreateButton(269, 37, 43, 35, "بحث", false, GUIEditor.window[1]) 
guiSetFont(GUIEditor.button[1], "default-bold-small") 
GUIEditor.gridlist[1] = guiCreateGridList(35, 94, 240, 317, false, GUIEditor.window[1]) 
guiSetFont(GUIEditor.gridlist[1], "default-bold-small") 
guiGridListAddColumn(GUIEditor.gridlist[1], "الاماكن", 0.9) 
GUIEditor.button[2] = guiCreateButton(56, 430, 193, 51, "انتقال | Warp", false, GUIEditor.window[1]) 
guiSetFont(GUIEditor.button[2], "default-bold-small") 
  
  
for i,mk in ipairs(Plases) 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]}) 
end 
  
  
  
 addEventHandler("onClientGUIClick",GUIEditor.button[1], 
function () 
local edit = guiGetText (GUIEditor.edit[1]) 
   if edit == "" then 
   guiGridListClear (GUIEditor.gridlist[1]) 
for i,mk in ipairs(Plases) 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]}) 
end 
else 
guiGridListClear (GUIEditor.gridlist[1]) 
for i,k in ipairs (Plases) do 
local placeName = k[1] 
if string.find (string.upper(placeName),string.upper(edit)) then 
local row = guiGridListAddRow (GUIEditor.gridlist[1]) 
guiGridListSetItemText (GUIEditor.gridlist[1],row,1,placeName,false,false) 
guiGridListSetItemData(GUIEditor.gridlist[1],row,1,{k[2],k[3],k[4]}) 
end 
end 
end 
end 
) 
Posted

اشرحلي وش فايدة

String.upper

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

شكراً

DTC12

كروس

كودك صارله بق

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

انا طلبت مثال وهو جابلي تقريباً تقول مثال

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