Jump to content

ياريت تشوفو الحل


bshr1997

Recommended Posts

السلام عليكم

انا سويت قاءمة info

وسويت فيها الفلوس والبنق والاسم .........الخ

المهم ما يتغيرون الا اذا جيت اغير الاسم

مافي كود يخليها تتغير كل ثانية

الطلب الثاني:

سعد عطاني النك العربي بس المشكلة يكرر بالتاج النك الانجليزي والنك العربي

الي يعرف يصلح المشكلة ارسله التاج والمود خاص لانها حصرية صراحة

مشكورين سلف

Link to comment

انا بطرح البنق

 playerPing = guiCreateLabel (6,120,300,70,'Your Ping :'.. getPlayerPing(localPlayer) ..'', false, info ) 
guiLabelSetColor(playerPing,0,127,255) 
addEventHandler ( 
    'onClientPlayerChangeNick', getLocalPlayer( ), 
    function ( ) 
        guiSetText (playerPing, 'Your Ping :'.. getPlayerPing(localPlayer) ..'' ) 
    end 
) 
  

المشكلة ما يتغير الا اذا ديت اغير الاسم

هو شغال وكل شي

بس ما يتغير الا اذا غير ت اسمي

وش الحل؟

وعشان التكرار ما ادري صاحب المود : سعد يقبل او لا

Link to comment
انا بطرح البنق
 playerPing = guiCreateLabel (6,120,300,70,'Your Ping :'.. getPlayerPing(localPlayer) ..'', false, info ) 
guiLabelSetColor(playerPing,0,127,255) 
addEventHandler ( 
    'onClientPlayerChangeNick', getLocalPlayer( ), 
    function ( ) 
        guiSetText (playerPing, 'Your Ping :'.. getPlayerPing(localPlayer) ..'' ) 
    end 
) 
  

المشكلة ما يتغير الا اذا ديت اغير الاسم

هو شغال وكل شي

بس ما يتغير الا اذا غير ت اسمي

وش الحل؟

وعشان التكرار ما ادري صاحب المود : سعد يقبل او لا

Fix COd

playerPing = guiCreateLabel(6,120,300,70,'Your ping:',false,info) 
guiSetText ( playerPing, getPlayerPing(localPlayer)) 
function refreshStats() 
if guiGetVisible(info,true) then 
   playerPing(playerPing," "..getPlayerPing(getLocalPlayer())) 
else 
   guiSetText(playerPing,"Your ping :"..getPlayerPing(getLocalPlayer())) 
    end 
end 
addEventHandler("onClientRender", getRootElement(), refreshStats) 

Link to comment

حاط فيه كود ماينفع CreateLabel عندكـ خطأ بـ

و يجب مراعات الإيفنت

يعني تغيير البنق واضح شيء متكرر مو ثابت

اما انت حاط إيفنت عند تغيير النك تبدأ الوظيفة @@"

  
playerPing = guiCreateLabel (6,120,300,70,"Your Ping :", false, info ) 
guiLabelSetColor(playerPing,0,127,255) 
  
addEventHandler ("onClientRender", root, 
    function ( ) 
        guiSetText (playerPing, "Your Ping :".. getPlayerPing(localPlayer)) 
    end 
) 
  

Link to comment
Fix COd
playerPing = guiCreateLabel(6,120,300,70,'Your ping:',false,info) 
guiSetText ( playerPing, getPlayerPing(localPlayer)) 
function refreshStats() 
if guiGetVisible(info,true) then 
   playerPing(playerPing," "..getPlayerPing(getLocalPlayer())) 
else 
   guiSetText(playerPing,"Your ping :"..getPlayerPing(getLocalPlayer())) 
    end 
end 
addEventHandler("onClientRender", getRootElement(), refreshStats) 

االسطر 5 ؟؟؟؟

Link to comment
Fix COd
playerPing = guiCreateLabel(6,120,300,70,'Your ping:',false,info) 
guiSetText ( playerPing, getPlayerPing(localPlayer)) 
function refreshStats() 
if guiGetVisible(info,true) then 
   playerPing(playerPing," "..getPlayerPing(getLocalPlayer())) 
else 
   guiSetText(playerPing,"Your ping :"..getPlayerPing(getLocalPlayer())) 
    end 
end 
addEventHandler("onClientRender", getRootElement(), refreshStats) 

االسطر 5 ؟؟؟؟

playerPing = guiCreateLabel(6,120,300,70,'Your ping:',false,info) 
guiSetText ( playerPing, getPlayerPing(localPlayer)) 
function refreshStats() 
if guiGetVisible(info,true) then 
else 
   guiSetText(playerPing,"Your ping :"..getPlayerPing(getLocalPlayer())) 
    end 
end 
addEventHandler("onClientRender", getRootElement(), refreshStats) 

:mrgreen:

Link to comment
playerPing = guiCreateLabel(6,120,300,70,'Your ping:',false,info) 
guiSetText ( playerPing, getPlayerPing(localPlayer)) 
function refreshStats() 
if guiGetVisible(info,true) then 
else 
   guiSetText(playerPing,"Your ping :"..getPlayerPing(getLocalPlayer())) 
    end 
end 
addEventHandler("onClientRender", getRootElement(), refreshStats) 

:mrgreen:

false اها يعني اذا صارت اللوحة

تبدأ الوظيفة

ممتاز جداً :/

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