Jump to content

شكراا شباب


Recommended Posts

وش رايك تحط كل اسماء المبرمجين , على مشكلة بسيطةة . @

اول سسطر عندكـ بدل ويندو نيم لـ اسم النافذة حقكـ #

وثأني سطر بدل الاف 2 بألزر اللي تبيه , ولأ تغير اي شي ثاني #

local Window = Window Name 
local Key = "F2" 
guiSetVisible(Window,false) 
  
bindKey(Key,"Down",function() 
    if ( guiGetVisible(Window) == true ) then 
        guiSetVisible(Window,false) 
        showCursor(false) 
    else 
        guiSetVisible(Window,true) 
        showCursor(true) 
    end 
end) 
  
Link to comment
وش رايك تحط كل اسماء المبرمجين , على مشكلة بسيطةة . @

اول سسطر عندكـ بدل ويندو نيم لـ اسم النافذة حقكـ #

وثأني سطر بدل الاف 2 بألزر اللي تبيه , ولأ تغير اي شي ثاني #

local Window = Window Name 
local Key = "F2" 
guiSetVisible(Window,false) 
  
bindKey(Key,"Down",function() 
    if ( guiGetVisible(Window) == true ) then 
        guiSetVisible(Window,false) 
        showCursor(false) 
    else 
        guiSetVisible(Window,true) 
        showCursor(true) 
    end 
end) 
  

للاسف مااستغل اعطاني خطاااا

Link to comment

اخوي مااشتغل اعطاني خطأأأ

ERROR: gv\c.lua:69: attempt to call global 'guiSetVisible' (a nil value)

------------ ------------- --------- 
  
GUIEditor = { 
    label = {}, 
    edit = {}, 
    button = {}, 
    window = {}, 
    gridlist = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(114, 56, 613, 413, "Xx|هجولة |Xx", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 0.90) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0BFD00") 
  
        GUIEditor.button[1] = guiCreateButton(435, 79, 156, 50, "هلا", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") 
        GUIEditor.button[2] = guiCreateButton(435, 292, 156, 50, "اهلين", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[2], "default-bold-small") 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFE0000") 
        GUIEditor.button[3] = guiCreateButton(435, 227, 156, 50, "عساك بخير", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[3], "default-bold-small") 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFE0000") 
        GUIEditor.button[4] = guiCreateButton(435, 158, 156, 50, "بخير ", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[4], "default-bold-small") 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFE0000") 
        GUIEditor.gridlist[1] = guiCreateGridList(0.01, 0.06, 0.69, 0.92, true, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "اسم اللاعب", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "اعاملهه", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "نشاطهه", 0.3) 
        guiGridListAddRow(GUIEditor.gridlist[1]) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "FOX", false, false) 
        guiGridListSetItemColor(GUIEditor.gridlist[1], 0, 1, 253, 0, 0, 255) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "2014", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 3, "0", false, false) 
  
        GUIEditor.edit[1] = guiCreateEdit(425, 330, 15, 15, "", false, GUIEditor.gridlist[1]) 
        GUIEditor.memo[1] = guiCreateMemo(420, 320, 256, 49, "", false, GUIEditor.gridlist[1]) 
        GUIEditor.button[5] = guiCreateButton(595, 346, 15, 23, "", false, GUIEditor.gridlist[1]) 
  
        GUIEditor.label[1] = guiCreateLabel(436, 351, 155, 52, "BY FOX", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "sa-header") 
        guiLabelSetColor(GUIEditor.label[1], 101, 0, 254) 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) 
        GUIEditor.button[6] = guiCreateButton(501, 21, 100, 30, "X اغلاق", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[6], "default-bold-small") 
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF4F704")     
    end 
) 
---------------- -----------------------  -------------------- 
addEventHandler ( "onClientGUIClick", getRootElement() , 
function () 
if source == GUIEditor.button[6] then 
   guiSetVisible(GUIEditor.window[1],false) 
   showCursor (false) 
end 
 end 
)   
  
local Window = GUIEditor.window[1] 
local Key = "F2" 
guiSetVisible(Window,false) 
  
bindKey(Key,"Down",function() 
    if ( guiGetVisible(Window) == true ) then 
        guiSetVisible(Window,false) 
        showCursor(false) 
    else 
        guiSetVisible(Window,true) 
        showCursor(true) 
    end 
end) 
  

Link to comment

غريبة , على اية حال , جرب ذا

سطر 62 بدال الـ اف 2 للزر اللي تبيه

------------ ------------- ---------

