Ahmed Eka Posted September 5, 2016 Share Posted September 5, 2016 الحين مشكلتي لما اضغط ع اسم اللاعب يجي مكان رقم المخدرات nil ممكن مساعده؟ [lua] function setStats ( player, god, speed, lsd, heroin, weed, steroids, mescaline ) if ( source == GUIEditor_Grid[1] ) then row, col = guiGridListGetSelectedItem ( GUIEditor_Grid[1] ) if ( row ~= -1 and col ~= -1 ) then local playername = guiGridListGetItemText ( GUIEditor_Grid[1], row, col ) local thePlayer = getPlayerFromName ( playername ) if ( thePlayer ) then guiSetText(lblGod, " God "..(tostring(god) or 0)) guiSetText(lblLSD, " LSD ".. (tostring(lsd) or 0)) guiSetText(lblHeroin, " Heroin ".. (tostring(heroin) or 0)) guiSetText(lblWeed, " Weed ".. (tostring(weed) or 0)) guiSetText(lblSteroids," Steroids"..(tostring(steroids) or 0)) guiSetText(lblMescaline, " Mescaline "..(tostring(mescaline) or 0 )) end end end end addEvent("Drugs:showDrugsGUI", true) addEventHandler("Drugs:showDrugsGUI", localPlayer, setStats) addEventHandler ( "onClientGUIDoubleClick", root, setStats ) [/lua] Link to comment
a7zan Posted September 5, 2016 Share Posted September 5, 2016 ممكن الاعب نفسه ماعنده مخدرات ، وموضوع واحد يكفي .-. Link to comment
Ahmed Eka Posted September 5, 2016 Author Share Posted September 5, 2016 2 hours ago, a7zan said: ممكن الاعب نفسه ماعنده مخدرات ، وموضوع واحد يكفي .-. لا عندي Link to comment
TAPL Posted September 5, 2016 Share Posted September 5, 2016 10 hours ago, a7zan said: موضوع واحد يكفي ^ Link to comment
Recommended Posts