Jump to content

تصحيح كود


Recommended Posts

Posted

السلا م عليك

صارلي فتر هديت البرمجة فتلخبط علي الموضوع

:oops::oops::oops:

ابي اسوي سماعة اتروح ليها تضغط تاب تشتغل الموسيقو ورد تضرب تاب اتبند الموسيقى

بس المشكلة لا سماعة تطلع ولا الماركر

  
object createObject ( int 2104, float 2495.8, float -1641.9, float 12.8, [ float 0, float 0, float 255, bool isLowLOD = false ] ) 
  
marker createMarker ( float 2495.6, float -1642.8, float 12.8 [, string theType = "corona", float size = 4.0, int r = 0, int g = 0, int b = 255, int a = 255 ] ) 
  
addEventHandler("onClientGUIClick", root,  
    function ()  
        if source tab then 
        local sound = playSound("song.mp3")  
        setSoundVolume(sound, 1)  
        end  
    end  
)  

انا مبتدء لا حد يطنز :cry:

Posted

مافي شئ يشتغل لانك واخذ نسخ ولصق من الويكي

أنصحك تتعلم الأساسيات وتبدا من الصفر وتابع شروحات وإسال أما بهذا الوضع مااظن في أحد هيساعدك

- There is no God but [ Allah ] , Mohammad is the messenger of Allah ♥

# action.live2 :لططلباتت البرممجةة بممقاببل مماادي تتواصصل ممعي سسكايب

560x95_FFFFFF_FF9900_000000_000000.png
Posted
مافي شئ يشتغل لانك واخذ نسخ ولصق من الويكي

أنصحك تتعلم الأساسيات وتبدا من الصفر وتابع شروحات وإسال أما بهذا الوضع مااظن في أحد هيساعدك

مشكور على رد التشجيعي

عندك روابط شرح الاساسيات ؟؟؟ :?:

Posted

الماركر والاوجكت

Marker = createMarker ( x, y, z, "cylinder", 1, 255, 255, 255 ) -- حط الاحداثيات x, y, z هنا بدل 
Object = createObject ( model, x, y, z ) -- حط احداثياته x, y, z حط رقم ايدي الاوبجكت الي تبيه و هنا بدل model هنا بدل الـ 

ولا تنسى تضيف الصوت في الميتا عشان يطلع

* There is no God but Allah, Mohammed is the Messenger Of Allah

Posted
الماركر والاوجكت
Marker = createMarker ( x, y, z, "cylinder", 1, 255, 255, 255 ) -- حط الاحداثيات x, y, z هنا بدل 
Object = createObject ( model, x, y, z ) -- حط احداثياته x, y, z حط رقم ايدي الاوبجكت الي تبيه و هنا بدل model هنا بدل الـ 

ولا تنسى تضيف الصوت في الميتا عشان يطلع

مشكور ماتقص احلى رد اسمعه اليوم

الله يخليك للموقع

Posted (edited)
marker = createMarker ( x, y, z, "cylinder", 5, 255, 255, 255 ) 
Object = createObject ( model, x, y, z ) 
  
addEventHandler ( "onClientMarkerHit", resourceRoot, 
 function ( element ) 
  if ( source == marker ) then 
  setElementData ( localPlayer, "ss", true ) 
end 
end) 
  
  
bindKey("tap", "down", 
function() 
if ( getElementData( localPlayer, "ss", true )) then 
if isElement ( si ) then destroyElement ( si ) end 
 si = playSound("1.mp3") 
end 
end) 

Edited by Guest

سبحان الله

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

LUA 56%

Posted
marker = createMarker ( x, y, z, "cylinder", 5, 255, 255, 255 ) 
Object = createObject ( model, x, y, z ) 
  
addEventHandler ( "onClientMarkerHit", resourceRoot, 
 function ( element ) 
  if ( source == marker ) then 
  setElementData ( localPlayer, "ss", true ) 
end 
end) 
  
  
bindKey("tap", "down", 
function() 
if ( getElementData( localPlayer, "ss", true )) then 
if isElement ( si ) then destroyElement ( si ) end 
 si = playSound("1.mp3") 
end 
end 
end) 

الأبجيكت والماركر يشتغلون بس المشكلة في صوت

شكرا على مساعدة :roll:

Posted
تم تعديل كان في غلط

اند زايد

اغير كلمة si

?

مايطلع صوت من السماعة في شي ثاني اغيره غير الأحداثيات؟

Posted

لا بس احداث المارك

تاكد انك دخلت المارك

و ضغط زر تاب

سبحان الله

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

LUA 56%

Posted
لا بس احداث المارك

تاكد انك دخلت المارك

و ضغط زر تاب

للأسف مايطلع صوت

:cry::cry::cry: بس اوبجكت وماركر شغالين :cry::cry::cry:

Posted

متاكد انه الصوت موجود في المسار الصح باليمتا و المود و ملف المود

سبحان الله

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

LUA 56%

Posted

object = createObject(id, x, y, z) 
marker = createMarker(x, y, z, "cylinder", 8, 255, 0, 0) 
  
bindKey("tap", "down", function( ) 
    if isElementWithinMarker(localPlayer, marker) then 
        if isElement(sound) then 
            destroyElement(sound) 
        else 
            sound = playSound("1.mp3") 
            setSoundVolume(sound, 1) 
        end 
    end 
end) 

skype : 011101000110111000110110011001010110110000110000001110010011000000111001

Posted

اول مره اشوف هذه الفنيشن

isElementWithinMarker

سبحان الله

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

LUA 56%

Posted
متاكد انه الصوت موجود في المسار الصح باليمتا و المود و ملف المود
"hunter96" version="1.0" type="script" name="speaker" description=" Music 
In the area cj" /> 
    

Posted
اول مره اشوف هذه الفنيشن

isElementWithinMarker

يمكن كان مندس عنك ماندري :shock:

skype : 011101000110111000110110011001010110110000110000001110010011000000111001

Posted
object = createObject(id, x, y, z) 
marker = createMarker(x, y, z, "cylinder", 8, 255, 0, 0) 
  
bindKey("tap", "down", function( ) 
    if isElementWithinMarker(localPlayer, marker) then 
        if isElement(sound) then 
            destroyElement(sound) 
        else 
            sound = playSound("1.mp3") 
            setSoundVolume(sound, 1) 
        end 
    end 
end) 

جربت الكود بعد ما طلع الصوت

Posted

الصوت كلنت فقط

مو سيرفر

غير السيرفر الى كلنت بشتغل جربه

و شوف طريقه تنطيل دقيقه و احسن

سبحان الله

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

LUA 56%

Posted
اول مره اشوف هذه الفنيشن

isElementWithinMarker

يمكن كان مندس عنك ماندري :shock:

الفنيشن تشوفني تهرب :lol:

سبحان الله

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

LUA 56%

Posted
اول مره اشوف هذه الفنيشن

isElementWithinMarker

يمكن كان مندس عنك ماندري :shock:

الفنيشن تشوفني تهرب :lol:

الفنيشن :?::?::!::!::shock::shock::lol::lol:

skype : 011101000110111000110110011001010110110000110000001110010011000000111001

Posted

الفنكشن ههههههه و انا اقول ليه من شوي واحد جالس يتهبل علي

الحين انتبهت

الكيبورد عندي بدون كبسات

لو اصوره لك ترسل لي فلوسس اصلحه ض1

سبحان الله

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

LUA 56%

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