Jump to content

مساعده


Ahmed Eka

Recommended Posts

 الحين مشكلتي لما اضغط ع اسم اللاعب يجي مكان رقم المخدرات 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
  • TAPL locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...