Jump to content

===== طلب تصحيح كود =====


iPrestege

Recommended Posts

السلام عليكم ورحمة الله وبركاتة

اليوم خلصت من مود لوحة السباون التنقل :lol:

بس يوم جيت اضيف البنق والاسم طلع فية خطا واللوحة ماتفتح ؟

النافذة + واكواد البنق والاسم :

  
  
====== النافذة ====== 
GUIEditor_Window[1] = guiCreateWindow(288,150,262,437,"Spawn Panel By  >>»FAHAD..<<«",false) 
myLabel1 = guiCreateLabel  ( 3, 3, 3, 1, "Your Name:", true,GUIEditor_Window[1]) 
myLabel2 = guiCreateLabel  ( 3, 3, 5, 1, "Your Ping", true,GUIEditor_Window[1] ) 
GUIEditor_Button[1] = guiCreateButton(11,148,77,28,"النخيل",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(163,146,80,29,"الدائري",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(12,242,74,30,"الدخل",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(166,244,77,31,"الغروب",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(11,327,77,30,"ساحة القتال",false,GUIEditor_Window[1]) 
GUIEditor_Button[6] = guiCreateButton(165,326,80,28,"مهمة البنك",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(15,407,136,30,"By  »FAHAD..??«",false,GUIEditor_Window[1]) 
function refresh() 
guiSetText(myLabel1,Your Name ..getPlayerName) 
guiSetText(myLabel2,Your Ping ..getPlayerPing) 
end 
setTimer(refresh,500,0) 
  

اذا ماعليكم امر تصححون الكود :mrgreen:

والسلام عليككمم ورحمة الله وبركاتة ~ فهد

Link to comment

جرب كذا

ال يشغل ويطفي النافذه هو اف2

كلنت

GUIEditor_Window[1] = guiCreateWindow(288,150,262,437,"Spawn Panel By  >>»FAHAD..<<«",false) 
myLabel1 = guiCreateLabel  ( 3, 3, 3, 1, "Your Name:", true,GUIEditor_Window[1]) 
myLabel2 = guiCreateLabel  ( 3, 3, 5, 1, "Your Ping", true,GUIEditor_Window[1] ) 
GUIEditor_Button[1] = guiCreateButton(11,148,77,28,"النخيل",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(163,146,80,29,"الدائري",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(12,242,74,30,"الدخل",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(166,244,77,31,"الغروب",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(11,327,77,30,"ساحة القتال",false,GUIEditor_Window[1]) 
GUIEditor_Button[6] = guiCreateButton(165,326,80,28,"مهمة البنك",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(15,407,136,30,"By  »FAHAD..??«",false,GUIEditor_Window[1]) 
  
      function resourceStart () 
  bindKey ("F2", "down", menuShow) 
end 
addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) 
  
function menuShow () 
    visableornot = guiGetVisible (GUIEditor_Window[1]) 
    if (visableornot == true) then 
        guiSetVisible (GUIEditor_Window[1], false) 
        showCursor (false) 
    end 
    if (visableornot == false) then 
        guiSetVisible (GUIEditor_Window[1], true) 
        showCursor (true) 
    end 
 end 
  
function refresh() 
guiSetText(myLabel1,Your Name ..getPlayerName) 
guiSetText(myLabel2,Your Ping ..getPlayerPing) 
end 
setTimer(refresh,500,0) 
end 

==جرب الكود كمان مرا لاني نسيت شي==

Edited by Guest
Link to comment

--جرب

ولاتحط

======النافذه======

حط

---------النافذه-------

  
GUIEditor_Window[1] = guiCreateWindow(288,150,262,437,"Spawn Panel By  >>»FAHAD..<<«",false) 
myLabel1 = guiCreateLabel  ( 3, 3, 3, 1, "Your Name:", true,GUIEditor_Window[1]) 
myLabel2 = guiCreateLabel  ( 3, 3, 5, 1, "Your Ping", true,GUIEditor_Window[1] ) 
GUIEditor_Button[1] = guiCreateButton(11,148,77,28,"النخيل",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(163,146,80,29,"الدائري",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(12,242,74,30,"الدخل",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(166,244,77,31,"الغروب",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(11,327,77,30,"ساحة القتال",false,GUIEditor_Window[1]) 
GUIEditor_Button[6] = guiCreateButton(165,326,80,28,"مهمة البنك",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(15,407,136,30,"By  »FAHAD..??«",false,GUIEditor_Window[1]) 
-- 
addEventHandler("onClientRender", getRootElement(), 
function () 
if guiGetVisible(GUIEditor_Window[1]) then 
   guiSetText(myLabel1," "..getPlayerName(getLocalPlayer())) 
    end 
end ) 
-- 
function Ping() 
    local myPing = getPlayerPing(getLocalPlayer()) 
    guiSetText ( myLabel2, "Your Ping: ".. tostring(myPing) .."  " ) 
    guiSetText ( myLabel2, "Your Ping: ".. tostring(myPing) .."  " ) 
end 

Link to comment

جرب اشتغل معاي

%100

اما بالنسبه للبنق انت مو مضبط مكان الليبل

GUIEditor_Window = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
  
GUIEditor_Window[1] = guiCreateWindow(288,150,262,437,"Spawn Panel By  >>»FAHAD..<<«",false) 
GUIEditor_Label[1] = guiCreateLabel  ( 3, 3, 3, 1, "Your Name:", true,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel  ( 3, 3, 5, 1, "Your Ping", true,GUIEditor_Window[1] ) 
GUIEditor_Button[1] = guiCreateButton(11,148,77,28,"النخيل",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(163,146,80,29,"الدائري",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(12,242,74,30,"الدخل",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(166,244,77,31,"الغروب",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(11,327,77,30,"ساحة القتال",false,GUIEditor_Window[1]) 
GUIEditor_Button[6] = guiCreateButton(165,326,80,28,"مهمة البنك",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(15,407,136,30,"By  »FAHAD..??«",false,GUIEditor_Window[1]) 
  
      function resourceStart () 
  bindKey ("F2", "down", menuShow) 
end 
addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) 
  
function menuShow () 
    visableornot = guiGetVisible (GUIEditor_Window[1]) 
    if (visableornot == true) then 
        guiSetVisible (GUIEditor_Window[1], false) 
        showCursor (false) 
    end 
    if (visableornot == false) then 
        guiSetVisible (GUIEditor_Window[1], true) 
        showCursor (true) 
    end 
end 
  
addEventHandler("onClientRender", getRootElement(), 
function () 
if guiGetVisible(GUIEditor_Window[1]) then 
   guiSetText(GUIEditor_Label[1]," "..getPlayerName(getLocalPlayer())) 
    end 
end ) 
  
function Ping() 
    local myPing = getPlayerPing(getLocalPlayer()) 
    guiSetText ( GUIEditor_Label[2], "Your Ping: ".. tostring(myPing) .."  " ) 
end 

جرب هذا الكود كمان مرا

انا حدثته

Edited by Guest
Link to comment
GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
  
GUIEditor_Window[1] = guiCreateWindow(288,150,262,437,"Spawn Panel By  >>»FAHAD..<<«",false) 
myLabel1 = guiCreateLabel  ( 3, 3, 3, 1, "Your Name:", true,GUIEditor_Window[1]) 
myLabel2 = guiCreateLabel  ( 3, 3, 5, 1, "Your Ping", true,GUIEditor_Window[1] ) 
GUIEditor_Button[1] = guiCreateButton(11,148,77,28,"النخيل",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(163,146,80,29,"الدائري",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(12,242,74,30,"الدخل",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(166,244,77,31,"الغروب",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(11,327,77,30,"ساحة القتال",false,GUIEditor_Window[1]) 
GUIEditor_Button[6] = guiCreateButton(165,326,80,28,"مهمة البنك",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(15,407,136,30,"By  »FAHAD..??«",false,GUIEditor_Window[1]) 
-- 
addEventHandler("onClientRender", getRootElement(), 
function () 
if guiGetVisible(GUIEditor_Window[1]) then 
   guiSetText(myLabel1," "..getPlayerName(getLocalPlayer())) 
    end 
end ) 
-- 
function Ping() 
    local myPing = getPlayerPing(getLocalPlayer()) 
    guiSetText ( myLabel2, "Your Ping: ".. tostring(myPing) .."  " ) 
    guiSetText ( myLabel2, "Your Ping: ".. tostring(myPing) .."  " ) 
end 

Link to comment
والاسم طلع بس يعني بدون Your Name :/ بس نص الاسم :/

جرب

GUIEditor_Window = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
  
GUIEditor_Window[1] = guiCreateWindow(288,150,262,437,"Spawn Panel By  >>»FAHAD..<<«",false) 
GUIEditor_Label[1] = guiCreateLabel  ( 15,400,136,30, "Your Name:", true,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel  (15,400,136,30, "Your Ping", true,GUIEditor_Window[1] ) 
GUIEditor_Button[1] = guiCreateButton(11,148,77,28,"النخيل",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(163,146,80,29,"الدائري",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(12,242,74,30,"الدخل",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(166,244,77,31,"الغروب",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(11,327,77,30,"ساحة القتال",false,GUIEditor_Window[1]) 
GUIEditor_Button[6] = guiCreateButton(165,326,80,28,"مهمة البنك",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(15,407,136,30,"By  »FAHAD..??«",false,GUIEditor_Window[1]) 
  
      function resourceStart () 
  bindKey ("F2", "down", menuShow) 
end 
addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) 
  
function menuShow () 
    visableornot = guiGetVisible (GUIEditor_Window[1]) 
    if (visableornot == true) then 
        guiSetVisible (GUIEditor_Window[1], false) 
        showCursor (false) 
    end 
    if (visableornot == false) then 
        guiSetVisible (GUIEditor_Window[1], true) 
        showCursor (true) 
    end 
end 
  
addEventHandler("onClientRender", getRootElement(), 
function () 
if guiGetVisible(GUIEditor_Window[1]) then 
   guiSetText(GUIEditor_Label[1],"Your Name: "..getPlayerName(getLocalPlayer())) 
    end 
end ) 
  
function Ping() 
    local myPing = getPlayerPing(getLocalPlayer()) 
    guiSetText ( GUIEditor_Label[2], "Your Ping: ".. tostring(myPing) .."  " ) 
end 

Link to comment

بآلآنتظار والاسم مآيظهر كآمل وظآهر تحت ! مدري ليةة !! بآنتظآر تآبل ولا عآشقق ~ :/

الكود :

GUIEditor_Window = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
  
GUIEditor_Window[1] = guiCreateWindow(288,150,262,437,"Spawn Panel By  >>»FAHAD..<<«",false) 
GUIEditor_Label[1] = guiCreateLabel  ( 15,400,136,30, "Your Name:", true,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel  (15,400,136,30, "Your Ping", true,GUIEditor_Window[1] ) 
GUIEditor_Button[1] = guiCreateButton(11,148,77,28,"النخيل",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(163,146,80,29,"الدائري",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(12,242,74,30,"الدخل",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(166,244,77,31,"الغروب",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(11,327,77,30,"ساحة القتال",false,GUIEditor_Window[1]) 
GUIEditor_Button[6] = guiCreateButton(165,326,80,28,"مهمة البنك",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(15,407,136,30,"By  »FAHAD..«",false,GUIEditor_Window[1]) 
  
      function resourceStart () 
  bindKey ("F2", "down", menuShow) 
end 
addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) 
  
function menuShow () 
    visableornot = guiGetVisible (GUIEditor_Window[1]) 
    if (visableornot == true) then 
        guiSetVisible (GUIEditor_Window[1], false) 
        showCursor (false) 
    end 
    if (visableornot == false) then 
        guiSetVisible (GUIEditor_Window[1], true) 
        showCursor (true) 
    end 
end 
  
addEventHandler("onClientRender", getRootElement(), 
function () 
if guiGetVisible(GUIEditor_Window[1]) then 
   guiSetText(GUIEditor_Label[1],"Your Name: "..getPlayerName(getLocalPlayer())) 
    end 
end ) 
  
function Ping() 
    local myPing = getPlayerPing(getLocalPlayer()) 
    guiSetText ( GUIEditor_Label[2], "Your Ping: ".. tostring(myPing) .."  " ) 
end 
  

Link to comment

الحين جرب

الاسم يظهر كامل ؟؟

GUIEditor_Window = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
  
GUIEditor_Window[1] = guiCreateWindow(288,150,262,437,"Spawn Panel By  >>»FAHAD..<<«",false) 
GUIEditor_Label[1] = guiCreateLabel  ( 15,400,410,30, "Your Name:", false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel  (3, 3, 5, 1, "Your Ping:", false,GUIEditor_Window[1] ) 
GUIEditor_Button[1] = guiCreateButton(11,148,77,28,"النخيل",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(163,146,80,29,"الدائري",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(12,242,74,30,"الدخل",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(166,244,77,31,"الغروب",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(11,327,77,30,"ساحة القتال",false,GUIEditor_Window[1]) 
GUIEditor_Button[6] = guiCreateButton(165,326,80,28,"مهمة البنك",false,GUIEditor_Window[1]) 
  
      function resourceStart () 
  bindKey ("F2", "down", menuShow) 
end 
addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) 
  
function menuShow () 
    visableornot = guiGetVisible (GUIEditor_Window[1]) 
    if (visableornot == true) then 
        guiSetVisible (GUIEditor_Window[1], false) 
        showCursor (false) 
    end 
    if (visableornot == false) then 
        guiSetVisible (GUIEditor_Window[1], true) 
        showCursor (true) 
    end 
end 
  
addEventHandler("onClientRender", getRootElement(), 
function () 
if guiGetVisible(GUIEditor_Window[1]) then 
   guiSetText(GUIEditor_Label[1],"Your Name: "..getPlayerName(getLocalPlayer())) 
    end 
end ) 
  
function Ping() 
    local myPing = getPlayerPing(getLocalPlayer()) 
    guiSetText ( GUIEditor_Label[2], "Your Ping: ".. tostring(myPing) "  " ) 
end 

Link to comment
تمام يسلمو بس يظهر تحت اخر النافذة !! تقدر تشوف الحل ؟

والبنق مايظهر ؟

اما بالنسبه للبنق انا جربت 1000 طريقة مش ظابته

GUIEditor_Window = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
  
GUIEditor_Window[1] = guiCreateWindow(288,150,262,437,"Spawn Panel By  >>»FAHAD..<<«",false) 
GUIEditor_Label[1] = guiCreateLabel  ( 30,30, 400, 20, "Your Name: ", false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel  (30,50, 400, 20, "Your Ping: ", false,GUIEditor_Window[1] ) 
GUIEditor_Button[1] = guiCreateButton(11,148,77,28,"النخيل",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(163,146,80,29,"الدائري",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(12,242,74,30,"الدخل",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(166,244,77,31,"الغروب",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(11,327,77,30,"ساحة القتال",false,GUIEditor_Window[1]) 
GUIEditor_Button[6] = guiCreateButton(165,326,80,28,"مهمة البنك",false,GUIEditor_Window[1]) 
  
      function resourceStart () 
  bindKey ("F2", "down", menuShow) 
end 
addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) 
  
function menuShow () 
    visableornot = guiGetVisible (GUIEditor_Window[1]) 
    if (visableornot == true) then 
        guiSetVisible (GUIEditor_Window[1], false) 
        showCursor (false) 
    end 
    if (visableornot == false) then 
        guiSetVisible (GUIEditor_Window[1], true) 
        showCursor (true) 
    end 
end 
  
addEventHandler("onClientRender", getRootElement(), 
function () 
if guiGetVisible(GUIEditor_Window[1]) then 
   guiSetText(GUIEditor_Label[1],"Your Name: "..getPlayerName(getLocalPlayer())) 
    end 
end ) 
  
  
function ping1() 
    local ping = getPlayerPing(getLocalPlayer()) 
      guiSetText (GUIEditor_Label[2],"Your Ping: "..tostring(ping1).."  " ) 
end 

Link to comment

جرب

شوف البنق يظهر ؟؟

كلنت

GUIEditor_Window = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
  
GUIEditor_Window[1] = guiCreateWindow(288,150,262,437,"Spawn Panel By  >>»FAHAD..<<«",false) 
GUIEditor_Label[1] = guiCreateLabel  ( 30,30, 400, 20, "Your Name: ", false,GUIEditor_Window[1]) 
GUIEditor_Label[2] = guiCreateLabel  (30,50, 400, 20, "Your Ping: ", false,GUIEditor_Window[1] ) 
GUIEditor_Button[1] = guiCreateButton(11,148,77,28,"النخيل",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(163,146,80,29,"الدائري",false,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(12,242,74,30,"الدخل",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(166,244,77,31,"الغروب",false,GUIEditor_Window[1]) 
GUIEditor_Button[5] = guiCreateButton(11,327,77,30,"ساحة القتال",false,GUIEditor_Window[1]) 
GUIEditor_Button[6] = guiCreateButton(165,326,80,28,"مهمة البنك",false,GUIEditor_Window[1]) 
  
      function resourceStart () 
  bindKey ("F2", "down", menuShow) 
end 
addEventHandler ("onClientResourceStart", getResourceRootElement ( getThisResource () ), resourceStart) 
  
function menuShow () 
    visableornot = guiGetVisible (GUIEditor_Window[1]) 
    if (visableornot == true) then 
        guiSetVisible (GUIEditor_Window[1], false) 
        showCursor (false) 
    end 
    if (visableornot == false) then 
        guiSetVisible (GUIEditor_Window[1], true) 
        showCursor (true) 
    end 
end 
  
addEventHandler("onClientRender", getRootElement(), 
function () 
if guiGetVisible(GUIEditor_Window[1]) then 
   guiSetText(GUIEditor_Label[1],"Your Name: "..getPlayerName(getLocalPlayer())) 
    end 
end ) 
  
----- 
  
addEventHandler("onClientRender",root, 
function() 
    triggerServerEvent("getIP",localPlayer) 
end) 
  
addEvent("dd",true) 
addEventHandler("dd",root, 
function(theIP) 
    guiSetText(GUIEditor_Label[2], "Your IP : " .. theIP) 
end) 

سيرفر

addEvent("getIP",true) 
addEventHandler("getIP",root, 
function() 
    local theIP=getPlayerIP(client) 
        triggerClientEvent(client,"dd",client,theIP) 
end) 

Link to comment
تسلم يالغالي البنق حلها عناد عندك كود تلوين البل + الزر ؟

يتلوين الليبل

طبعا غيير الارقام حسب اللون الي تبيه

guiLabelSetColor(GUIEditor_Label[1],255,255,0) 

اما الازرار ما اعرف

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