Jump to content

تصحيح كود


Recommended Posts

Posted

وين الخطاء ؟؟

إذا ضغطت زر ينطفي صوت ..

addEventHandler("onClientGUIClick",root, 
function() 
if source == No then 
StopSound(lol.mp3) 
end 
end 
) 

Saudi%20Flag.gif

Saudi Arabia

Posted
stopSound 

+ لازم توقف عنصر صوت محدد تحت متغير مو موقع ملف

" Keep Thinking Different . " - Steve Jops

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

Don't send me PMs asking for help, I Won't reply !

Posted
stopSound 

+ لازم توقف عنصر صوت محدد تحت متغير مو موقع ملف

مآ أضن لآزم الكآبيتل أو السمول ...

بس جربت ولا ضببط :(

Saudi%20Flag.gif

Saudi Arabia

Posted

شوف هذا الكود كامل

بس كودين .. هم

ماعرفت أدمجهم

  
addEventHandler("onClientGUIClick",root, 
function() 
if source == No then 
stopSound(lol.mp3) 
end 
end 
) 
  
  

  
addEventHandler("onClientGUIClick",root, 
function() 
if source == Yes then 
StartSound(lol.mp3) 
end 
end 
) 
  
  

Saudi%20Flag.gif

Saudi Arabia

Posted

!! لازم الكابيتال او السمول

+ اقرأ ردي زي الناس

" Keep Thinking Different . " - Steve Jops

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

Don't send me PMs asking for help, I Won't reply !

Posted
!! لازم الكابيتال او السمول

+ اقرأ ردي زي الناس

هو كان سمول

بس أنا عدلته

لأني مالاحضت

في

lua

الأحمر

مثل

stopsound

فقلت خلني أغيرها يمكن تكون حمرآ مثل الستوب

وهي من الأساس سمول :(

Saudi%20Flag.gif

Saudi Arabia

Posted
اطرح الكود كامل ..
  
addEventHandler("onClientGUIClick",root, 
function() 
if source == No then 
stopSound(lol.mp3) 
end 
end 
) 
  
  

  
addEventHandler("onClientGUIClick",root, 
function() 
if source == Yes then 
StartSound(lol.mp3) 
end 
end 
) 
  
  

الأكواد موب مندمجه

هل المشكله هي بالدمج ؟؟

وأدمجهآ إذا المشكله من الدمج !

Saudi%20Flag.gif

Saudi Arabia

Posted
ورني الكود اللي تشغل منة الصوت للمرة الثانية ؟
Yes = guiCreateButton(150,400,100,47,"Start",false,Wnds1) 
No = guiCreateButton(150,400,100,47,"Stop",false,Wnds1) 

Saudi%20Flag.gif

Saudi Arabia

Posted
ياخي ماطلبت الزر؟ طلبت الفنكشن اللي تشغل منة الزر :/ ؟

حق الصوت

طيييييييب هو اللي عطيتك أول مره !!!!!!

انا أبيه بزر بس تضغطه ويشتغل

بس !!!

والصوت أشتغل ..

بس أطفاء الصوت خربان مدري شفيه ..

Saudi%20Flag.gif

Saudi Arabia

Posted
addEventHandler('onClientGUIClick',guiRoot, 
    function (      ) 
        if ( source == Yes ) then 
            aSound = playSound ( 'lol.mp3' ) 
        elseif ( source == No ) then 
            if isElement ( aSound ) then 
        destroyElement ( aSound ) 
        end 
    end 
end 
) 

لم يتم التجربة و العذر مآنتبهت لانة كآبيتآل ..

  

Posted
addEventHandler('onClientGUIClick',guiRoot, 
    function (      ) 
        if ( source == Yes ) then 
            aSound = playSound ( 'lol.mp3' ) 
        elseif ( source == No ) then 
            if isElement ( aSound ) then 
        destroyElement ( aSound ) 
        end 
    end 
end 
) 

لم يتم التجربة و العذر مآنتبهت لانة كآبيتآل ..

تسلم :$

Saudi%20Flag.gif

Saudi Arabia

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