GUIEditor = { 
    label = {}, 
    edit = {}, 
    button = {}, 
    window = {}, 
    gridlist = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(114, 56, 613, 413, "Xx|هجولة |Xx", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 0.90) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0BFD00") 
        guiSetVisible(GUIEditor.window[1], false) 
        GUIEditor.button[1] = guiCreateButton(435, 79, 156, 50, "هلا", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") 
        GUIEditor.button[2] = guiCreateButton(435, 292, 156, 50, "اهلين", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[2], "default-bold-small") 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFE0000") 
        GUIEditor.button[3] = guiCreateButton(435, 227, 156, 50, "عساك بخير", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[3], "default-bold-small") 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFE0000") 
        GUIEditor.button[4] = guiCreateButton(435, 158, 156, 50, "بخير ", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[4], "default-bold-small") 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFE0000") 
        GUIEditor.gridlist[1] = guiCreateGridList(0.01, 0.06, 0.69, 0.92, true, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "اسم اللاعب", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "اعاملهه", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "نشاطهه", 0.3) 
        guiGridListAddRow(GUIEditor.gridlist[1]) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "FOX", false, false) 
        guiGridListSetItemColor(GUIEditor.gridlist[1], 0, 1, 253, 0, 0, 255) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "2014", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 3, "0", false, false) 
  
        GUIEditor.edit[1] = guiCreateEdit(425, 330, 15, 15, "", false, GUIEditor.gridlist[1]) 
        GUIEditor.memo[1] = guiCreateMemo(420, 320, 256, 49, "", false, GUIEditor.gridlist[1]) 
        GUIEditor.button[5] = guiCreateButton(595, 346, 15, 23, "", false, GUIEditor.gridlist[1]) 
  
        GUIEditor.label[1] = guiCreateLabel(436, 351, 155, 52, "BY FOX", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "sa-header") 
        guiLabelSetColor(GUIEditor.label[1], 101, 0, 254) 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) 
        GUIEditor.button[6] = guiCreateButton(501, 21, 100, 30, "X اغلاق", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[6], "default-bold-small") 
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF4F704")     
    end 
) 
---------------- -----------------------  -------------------- 
addEventHandler ( "onClientGUIClick", getRootElement() , 
function () 
if source == GUIEditor.button[6] then 
   guiSetVisible(GUIEditor.window[1],false) 
   showCursor (false) 
end 
 end 
)   
  
  
bindKey("F2","Down",function() 
    if ( guiGetVisible(GUIEditor.window[1]) == true ) then 
        guiSetVisible(GUIEditor.window[1],false) 
        showCursor(false) 
    else 
        guiSetVisible(GUIEditor.window[1],true) 
        showCursor(true) 
    end 
end) 

Link to comment
اخوي نفس المشكلة

ERROR: gv\c.lua:69: attempt to call global 'guiSetVisible' (a nil value)

طيب اخوي زحف عندكــ طريقة ثانية مثل الماركر او من اف8

# ولله ما ادري وش سبب المشكلة غريبة , لأزم اجرب بـ نفسي

يب في , لو تبغى بالماركر

marker =  createMarker ( .... ) 
  
addEventHandler( "onClientMarkerHit", marker, function ( element ) 
   if element == getLocalPlayer ( ) then 
         if ( guiGetVisible ( GUIEditor.window[1] ) == false ) then 
              guiSetVisible( GUIEditor.window[1], true ) 
              showCursor( true ) 
                     end 
             end 
    end 
) 
Link to comment

اخوي الماركر ظهر ولما اروحلهه مايجيبيلي اللوحة

الكووود

 

------------ ------------- --------- 
  
GUIEditor = { 
    label = {}, 
    edit = {}, 
    button = {}, 
    window = {}, 
    gridlist = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(114, 56, 613, 413, "Xx|هجولة |Xx", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 0.90) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0BFD00") 
  
        GUIEditor.button[1] = guiCreateButton(435, 79, 156, 50, "هلا", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") 
        GUIEditor.button[2] = guiCreateButton(435, 292, 156, 50, "اهلين", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[2], "default-bold-small") 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFE0000") 
        GUIEditor.button[3] = guiCreateButton(435, 227, 156, 50, "عساك بخير", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[3], "default-bold-small") 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFE0000") 
        GUIEditor.button[4] = guiCreateButton(435, 158, 156, 50, "بخير ", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[4], "default-bold-small") 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFE0000") 
        GUIEditor.gridlist[1] = guiCreateGridList(0.01, 0.06, 0.69, 0.92, true, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "اسم اللاعب", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "اعاملهه", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "نشاطهه", 0.3) 
        guiGridListAddRow(GUIEditor.gridlist[1]) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "FOX", false, false) 
        guiGridListSetItemColor(GUIEditor.gridlist[1], 0, 1, 253, 0, 0, 255) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "2014", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 3, "0", false, false) 
  
        GUIEditor.edit[1] = guiCreateEdit(425, 330, 15, 15, "", false, GUIEditor.gridlist[1]) 
        GUIEditor.memo[1] = guiCreateMemo(420, 320, 256, 49, "", false, GUIEditor.gridlist[1]) 
        GUIEditor.button[5] = guiCreateButton(595, 346, 15, 23, "", false, GUIEditor.gridlist[1]) 
  
        GUIEditor.label[1] = guiCreateLabel(436, 351, 155, 52, "BY FOX", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "sa-header") 
        guiLabelSetColor(GUIEditor.label[1], 101, 0, 254) 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) 
        GUIEditor.button[6] = guiCreateButton(501, 21, 100, 30, "X اغلاق", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[6], "default-bold-small") 
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF4F704")     
    end 
) 
---------------- -----------------------  -------------------- 
marker =  createMarker (1910.2493896484,-2316.5402832031,13.546875, "cylinder", 3, 255, 0, 0, 127) 
  
