Jump to content

تعالو علموني


MR:SADIQ

Recommended Posts

ابغي اخلي الزرين كلواحد ينقل لمكن ممكن تعدلوه

GUIEditor = { 
    memo = {}, 
    button = {}, 
    label = {}, 
    window = {}, 
} 
local screenW, screenH = guiGetScreenSize() 
GUIEditor.window[1] = guiCreateWindow(122, 122, 433, 288, "TIME By sadiq v.1", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
  
GUIEditor.label[1] = guiCreateLabel(51, 38, 79, 91, "", false, GUIEditor.window[1]) 
GUIEditor.button[1] = guiCreateButton(43, 39, 98, 104, "", false, GUIEditor.window[1]) 
GUIEditor.button[2] = guiCreateButton(43, 39, 98, 104, "", false, GUIEditor.window[1]) 
GUIEditor.button[3] = guiCreateButton(184, 40, 97, 99, "", false, GUIEditor.window[1]) 
GUIEditor.label[2] = guiCreateLabel(33, 238, 144, 47, "", false, GUIEditor.window[1]) 
  
GUIEditor.label[3] = guiCreateLabel(0, -23, 168, 85, "", false, GUIEditor.label[2]) 
  
GUIEditor.memo[1] = guiCreateMemo(39, 220, 124, 59, "", false, GUIEditor.window[1]) 

هذي صورة للي سويته

d3kyx.png

:mrgreen:

Link to comment

أتوقع كذا

  
GUIEditor = { 
    memo = {}, 
    button = {}, 
    label = {}, 
    window = {}, 
} 
local screenW, screenH = guiGetScreenSize() 
GUIEditor.window[1] = guiCreateWindow(122, 122, 433, 288, "TIME By sadiq v.1", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
  
GUIEditor.label[1] = guiCreateLabel(51, 38, 79, 91, "", false, GUIEditor.window[1]) 
GUIEditor.button[1] = guiCreateButton(43, 39, 98, 104, "", false, GUIEditor.window[1]) 
GUIEditor.button[2] = guiCreateButton(43, 39, 98, 104, "", false, GUIEditor.window[1]) 
GUIEditor.button[3] = guiCreateButton(184, 40, 97, 99, "", false, GUIEditor.window[1]) 
GUIEditor.label[2] = guiCreateLabel(33, 238, 144, 47, "", false, GUIEditor.window[1]) 
  
GUIEditor.label[3] = guiCreateLabel(0, -23, 168, 85, "", false, GUIEditor.label[2]) 
  
GUIEditor.memo[1] = guiCreateMemo(39, 220, 124, 59, "", false, GUIEditor.window[1]) 
  
addEventHandler( "onClintGUIClick", root 
    function Plaece1 ( )  
        if ( source == GUIEditor.button[1] ) then 
            setElementPosition( source, X, Y, Z ) 
        elseif ( source == GUIEditor.button[2] ) then 
            setElementPosition( source, X, Y, Z ) 
        end 
    end 
) 
  

والله أعلمـ

Link to comment

أتوقع كذا

  
GUIEditor = { 
    memo = {}, 
    button = {}, 
    label = {}, 
    window = {}, 
} 
local screenW, screenH = guiGetScreenSize() 
GUIEditor.window[1] = guiCreateWindow(122, 122, 433, 288, "TIME By sadiq v.1", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
  
GUIEditor.label[1] = guiCreateLabel(51, 38, 79, 91, "", false, GUIEditor.window[1]) 
GUIEditor.button[1] = guiCreateButton(43, 39, 98, 104, "", false, GUIEditor.window[1]) 
GUIEditor.button[2] = guiCreateButton(43, 39, 98, 104, "", false, GUIEditor.window[1]) 
GUIEditor.button[3] = guiCreateButton(184, 40, 97, 99, "", false, GUIEditor.window[1]) 
GUIEditor.label[2] = guiCreateLabel(33, 238, 144, 47, "", false, GUIEditor.window[1]) 
  
GUIEditor.label[3] = guiCreateLabel(0, -23, 168, 85, "", false, GUIEditor.label[2]) 
  
GUIEditor.memo[1] = guiCreateMemo(39, 220, 124, 59, "", false, GUIEditor.window[1]) 
  
addEventHandler( "onClintGUIClick", root 
    function Plaece1 ( )  
        if ( source == GUIEditor.button[1] ) then 
            setElementPosition( source, X, Y, Z ) 
        elseif ( source == GUIEditor.button[2] ) then 
            setElementPosition( source, X, Y, Z ) 
        end 
    end 
) 
  

والله أعلمـ

================ أخطاء #

1 - أسم الإيفنت

2 - المفروض تكون الوظيفة بدون إسم

3 - Source == The source of this event is the GUI element that was clicked.

اللي انضغط Gui يعني ان عنصر الإيفنت هذا هو الـ

إستخدم

getLocalPlayer 

Link to comment

addEventHandler( "onClientGUIClick", root , 
    function ()  
        if ( source == GUIEditor.button[1] ) then 
            setElementPosition( localPlayer, x,y,z ) 
        elseif ( source == GUIEditor.button[2] ) then 
            setElementPosition( localPlayer, x,y,z ) 
        elseif ( source == GUIEditor.button[3] ) then 
            setElementPosition( localPlayer, x,y,z ) 
        end 
    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...