Jump to content

خطا في مود


Recommended Posts

السلام عليكم , شباب عندي خطاآ في مود انا سويتة بس كودات جبتها جاهزه

المهم ندخل صلب الموضوع..

المود من اركبة بالسيرفر واشغلة اكبس اف9 مو يخرج شي!!

اعرض لكم الكودات ؟

اوكك

GUIEditor = {

button = {},

window = {},

memo = {}

}

addEventHandler("onClientResourceStart", resourceRoot,

function()

GUIEditor.window[1] = guiCreateWindow(346, 179, 644, 447, "لوحة تجريبية", false)

guiWindowSetSizable(GUIEditor.window[1], false)

guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFA6B44A")

GUIEditor.button[1] = guiCreateButton(107, 162, 267, 116, "No thin", false, GUIEditor.window[1])

guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFD0722D")

GUIEditor.memo[1] = guiCreateMemo(346, 91, 28, 71, "dranemo", false, GUIEditor.window[1])

GUIEditor.memo[2] = guiCreateMemo(105, 92, 29, 70, "dranemo", false, GUIEditor.window[1])

end

)

guiSetVisible (اسم النافذة, false) لجعل النافذة ما تفتح اول ما تشغل المود

function OpenWin() لجعل النافذة تفتح بزر

if guiGetVisible ( اسم النافذة ) then

guiSetVisible ( اسم النافذة, false ) للتحقق ان النافذة تكون مغلقة

showCursor(false) مؤشر الموس غير موجود

guiSetInputEnabled(false)

else

guiSetVisible ( اسم النافذة, true ) يجعل النافذة تظهر ( موجودة)

showCursor(true) يجعل المؤثر يظهر

guiSetInputEnabled(true)

end الاند هذي من اجل الفنكشن

end الاند هذي من اجل ال اف

bindKey("F9", "down", OpenWin) هنا زر اللوحة

guiSetProperty(GUIEditor.button[1],"NormalTextColour", "FF00FF00") لجعل الزر يتلون بلون اخضر

وشو الخطا لاهنتو

Link to comment

القسم غلط

+

جرب

  
GUIEditor = { 
button = {}, 
window = {}, 
memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
GUIEditor.window[1] = guiCreateWindow(346, 179, 644, 447, "لوحة تجريبية", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetVisible (GUIEditor.window[1], false) 
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFA6B44A") 
  
GUIEditor.button[1] = guiCreateButton(107, 162, 267, 116, "No thin", false, GUIEditor.window[1]) 
guiSetProperty(GUIEditor.button[1],"NormalTextColour", "FF00FF00") 
  
GUIEditor.memo[1] = guiCreateMemo(346, 91, 28, 71, "dranemo", false, GUIEditor.window[1]) 
GUIEditor.memo[2] = guiCreateMemo(105, 92, 29, 70, "dranemo", false, GUIEditor.window[1])  
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("F9", "down", OpenWin) 
  
  
  
  
  

Link to comment

اولأ القسم خطأ

. للأكواد Lua ثانيا استخدم

GUIEditor = { 
  button = {  }, 
  window = {  }, 
  memo = {  } } 
   
addEventHandler( "onClientResourceStart", resourceRoot, function(   ) 
     GUIEditor.window[1] = guiCreateWindow(346, 179, 644, 447, "لوحة تجريبية", false) 
     guiWindowSetSizable(GUIEditor.window[1], false) 
     guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFA6B44A") 
     guiSetVisible ( GUIEditor.window[1], false ) 
     GUIEditor.button[1] = guiCreateButton(107, 162, 267, 116, "No thin", false, GUIEditor.window[1]) 
     guiSetProperty(GUIEditor.button[1],"NormalTextColour", "FF00FF00") 
     GUIEditor.memo[1] = guiCreateMemo(346, 91, 28, 71, "dranemo", false, GUIEditor.window[1]) 
     GUIEditor.memo[2] = guiCreateMemo(105, 92, 29, 70, "dranemo", false, GUIEditor.window[1])  
end ) 
  
bindKey ( "F9", "down", function (   ) 
    guiSetVisible ( GUIEditor.window[1], not guiGetVisible( GUIEditor.window[1] ) ) 
    showCursor( guiGetVisible( GUIEditor.window[1] ) )  
end )    
Link to comment
اولأ القسم خطأ

. للأكواد Lua ثانيا استخدم

GUIEditor = { 
  button = {  }, 
  window = {  }, 
  memo = {  } } 
   
addEventHandler( "onClientResourceStart", resourceRoot, function(   ) 
     GUIEditor.window[1] = guiCreateWindow(346, 179, 644, 447, "لوحة تجريبية", false) 
     guiWindowSetSizable(GUIEditor.window[1], false) 
     guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFA6B44A") 
     guiSetVisible ( GUIEditor.window[1], false ) 
     GUIEditor.button[1] = guiCreateButton(107, 162, 267, 116, "No thin", false, GUIEditor.window[1]) 
     guiSetProperty(GUIEditor.button[1],"NormalTextColour", "FF00FF00") 
     GUIEditor.memo[1] = guiCreateMemo(346, 91, 28, 71, "dranemo", false, GUIEditor.window[1]) 
     GUIEditor.memo[2] = guiCreateMemo(105, 92, 29, 70, "dranemo", false, GUIEditor.window[1])  
end ) 
  
bindKey ( "F9", "down", function (   ) 
    guiSetVisible ( GUIEditor.window[1], not guiGetVisible( GUIEditor.window[1] ) ) 
    showCursor( guiGetVisible( GUIEditor.window[1] ) )  
end )    

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

bindKey ( "F9", "down", function ( )

guiSetVisible ( GUIEditor.window[1], not guiGetVisible( GUIEditor.window[1] ) )

showCursor( guiGetVisible( GUIEditor.window[1] ) )

end )

لو استخدمة في مود تاني مثل ذا بس ذا تجريبي ينفع يشتغل ؟ وارجو ان يحذف الموضوع

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