addEventHandler( "onClientMarkerHit", marker, function ( element ) 
   if element == getLocalPlayer ( ) then 
         if ( guiGetVisible ( GUIEditor.window[1] ) == false ) then 
              guiSetVisible( GUIEditor.window[1], true ) 
              showCursor( true ) 
                     end 
             end 
    end 
) 
  
  
  

Link to comment
اخوي الماركر ظهر ولما اروحلهه مايجيبيلي اللوحة

الكووود

 

------------ ------------- --------- 
  
GUIEditor = { 
    label = {}, 
    edit = {}, 
    button = {}, 
    window = {}, 
    gridlist = {}, 
    memo = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(114, 56, 613, 413, "Xx|هجولة |Xx", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 0.90) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0BFD00") 
  
        GUIEditor.button[1] = guiCreateButton(435, 79, 156, 50, "هلا", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") 
        GUIEditor.button[2] = guiCreateButton(435, 292, 156, 50, "اهلين", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[2], "default-bold-small") 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFE0000") 
        GUIEditor.button[3] = guiCreateButton(435, 227, 156, 50, "عساك بخير", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[3], "default-bold-small") 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFE0000") 
        GUIEditor.button[4] = guiCreateButton(435, 158, 156, 50, "بخير ", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[4], "default-bold-small") 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFE0000") 
        GUIEditor.gridlist[1] = guiCreateGridList(0.01, 0.06, 0.69, 0.92, true, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "اسم اللاعب", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "اعاملهه", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "نشاطهه", 0.3) 
        guiGridListAddRow(GUIEditor.gridlist[1]) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "FOX", false, false) 
        guiGridListSetItemColor(GUIEditor.gridlist[1], 0, 1, 253, 0, 0, 255) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "2014", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 3, "0", false, false) 
  
        GUIEditor.edit[1] = guiCreateEdit(425, 330, 15, 15, "", false, GUIEditor.gridlist[1]) 
        GUIEditor.memo[1] = guiCreateMemo(420, 320, 256, 49, "", false, GUIEditor.gridlist[1]) 
        GUIEditor.button[5] = guiCreateButton(595, 346, 15, 23, "", false, GUIEditor.gridlist[1]) 
  
        GUIEditor.label[1] = guiCreateLabel(436, 351, 155, 52, "BY FOX", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "sa-header") 
        guiLabelSetColor(GUIEditor.label[1], 101, 0, 254) 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) 
        GUIEditor.button[6] = guiCreateButton(501, 21, 100, 30, "X اغلاق", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[6], "default-bold-small") 
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF4F704")     
    end 
) 
---------------- -----------------------  -------------------- 
marker =  createMarker (1910.2493896484,-2316.5402832031,13.546875, "cylinder", 3, 255, 0, 0, 127) 
  
addEventHandler( "onClientMarkerHit", marker, function ( element ) 
   if element == getLocalPlayer ( ) then 
         if ( guiGetVisible ( GUIEditor.window[1] ) == false ) then 
              guiSetVisible( GUIEditor.window[1], true ) 
              showCursor( true ) 
                     end 
             end 
    end 
) 
  
  
  

انا جربته , وجات اللوحة

,,,,,,,,,,,,,,,

وبالنسبة للزر , كذا يصير وجربتهه

Window = GUIEditor.window[1] 
local Key = "F2" 
guiSetVisible(Window, false) 
  
bindKey(Key,"Down",function() 
    if ( guiGetVisible(Window) == true ) then 
        guiSetVisible(Window, false) 
        showCursor(false) 
    else 
        guiSetVisible(Window, true) 
        showCursor(true) 
    end 
end) 
Edited by Guest
Link to comment

وبالنسبة للزر , كذا يصير وجربتهه

Window = GUIEditor.window[1] 
local Key = "F2" 
guiSetVisible(Window, false) 
  
bindKey(Key,"Down",function() 
    if ( guiGetVisible(Window) == true ) then 
        guiSetVisible(Window, false) 
        showCursor(false) 
    else 
        guiSetVisible(Window, true) 
        showCursor(true) 
    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...