Jump to content

مسأأعده بلييز


RdX

Recommended Posts

السلام عليكم ورحمة الله وبركاته

مشكلتي هي ان الاسم يتغير لمن اأشر على الفريد

لكن الفلوس تبقى فلوسي ما تتغير لفلوس الي مأأشر عليه

اذا ما فهمتو تفهمو من الصوره

c948ffb36ab70ab80c1ccbcc4ca95050.png

شوفو الاسم و الفلوس حقتي

b91896bfda30a651a3e5c1a09924c381.png

شوفو الاسم تغير و الفلوس لا

ممكن مسأأعده

Link to comment

كود الاسم

  
addEventHandler( "onClientGUIClick", resourceRoot, function(  ) 
  if ( source == gridOnlinePlayers ) then 
        local select = guiGridListGetItemText ( source, guiGridListGetSelectedItem ( source ), 1 ) 
        if ( select and select ~= '' ) then 
               guiSetText( namestats, ""..select ) 
           end 
      end 
end ) 
  

كود الفلوس

  
addEventHandler( "onClientGUIClick", resourceRoot, function(  ) 
  if ( source == gridOnlinePlayers ) then 
        local select = getPlayerMoney ( source, getPlayerMoney ( source ), 1 ) 
        if ( select and select ~= '' ) then 
               guiSetText( Moneystats, "Money : "..select ) 
           end 
      end 
end ) 
  

Link to comment

انت قاعد تجيب فلوس الزر :lol:

لازم تسوي تريقر عشان تجيب الفلوس حق اللاعبين لأن فنكشن الكلنت ماله أرقمنت , وهو لوكل على اللاعب

Edited by Guest
Link to comment
-- Client -- 
addEventHandler ( "onClientGUIClick", resourceRoot,  
    function (  ) 
        if ( source == gridOnlinePlayers ) then 
            local select = guiGridListGetItemText ( source, guiGridListGetSelectedItem ( source ), 1 ); 
            if ( select and select ~= "" ) then 
                triggerServerEvent ( "getMoney", localPlayer, select ); 
            end 
        end  
    end 
); 
  
addEvent ( "SetMoneyInLabel", true ); 
addEventHandler ( "SetMoneyInLabel", root,  
    function ( money ) 
        guiSetText ( Moneystats, "Money : " .. money ); 
    end 
); 

-- Server -- 
addEvent ( "getMoney", true ); 
addEventHandler ( "getMoney", root,  
    function ( name ) 
        local gPlayer = getPlayerFromName ( name ); 
        if gPlayer == false then return end 
        local pMoney = getPlayerMoney ( gPlayer ); 
        triggerClientEvent ( source, "SetMoneyInLabel", source, pMoney ); 
    end 
); 

Link to comment
-- Server -- 
addEvent ( "getMoney", true ); 
addEventHandler ( "getMoney", root, 
    function ( select ) 
        local gPlayer = getPlayerFromName ( select); 
        if gPlayer == false then return end 
        local pMoney = getPlayerMoney ( gPlayer ); 
        triggerClientEvent ( source, "SetMoneyInLabel", source, pMoney ); 
    end 
); 

Link to comment
-- Server -- 
addEvent ( "getMoney", true ); 
addEventHandler ( "getMoney", root, 
    function ( select ) 
        local gPlayer = getPlayerFromName ( select); 
        if gPlayer == false then return end 
        local pMoney = getPlayerMoney ( gPlayer ); 
        triggerClientEvent ( source, "SetMoneyInLabel", source, pMoney ); 
    end 
); 

وش غيرت اصلا؟ هههه

انت غيرت مسمى البارتمنتس .. هذا ما يأثر

+ كودي ماشوف فيه شيء غلط

يمكن تكون المشكلة من مودك اطرح الكود كامل..

Link to comment

جرب

-------- Client Side 
addEventHandler( "onClientGUIClick", guiRoot, function(  ) 
    if source == gridOnlinePlayers then 
    selectg = guiGridListGetItemText ( source, guiGridListGetSelectedItem ( source ), 1 ) 
        if  selectg and selectg ~= '' then 
        triggerServerEvent("onGirldClick",localPlayer,selectg)     
        end 
    end 
end 
) 
  
addEvent("GPI",true) 
addEventHandler("GPI",root, 
function (Money,Name) 
   guiSetText(namestats,tostring(Name)) 
   guiSetText(Moneystats,"$"..Money) 
end 
) 

  
----------Server Side 
addEvent("onGirldClick",true) 
addEventHandler("onGirldClick",root, 
function (gselect) 
   local gPlayer = getPlayerFromName(gselect) 
    pMoney = getPlayerMoney(gselect) 
   triggerClientEvent(source,"GPI",source,pMoney,gselect) 
end 
) 
  

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