Jump to content

كود خاطئ


Recommended Posts

عندي خطا في الكود التالي لكن مااعرف وش هو

  
piljob=createMarker ( 1949.4000244141,-2493.8999023438,13.199999809265, "cylinder", 1.5, 255, 255, 0, 170 ) 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    edit = {} 
} 
  
    function pilgui() 
        GUIEditor.window[1] = guiCreateWindow(395, 145, 609, 412, "pilot job by NiDo/Abdalbaset", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.button[1] = guiCreateButton(17, 344, 272, 58, "Take the job", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FB1DF607") 
        GUIEditor.button[2] = guiCreateButton(361, 347, 238, 55, "close", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FBFD0D01") 
        GUIEditor.edit[1] = guiCreateEdit(70, 56, 502, 284, "this is  SA pilot job,to earn money get the airplane to the airport", false, GUIEditor.window[1])  
  showCursor(true)       
    end 
addEventHandler("onMarkerHit",piljob,pilgui,) 
  
  
  
  
  
  

Link to comment
piljob = createMarker ( 1949.4000244141,-2493.8999023438,13.199999809265, "cylinder", 1.5, 255, 255, 0, 170 ) 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    edit = {} 
} 
  
    function pilgui() 
        GUIEditor.window[1] = guiCreateWindow(395, 145, 609, 412, "pilot job by NiDo/Abdalbaset", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.button[1] = guiCreateButton(17, 344, 272, 58, "Take the job", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FB1DF607") 
        GUIEditor.button[2] = guiCreateButton(361, 347, 238, 55, "close", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FBFD0D01") 
        GUIEditor.edit[1] = guiCreateEdit(70, 56, 502, 284, "this is  SA pilot job,to earn money get the airplane to the airport", false, GUIEditor.window[1]) 
  showCursor(true)      
    end 
addEventHandler("onMarkerHit",piljob,pilgui,) 

Link to comment
عندي خطا في الكود التالي لكن مااعرف وش هو
  
piljob=createMarker ( 1949.4000244141,-2493.8999023438,13.199999809265, "cylinder", 1.5, 255, 255, 0, 170 ) 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    edit = {} 
} 
  
    function pilgui() 
        GUIEditor.window[1] = guiCreateWindow(395, 145, 609, 412, "pilot job by NiDo/Abdalbaset", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.button[1] = guiCreateButton(17, 344, 272, 58, "Take the job", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FB1DF607") 
        GUIEditor.button[2] = guiCreateButton(361, 347, 238, 55, "close", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FBFD0D01") 
        GUIEditor.edit[1] = guiCreateEdit(70, 56, 502, 284, "this is  SA pilot job,to earn money get the airplane to the airport", false, GUIEditor.window[1])  
  showCursor(true)       
    end 
addEventHandler("onMarkerHit",piljob,pilgui,) 
  
  
  
  
  
  

ضبطلك كود فتح النافذة + كود اغلاق النافذة بالزر + علامة بالخريطة

  
piljob = createMarker ( 1949.4000244141, -2493.8999023438, 13.199999809265, "cylinder", 1.5, 255, 255, 0, 255 ) 
createBlipAttachedTo(piljob, 33) 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    edit = {} 
} 
  
    GUIEditor.window[1] = guiCreateWindow(395, 145, 609, 412, "pilot job by NiDo/Abdalbaset", false) 
    guiWindowSetSizable(GUIEditor.window[1], false) 
    guiSetVisible(GUIEditor.window[1], false) 
    GUIEditor.button[1] = guiCreateButton(17, 344, 272, 58, "Take the job", false, GUIEditor.window[1]) 
    guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FB1DF607") 
    GUIEditor.button[2] = guiCreateButton(361, 347, 238, 55, "close", false, GUIEditor.window[1]) 
    guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FBFD0D01") 
    GUIEditor.edit[1] = guiCreateEdit(70, 56, 502, 284, "this is  SA pilot job,to earn money get the airplane to the airport", false, GUIEditor.window[1])  
     
addEventHandler("onClientMarkerHit", resourceRoot, function(hit) 
    if hit == localPlayer and source == piljob then 
        guiSetVisible(GUIEditor.window[1], true) 
        showCursor(true)       
    end 
end ) 
  
addEventHandler("onClientGUIClick", resourceRoot, function( ) 
    if source == GUIEditor.button[2] then 
        guiSetVisible(GUIEditor.window[1], false) 
        showCursor(false) 
    end 
end ) 

Link to comment
piljob = createMarker ( 1949.4000244141,-2493.8999023438,13.199999809265, "cylinder", 1.5, 255, 255, 0, 170 ) 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    edit = {} 
} 
  
    function pilgui() 
        GUIEditor.window[1] = guiCreateWindow(395, 145, 609, 412, "pilot job by NiDo/Abdalbaset", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.button[1] = guiCreateButton(17, 344, 272, 58, "Take the job", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FB1DF607") 
        GUIEditor.button[2] = guiCreateButton(361, 347, 238, 55, "close", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FBFD0D01") 
        GUIEditor.edit[1] = guiCreateEdit(70, 56, 502, 284, "this is  SA pilot job,to earn money get the airplane to the airport", false, GUIEditor.window[1]) 
  showCursor(true)      
    end 
addEventHandler("onMarkerHit",piljob,pilgui,) 

عدلت شي :?:

Link to comment
عندي خطا في الكود التالي لكن مااعرف وش هو
  
piljob=createMarker ( 1949.4000244141,-2493.8999023438,13.199999809265, "cylinder", 1.5, 255, 255, 0, 170 ) 
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    edit = {} 
} 
  
    function pilgui() 
        GUIEditor.window[1] = guiCreateWindow(395, 145, 609, 412, "pilot job by NiDo/Abdalbaset", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.button[1] = guiCreateButton(17, 344, 272, 58, "Take the job", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FB1DF607") 
        GUIEditor.button[2] = guiCreateButton(361, 347, 238, 55, "close", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FBFD0D01") 
        GUIEditor.edit[1] = guiCreateEdit(70, 56, 502, 284, "this is  SA pilot job,to earn money get the airplane to the airport", false, GUIEditor.window[1])  
  showCursor(true)       
    end 
addEventHandler("onMarkerHit",piljob,pilgui,) 

لاحظ هنا عندك فاصلة زايدة بالأخير

addEventHandler("onMarkerHit",piljob,pilgui,) 

._. و حتى لو شلت الفاصلة بيكون خطأ لان الحدث هذا للسيرفر سايد و انت حاطه بالكلينت

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