Jump to content

مشكله في الليبل حق الفلوس


Recommended Posts

السلام عليكم

عندي كود ليبل بخليه يجيب فلوسك ضبط بس حاولت احط علامة الفلوس بعد getPlayerMoney

اللي هي $

ويطلع خطأ ويخرب كامل اليوزر

الكود :

        CashText = guiCreateLabel(35, 69, 200, 33, "Your Money : ", false, StatsWindow) 
        guiSetFont(CashText, "default-bold-small") 
function refreshStats() 
if guiGetVisible(StatsWindow,true) then 
else 
   guiSetText(CashText,"Your Money : $"..getPlayerMoney(getLocalPlayer())) 
    end 
end 
addEventHandler("onClientRender", getRootElement(), refreshStats) 

Link to comment
CashText = guiCreateLabel( 35, 69, 200, 33, "Your Money : ", false, StatsWindow ) 
guiSetFont( CashText, "default-bold-small" ) 
function refreshStats( ) 
    if guiGetVisible( StatsWindow ) then 
        guiSetText( CashText, "Your Money : $ "..getPlayerMoney( getLocalPlayer( ) ) ) 
    end 
end 
addEventHandler( "onClientRender", getRootElement( ), refreshStats ) 

Link to comment
  
 CashText = guiCreateLabel(35, 69, 200, 33, "Your Money : ", false, StatsWindow) 
        guiSetFont(CashText, "default-bold-small") 
function refreshStats() 
if guiGetVisible(StatsWindow,true) then 
else 
   guiSetText(CashText,"Your Money : "..getPlayerMoney.." $ "(getLocalPlayer())) 
    end 
end 
addEventHandler("onClientRender", getRootElement(), refreshStats) 
  
  
  

الكود غير مجرب :$

Edited by Guest
Link to comment
CashText = guiCreateLabel( 35, 69, 200, 33, "Your Money : ", false, StatsWindow ) 
guiSetFont( CashText, "default-bold-small" ) 
function refreshStats( ) 
    if guiGetVisible( StatsWindow ) then 
        guiSetText( CashText, "Your Money :"..getPlayerMoney( ).." $" ) 
    end 
end 
addEventHandler( "onClientRender", getRootElement( ), refreshStats ) 

جرب ذا

Link to comment
CashText = guiCreateLabel( 35, 69, 200, 33, "Your Money : ", false, StatsWindow ) 
guiSetFont( CashText, "default-bold-small" ) 
function refreshStats( ) 
    if guiGetVisible( StatsWindow ) then 
        guiSetText( CashText, "Your Money :"..getPlayerMoney( ).." $" ) 
    end 
end 
addEventHandler( "onClientRender", getRootElement( ), refreshStats ) 

جرب ذا

شكراً لك , الكود شغال :)

تم حل المشكله , آنتهى

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