Jump to content

خطأ في كود


Recommended Posts

GUIEditor = { 
    label = {}, 
} 
window = guiCreateWindow(122, 50, 614, 493, "hours mod by :][bLACK][DETH][", false) 
guiWindowSetSizable(window, false) 
  
1 = guiCreateButton(31, 39, 150, 75, " level 1", false, window) 
10 = guiCreateButton(446, 379, 150, 75, "head-maps", false, window) 
9 = guiCreateButton(446, 294, 150, 75, "superadmin", false, window) 
8 = guiCreateButton(442, 209, 150, 75, "admin", false, window) 
7 = guiCreateButton(442, 124, 150, 75, "supermodeditor", false, window) 
13 = guiCreateButton(247, 209, 150, 75, "acl manger", false, window) 
12 = guiCreateButton(247, 124, 150, 75, "big-admin", false, window) 
6 = guiCreateButton(442, 39, 150, 75, "modeditor", false, window) 
11 = guiCreateButton(247, 39, 150, 75, "head-admin", false, window) 
5 = guiCreateButton(31, 379, 150, 75, "level 5", false, window) 
4 = guiCreateButton(31, 294, 150, 75, "level 4", false, window) 
3 = guiCreateButton(31, 209, 150, 75, "level 3", false, window) 
2 = guiCreateButton(31, 124, 150, 75, "level 2", false, window) 
GUIEditor.label[1] = guiCreateLabel(213, 304, 221, 170, "SUNNAH\nPRO\nRACE", false, window) 
guiSetFont(GUIEditor.label[1], "sa-header") 
  
  
  
  
  
     guiSetVisible (Window, false)   
function OpenWin() 
    if guiGetVisible ( Window ) then 
       guiSetVisible ( Window, false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( Window, true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
bindKey("F6", "down", OpenWin) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == 1 then 
outputChatBox("10ساعات") 
end 
 end 
) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == 2 then 
outputChatBox("17ساعة") 
end 
 end 
) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == 3 then 
outputChatBox("25ساعة") 
end 
 end 
) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == 4 then 
outputChatBox("32ساعة") 
end 
 end 
) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == 5 then 
outputChatBox("40ساعة") 
end 
 end 
) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == 6 then 
outputChatBox("50ساعة") 
end 
 end 
) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == 7 then 
outputChatBox("65ساعة") 
end 
 end 
) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == 8 then 
outputChatBox("80ساعة") 
end 
 end 
) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == 9 then 
outputChatBox("100ساعة") 
end 
 end 
) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == 10 then 
outputChatBox("140ساعة") 
end 
 end 
) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == 11 then 
outputChatBox("120ساعة") 
end 
 end 
) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == 12 then 
outputChatBox("180ساعة") 
end 
 end 
) 
  addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == 13 then 
outputChatBox("200ساعة") 
outputChatBox("خبرة بالريس") 
outputChatBox("تواجد باليوم على الاقل ساعتان") 
end 
 end 
) 
  

Link to comment
    window = {} 
   button = {} 
    label = {} 
   
  
