RdX Posted April 24, 2014 Share Posted April 24, 2014 السلام عليكم ورحمة الله وبركاته مشكلتي هي ان الاسم يتغير لمن اأشر على الفريد لكن الفلوس تبقى فلوسي ما تتغير لفلوس الي مأأشر عليه اذا ما فهمتو تفهمو من الصوره شوفو الاسم و الفلوس حقتي شوفو الاسم تغير و الفلوس لا ممكن مسأأعده Link to comment
RdX Posted April 24, 2014 Author Share Posted April 24, 2014 كود الاسم 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
jafar Posted April 24, 2014 Share Posted April 24, 2014 (edited) انت قاعد تجيب فلوس الزر لازم تسوي تريقر عشان تجيب الفلوس حق اللاعبين لأن فنكشن الكلنت ماله أرقمنت , وهو لوكل على اللاعب Edited April 24, 2014 by Guest Link to comment
RdX Posted April 24, 2014 Author Share Posted April 24, 2014 كأأمبتدىء شيء كويس طيب علمني كيف Link to comment
RdX Posted April 24, 2014 Author Share Posted April 24, 2014 طيب ممكن حد يسويلي التريقر ادري انه نضام تعلم لاكن انتم سأأعدوني Link to comment
jafar Posted April 24, 2014 Share Posted April 24, 2014 -- 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
RdX Posted April 24, 2014 Author Share Posted April 24, 2014 نفس الشيء صلحت الخطأء لكن الفلوس ثأأبته ما تتغير بس تجي للاأأعب حق الجهاز Link to comment
Mr-M3AND Posted April 24, 2014 Share Posted April 24, 2014 -- 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
jafar Posted April 24, 2014 Share Posted April 24, 2014 -- 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
iMr.Dawix~# Posted April 25, 2014 Share Posted April 25, 2014 جرب -------- 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now