Jump to content

شباب


Recommended Posts

السلام عليكم

شو المشكله شباب

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

ERROR:zezz/s.lua.15:attempt to call global 'adaEventHandler' (a nill value )

طلع لي بل دي بق

الاكواد

كلنت

  
GUIEditor = { 
    button = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        warpcj = guiCreateButton(483, 514, 200, 84, "", false) 
        guiSetAlpha(warpcj, 0.00) 
  
  
        warparmy = guiCreateButton(797, 514, 200, 84, "", false) 
        guiSetAlpha(warparmy, 0.00)     
    end 
) 
  
local sx,sy = guiGetScreenSize()  
    function Dx() 
        dxDrawRectangle(0, 411, 232, 35, tocolor(0, 0, 0, 180), false) 
        dxDrawLine(1039, 179 - 1, 439 - 1, 179 - 1, tocolor(0, 0, 0, 255), 1, false) 
        dxDrawLine(439 - 1, 612, 1039, 612, tocolor(0, 0, 0, 255), 1, false) 
        dxDrawLine(1039, 612, 1039, 179 - 1, tocolor(0, 0, 0, 255), 1, false) 
        dxDrawRectangle(439, 179, 600, 433, tocolor(24, 13, 169, 135), false) 
        dxDrawText("اختر المكان الذي تريد الانتقال الية ", 437 - 1, 179 - 1, 1039 - 1, 221 - 1, tocolor(0, 0, 0, 255), 2.50, "default-bold", "center", "center", true, true, false, true, false) 
        dxDrawText("اختر المكان الذي تريد الانتقال الية ", 437 + 1, 179 - 1, 1039 + 1, 221 - 1, tocolor(0, 0, 0, 255), 2.50, "default-bold", "center", "center", true, true, false, true, false) 
        dxDrawText("اختر المكان الذي تريد الانتقال الية ", 437 - 1, 179 + 1, 1039 - 1, 221 + 1, tocolor(0, 0, 0, 255), 2.50, "default-bold", "center", "center", true, true, false, true, false) 
        dxDrawText("اختر المكان الذي تريد الانتقال الية ", 437 + 1, 179 + 1, 1039 + 1, 221 + 1, tocolor(0, 0, 0, 255), 2.50, "default-bold", "center", "center", true, true, false, true, false) 
        dxDrawText("اختر المكان الذي تريد الانتقال الية ", 437, 179, 1039, 221, tocolor(17, 236, 166, 135), 2.50, "default-bold", "center", "center", true, true, false, true, false) 
        dxDrawLine(436, 230, 1039, 230, tocolor(177, 6, 6, 135), 5, false) 
        dxDrawText(" _ _ For Player _ _", 509 - 1, 239 - 1, 973 - 1, 269 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "center", false, false, false, true, false) 
        dxDrawText(" _ _ For Player _ _", 509 + 1, 239 - 1, 973 + 1, 269 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "center", false, false, false, true, false) 
        dxDrawText(" _ _ For Player _ _", 509 - 1, 239 + 1, 973 - 1, 269 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "center", false, false, false, true, false) 
        dxDrawText(" _ _ For Player _ _", 509 + 1, 239 + 1, 973 + 1, 269 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "center", false, false, false, true, false) 
        dxDrawText(" _ _ For Player _ _", 509, 239, 973, 269, tocolor(24, 13, 169, 135), 2.00, "default-bold", "center", "center", false, false, false, true, false) 
        dxDrawImage(464, 306, 252, 193, ":guieditor/images/examples/10.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawImage(777, 305, 238, 195, ":guieditor/images/examples/11.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawLine(480 - 1, 515 - 1, 480 - 1, 598, tocolor(0, 0, 0, 255), 1, false) 
        dxDrawLine(683, 515 - 1, 480 - 1, 515 - 1, tocolor(0, 0, 0, 255), 1, false) 
        dxDrawLine(480 - 1, 598, 683, 598, tocolor(0, 0, 0, 255), 1, false) 
        dxDrawLine(683, 598, 683, 515 - 1, tocolor(0, 0, 0, 255), 1, false) 
        dxDrawRectangle(480, 515, 203, 83, tocolor(90, 163, 18, 255), false) 
        dxDrawLine(797 - 1, 515 - 1, 797 - 1, 598, tocolor(0, 0, 0, 255), 1, false) 
        dxDrawLine(1000, 515 - 1, 797 - 1, 515 - 1, tocolor(0, 0, 0, 255), 1, false) 
        dxDrawLine(797 - 1, 598, 1000, 598, tocolor(0, 0, 0, 255), 1, false) 
        dxDrawLine(1000, 598, 1000, 515 - 1, tocolor(0, 0, 0, 255), 1, false) 
        dxDrawRectangle(797, 515, 203, 83, tocolor(215, 240, 4, 255), false) 
        dxDrawText("Warp", 478 - 1, 514 - 1, 683 - 1, 598 - 1, tocolor(0, 0, 0, 255), 3.00, "default-bold", "center", "center", false, false, false, true, false) 
        dxDrawText("Warp", 478 + 1, 514 - 1, 683 + 1, 598 - 1, tocolor(0, 0, 0, 255), 3.00, "default-bold", "center", "center", false, false, false, true, false) 
        dxDrawText("Warp", 478 - 1, 514 + 1, 683 - 1, 598 + 1, tocolor(0, 0, 0, 255), 3.00, "default-bold", "center", "center", false, false, false, true, false) 
        dxDrawText("Warp", 478 + 1, 514 + 1, 683 + 1, 598 + 1, tocolor(0, 0, 0, 255), 3.00, "default-bold", "center", "center", false, false, false, true, false) 
        dxDrawText("Warp", 478, 514, 683, 598, tocolor(225, 18, 18, 255), 3.00, "default-bold", "center", "center", false, false, false, true, false) 
        dxDrawText("Warp", 795, 514, 1000, 598, tocolor(73, 22, 220, 255), 3.00, "default-bold", "center", "center", false, false, false, true, false) 
    end 
---------------------------------------------- 
addEventHandler ( "onClientGUIClick", root, 
function (  ) 
  if source == warpcj then 
   triggerServerEvent("warpcj",getLocalPlayer()) 
        end 
  end 
) 
---------- 
addEventHandler ( "onClientGUIClick", root, 
function (  ) 
  if source == warparmy then 
   triggerServerEvent("warparmy",getLocalPlayer()) 
        end 
  end 
) 
-------------- 
addEvent("open1", true) 
addEventHandler("open1", root, 
function (  ) 
if removeEventHandler("onClientRender",root,Dx)  then   
removeEventHandler("onClientRender",root,Dx) --- removeEventHandler يستخدم لاخفاء الدى اكس  
guiSetVisible(warparmy,false) 
guiSetVisible(warpcj,false) 
showCursor(false)  
end 
end) 
-------------- 
addEvent("open12", true) 
addEventHandler("open2", root, 
function (  ) 
if removeEventHandler("onClientRender",root,Dx)  then   
removeEventHandler("onClientRender",root,Dx) --- removeEventHandler يستخدم لاخفاء الدى اكس  
guiSetVisible(warparmy,false) 
guiSetVisible(warpcj,false) 
showCursor(false)  
end 
end) 
----------------------- 
addEventHandler ( "onClientGUIClick", root, 
function (  ) 
triggerServerEvent("onPlayerLogin",getLocalPlayer()) 
end 
) 
---------------------- 
addEvent("open3", true) 
addEventHandler("open3", root, 
function ()  
if removeEventHandler("onClientRender",root,Dx)  then   
removeEventHandler("onClientRender",root,Dx) --- removeEventHandler يستخدم لاخفاء الدى اكس  
guiSetVisible(healt,false) 
guiSetVisible(armor,false) 
showCursor(false)   
else  
addEventHandler("onClientRender",root,Dx) --- addEventHandler يستخدم لاظهار الدى اكس  
guiSetVisible(healt,true) 
guiSetVisible(armor,true) 
showCursor(true)  
end  
end)  

سيرفر

addEvent("warpcj", true) 
addEventHandler("warpcj", root, 
function (  ) 
spawnPlayer (source , 2044.44934, 1558.27783, 10.67188) 
triggerClientEvent(client,"open1",client) 
end) 
-------------------------- 
addEvent("warparmy", true) 
addEventHandler("warparmy", root, 
function (  ) 
spawnPlayer (source , 2045.67749, 1553.62354, 10.67188) 
triggerClientEvent(client,"open2",client) 
end) 
-------------------------- 
adEventHandler("onPlayerLogin", root, 
  function() 
    triggerClientEvent(client,"open3",client) 
  end 
) 

Link to comment
addEvent("warpcj", true) 
addEventHandler("warpcj", root, 
function (  ) 
spawnPlayer (source , 2044.44934, 1558.27783, 10.67188) 
triggerClientEvent(client,"open1",client) 
end) 
-------------------------- 
addEvent("warparmy", true) 
addEventHandler("warparmy", root, 
function (  ) 
spawnPlayer (source , 2045.67749, 1553.62354, 10.67188) 
triggerClientEvent(client,"open2",client) 
end) 
-------------------------- 
addEventHandler("onPlayerLogin", root, 
  function() 
    triggerClientEvent(client,"open3",client) 
  end 
) 

Link to comment
addEvent("warpcj", true) 
addEventHandler("warpcj", root, 
function (  ) 
spawnPlayer (source , 2044.44934, 1558.27783, 10.67188) 
triggerClientEvent(client,"open1",client) 
end) 
-------------------------- 
addEvent("warparmy", true) 
addEventHandler("warparmy", root, 
function (  ) 
spawnPlayer (source , 2045.67749, 1553.62354, 10.67188) 
triggerClientEvent(client,"open2",client) 
end) 
-------------------------- 
addEventHandler("onPlayerLogin", root, 
  function() 
    triggerClientEvent(client,"open3",client) 
  end 
) 

ليه ترسله الكود كامل ض

هو ناقصه حرف d فقط

شوف ردي فوق

Link to comment
addEvent("warpcj", true) 
addEventHandler("warpcj", root, 
function (  ) 
spawnPlayer (source , 2044.44934, 1558.27783, 10.67188) 
triggerClientEvent(client,"open1",client) 
end) 
-------------------------- 
addEvent("warparmy", true) 
addEventHandler("warparmy", root, 
function (  ) 
spawnPlayer (source , 2045.67749, 1553.62354, 10.67188) 
triggerClientEvent(client,"open2",client) 
end) 
-------------------------- 
addEventHandler("onPlayerLogin", root, 
  function() 
    triggerClientEvent(client,"open3",client) 
  end 
) 

ليه ترسله الكود كامل ض

هو ناقصه حرف d فقط

شوف ردي فوق

ضفت اما الوحه ما تشتغل شو المشكله بس اسجل دخولي الوحه ما تشتغل

Link to comment

سيرفر

addEvent("warpcj", true) 
addEventHandler("warpcj", root, 
function (  ) 
spawnPlayer (source , 2044.44934, 1558.27783, 10.67188) 
triggerClientEvent(client,"open1",client) 
end) 
-------------------------- 
addEvent("warparmy", true) 
addEventHandler("warparmy", root, 
function (  ) 
spawnPlayer (source , 2045.67749, 1553.62354, 10.67188) 
triggerClientEvent(client,"open2",client) 
end) 
-------------------------- 
addEventHandler("onPlayerLogin", root, 
function() 
    triggerClientEvent(source,"open3",source) 
end ) 

في حدث تسجيل الدخول لازم سورس مو كلنت client المشكله كانت انكم حاطين

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