window = guiCreateWindow(122, 50, 614, 493, "hours mod by :][bLACK][DETH][", false) 
guiWindowSetSizable(window, false) 
guiSetVisible (window, false) 
button1 = guiCreateButton(31, 39, 150, 75, " level 1", false, window) 
button2 = guiCreateButton(446, 379, 150, 75, "head-maps", false, window) 
button3 = guiCreateButton(446, 294, 150, 75, "superadmin", false, window) 
button4 = guiCreateButton(442, 209, 150, 75, "admin", false, window) 
button5 = guiCreateButton(442, 124, 150, 75, "supermodeditor", false, window) 
button6 = guiCreateButton(247, 209, 150, 75, "acl manger", false, window) 
button7 = guiCreateButton(247, 124, 150, 75, "big-admin", false, window) 
button8 = guiCreateButton(442, 39, 150, 75, "modeditor", false, window) 
button9 = guiCreateButton(247, 39, 150, 75, "head-admin", false, window) 
button10 = guiCreateButton(31, 379, 150, 75, "level 5", false, window) 
button11 = guiCreateButton(31, 294, 150, 75, "level 4", false, window) 
button12 = guiCreateButton(31, 209, 150, 75, "level 3", false, window) 
button13 = guiCreateButton(31, 124, 150, 75, "level 2", false, window) 
label[1] = guiCreateLabel(213, 304, 221, 170, "SUNNAH\nPRO\nRACE", false, window) 
guiSetFont(label[1], "sa-header") 
  
     
function OpenWin() 
    if guiGetVisible ( window ) then 
       guiSetVisible ( window, false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( window, true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
    end 
end 
bindKey("F6", "down", OpenWin) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button1 then 
outputChatBox("10ساعات") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button2 then 
outputChatBox("17ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button3 then 
outputChatBox("25ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button4 then 
outputChatBox("32ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button5 then 
outputChatBox("40ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button6 then 
outputChatBox("50ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button7 then 
outputChatBox("65ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button8 then 
outputChatBox("80ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button9 then 
outputChatBox("100ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button10 then 
outputChatBox("140ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button11 then 
outputChatBox("120ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button12 then 
outputChatBox("180ساعة") 
end 
 end 
) 
   
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button13 then 
outputChatBox("200ساعة") 
outputChatBox("خبرة بالريس") 
outputChatBox("تواجد باليوم على الاقل ساعتان") 
end 
 end 
) 

Link to comment
    window = {} 
   button = {} 
    label = {} 
   
  
window = guiCreateWindow(122, 50, 614, 493, "hours mod by :][bLACK][DETH][", false) 
guiWindowSetSizable(window, false) 
guiSetVisible (window, false) 
button1 = guiCreateButton(31, 39, 150, 75, " level 1", false, window) 
button2 = guiCreateButton(446, 379, 150, 75, "head-maps", false, window) 
button3 = guiCreateButton(446, 294, 150, 75, "superadmin", false, window) 
button4 = guiCreateButton(442, 209, 150, 75, "admin", false, window) 
button5 = guiCreateButton(442, 124, 150, 75, "supermodeditor", false, window) 
button6 = guiCreateButton(247, 209, 150, 75, "acl manger", false, window) 
button7 = guiCreateButton(247, 124, 150, 75, "big-admin", false, window) 
button8 = guiCreateButton(442, 39, 150, 75, "modeditor", false, window) 
button9 = guiCreateButton(247, 39, 150, 75, "head-admin", false, window) 
button10 = guiCreateButton(31, 379, 150, 75, "level 5", false, window) 
button11 = guiCreateButton(31, 294, 150, 75, "level 4", false, window) 
button12 = guiCreateButton(31, 209, 150, 75, "level 3", false, window) 
button13 = guiCreateButton(31, 124, 150, 75, "level 2", false, window) 
label[1] = guiCreateLabel(213, 304, 221, 170, "SUNNAH\nPRO\nRACE", false, window) 
guiSetFont(label[1], "sa-header") 
  
     
function OpenWin() 
    if guiGetVisible ( window ) then 
       guiSetVisible ( window, false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( window, true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
    end 
end 
bindKey("F6", "down", OpenWin) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button1 then 
outputChatBox("10ساعات") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button2 then 
outputChatBox("17ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button3 then 
outputChatBox("25ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button4 then 
outputChatBox("32ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button5 then 
outputChatBox("40ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button6 then 
outputChatBox("50ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button7 then 
outputChatBox("65ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button8 then 
outputChatBox("80ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button9 then 
outputChatBox("100ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button10 then 
outputChatBox("140ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button11 then 
outputChatBox("120ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button12 then 
outputChatBox("180ساعة") 
end 
 end 
) 
   
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button13 then 
outputChatBox("200ساعة") 
outputChatBox("خبرة بالريس") 
outputChatBox("تواجد باليوم على الاقل ساعتان") 
end 
 end 
) 

مدامك جالس تحط الازرار خارجج الجدول .. ليش حاطه ؟

Link to comment
    window = {} 
   button = {} 
    label = {} 
   
  
window = guiCreateWindow(122, 50, 614, 493, "hours mod by :][bLACK][DETH][", false) 
guiWindowSetSizable(window, false) 
guiSetVisible (window, false) 
button1 = guiCreateButton(31, 39, 150, 75, " level 1", false, window) 
button2 = guiCreateButton(446, 379, 150, 75, "head-maps", false, window) 
button3 = guiCreateButton(446, 294, 150, 75, "superadmin", false, window) 
button4 = guiCreateButton(442, 209, 150, 75, "admin", false, window) 
button5 = guiCreateButton(442, 124, 150, 75, "supermodeditor", false, window) 
button6 = guiCreateButton(247, 209, 150, 75, "acl manger", false, window) 
button7 = guiCreateButton(247, 124, 150, 75, "big-admin", false, window) 
button8 = guiCreateButton(442, 39, 150, 75, "modeditor", false, window) 
button9 = guiCreateButton(247, 39, 150, 75, "head-admin", false, window) 
button10 = guiCreateButton(31, 379, 150, 75, "level 5", false, window) 
button11 = guiCreateButton(31, 294, 150, 75, "level 4", false, window) 
button12 = guiCreateButton(31, 209, 150, 75, "level 3", false, window) 
button13 = guiCreateButton(31, 124, 150, 75, "level 2", false, window) 
label[1] = guiCreateLabel(213, 304, 221, 170, "SUNNAH\nPRO\nRACE", false, window) 
guiSetFont(label[1], "sa-header") 
  
     
function OpenWin() 
    if guiGetVisible ( window ) then 
       guiSetVisible ( window, false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( window, true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
    end 
end 
bindKey("F6", "down", OpenWin) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button1 then 
outputChatBox("10ساعات") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button2 then 
outputChatBox("17ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button3 then 
outputChatBox("25ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button4 then 
outputChatBox("32ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button5 then 
outputChatBox("40ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button6 then 
outputChatBox("50ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button7 then 
outputChatBox("65ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button8 then 
outputChatBox("80ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button9 then 
outputChatBox("100ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button10 then 
outputChatBox("140ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button11 then 
outputChatBox("120ساعة") 
end 
 end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button12 then 
outputChatBox("180ساعة") 
end 
 end 
) 
   
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == button13 then 
outputChatBox("200ساعة") 
outputChatBox("خبرة بالريس") 
outputChatBox("تواجد باليوم على الاقل ساعتان") 
end 
 end 
) 

كذا انت خلبطت له الكود يشتغل وكل شيء بس يوم يظغط على زر يجي له كلام ليفل تاني

واول جدولين مالهم فايده

كذا افضل ومنضم اكثر

GUIEditor = { 
    label = {}, 
} 
window = guiCreateWindow(122, 50, 614, 493, "hours mod by :][bLACK][DETH][", false) 
guiWindowSetSizable(window, false) 
  
l1 = guiCreateButton(31, 39, 150, 75, " level 1", false, window) 
l10 = guiCreateButton(446, 379, 150, 75, "head-maps", false, window) 
l9 = guiCreateButton(446, 294, 150, 75, "superadmin", false, window) 
l8 = guiCreateButton(442, 209, 150, 75, "admin", false, window) 
l7 = guiCreateButton(442, 124, 150, 75, "supermodeditor", false, window) 
l13 = guiCreateButton(247, 209, 150, 75, "acl manger", false, window) 
l12 = guiCreateButton(247, 124, 150, 75, "big-admin", false, window) 
l6 = guiCreateButton(442, 39, 150, 75, "modeditor", false, window) 
l11 = guiCreateButton(247, 39, 150, 75, "head-admin", false, window) 
l5 = guiCreateButton(31, 379, 150, 75, "level 5", false, window) 
l4 = guiCreateButton(31, 294, 150, 75, "level 4", false, window) 
l3 = guiCreateButton(31, 209, 150, 75, "level 3", false, window) 
l2 = guiCreateButton(31, 124, 150, 75, "level 2", false, window) 
GUIEditor.label[1] = guiCreateLabel(213, 304, 221, 170, "SUNNAH\nPRO\nRACE", false, window) 
guiSetFont(GUIEditor.label[1], "sa-header") 
  
 guiSetVisible (Window, false)   
function OpenWin() 
    if guiGetVisible ( Window ) then 
       guiSetVisible ( Window, false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( Window, true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
bindKey("F6", "down", OpenWin) 
  
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == l1 then 
outputChatBox("10ساعات") 
elseif source == l2 then 
outputChatBox("17ساعة") 
elseif source == l3 then 
outputChatBox("25ساعة") 
elseif source == l4 then 
outputChatBox("32ساعة") 
elseif source == l5 then 
outputChatBox("40ساعة") 
elseif source == l6 then 
outputChatBox("50ساعة") 
elseif source == l7 then 
outputChatBox("65ساعة") 
elseif source == l8 then 
outputChatBox("80ساعة") 
elseif source == l9 then 
outputChatBox("100ساعة") 
elseif source == l10 then 
outputChatBox("140ساعة") 
elseif source == l11 then 
outputChatBox("120ساعة") 
elseif source == l12 then 
outputChatBox("180ساعة") 
elseif source == l13 then 
outputChatBox("200ساعة") 
outputChatBox("خبرة بالريس") 
outputChatBox("تواجد باليوم على الاقل ساعتان") 
end 
 end 
) 
  

Link to comment

@][bLACK][DETH][

    window = guiCreateWindow(122, 50, 614, 493, "hours mod by :][bLACK][DETH][", false) 
    guiWindowSetSizable(window, false) 
      
    btn1 = guiCreateButton(31, 39, 150, 75, "level 1", false, window) 
    btn2 = guiCreateButton(446, 379, 150, 75, "level 2", false, window) 
    btn3 = guiCreateButton(446, 294, 150, 75, "level 3", false, window) 
    btn4 = guiCreateButton(442, 209, 150, 75, "level 4", false, window) 
    btn5 = guiCreateButton(442, 124, 150, 75, "level 5", false, window) 
    btn6 = guiCreateButton(247, 209, 150, 75, "head-admin", false, window) 
    btn7 = guiCreateButton(247, 124, 150, 75, "modeditor", false, window) 
    btn8 = guiCreateButton(442, 39, 150, 75, "big-admin", false, window) 
    btn9 = guiCreateButton(247, 39, 150, 75, "acl manger", false, window) 
    btn10 = guiCreateButton(31, 379, 150, 75, "supermodeditor", false, window) 
    btn11 = guiCreateButton(31, 294, 150, 75, "admin", false, window) 
    btn12 = guiCreateButton(31, 209, 150, 75, "superadmin", false, window) 
    btn13 = guiCreateButton(31, 124, 150, 75, "head-maps", false, window) 
    lbl = guiCreateLabel(213, 304, 221, 170, "SUNNAH\nPRO\nRACE", false, window) 
    guiSetFont(lbl, "sa-header") 
    guiSetVisible(window, false) 
     
   bindKey ( "F2" , "down" , function() 
    guiSetVisible(window,not guiGetVisible(window)) 
    showCursor(not isCursorShowing()) 
    end 
   ) 
      
      
    addEventHandler ("onClientGUIClick", getRootElement(), 
    function () 
    if source == btn1 then 
    outputChatBox("10ساعات") 
    elseif source == btn2 then 
    outputChatBox("17ساعة") 
    elseif source == btn3 then 
    outputChatBox("25ساعة") 
    elseif source == btn4 then 
    outputChatBox("32ساعة") 
    elseif source == btn5 then 
    outputChatBox("40ساعة") 
    elseif source == btn6 then 
    outputChatBox("50ساعة") 
    elseif source == btn7 then 
    outputChatBox("65ساعة") 
    elseif source == btn8 then 
    outputChatBox("80ساعة") 
    elseif source == btn9 then 
    outputChatBox("100ساعة") 
    elseif source == btn10 then 
    outputChatBox("140ساعة") 
    elseif source == btn11 then 
    outputChatBox("120ساعة") 
    elseif source == btn12 then 
    outputChatBox("180ساعة") 
    elseif source == btn13 then 
    outputChatBox("200ساعة") 
    outputChatBox("خبرة بالريس") 
    outputChatBox("تواجد باليوم على الاقل ساعتان") 
    end 
    end 
    ) 
Edited by Guest
Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...