Jump to content

مشكلة في كووووووووود


Recommended Posts

function setStats() 
    local row, col = guiGridListGetSelectedItem(source) 
    if (row and col and row ~= -1 and col ~= -1) then 
        local playername = guiGridListGetItemText(source,row,col) 
        local thePlayer = getPlayerFromName(playername) 
        if (thePlayer) then 
            local pteam = getPlayerTeam(thePlayer) 
                if (pteam) then 
                    teamname = getTeamName(pteam) 
                else 
                    teamname = "N/A" 
                end 
            local x, y, z = getElementPosition ( player ) 
            local occupation = getElementData(thePlayer,"cor.job") 
            local group = getElementData(thePlayer,"Group") 
            local wl = getElementData(thePlayer,"WantLvl") 
            local zone = getZoneName ( x, y, z ) 
            local playtime = getElementData(thePlayer,"PlayTime") 
            local cash = getElementData(thePlayer, "Money") 
            local ping = getPlayerPing(thePlayer) 
            guiSetText(NickLab,"Name: ".. tostring(playername)) 
            guiSetText(LocLab,"Zone: ".. tostring(zone)) 
            guiSetText(OccLab,"Occupation: ".. tostring(occupation)) 
            guiSetText(WLLab,"Wanted Level: ".. tostring(wl)) 
            guiSetText(MonLab,"Cash: ".. tostring(cash)) 
            guiSetText(TeamLab,"Team: ".. tostring(teamname)) 
            guiSetText(TimeLab,"Playtime: ".. tostring(playtime)) 
            guiSetText(PingLab,"Ping: ".. tostring(ping)) 
            guiSetText(GroupLab,"Group: ".. tostring(group)) 
        end 
    end 
end 
addEventHandler("onClientGUIDoubleClick",StatsGrid,setStats,false) 

وين المشكلة يظهرلي حتى لو معه نجوم او قروب يكتبلي false

الي يعملو بس Ping و Name و Team

وما يظهرلي في الدو بيق شيئ

Link to comment

مدري وش تقصد بس اذا كنت تقصد انك تضغط على اسمه مره وما يطلع لك المعلومات حقته

هذي بسبب الحدث انت حطيته اول م تضغط دبل كلك يعني مرتين ورا بعض تبيه من ضغطه كذا ..

function setStats() 
    local row, col = guiGridListGetSelectedItem(source) 
    if (row and col and row ~= -1 and col ~= -1) then 
        local playername = guiGridListGetItemText(source,row,col) 
        local thePlayer = getPlayerFromName(playername) 
        if (thePlayer) then 
            local pteam = getPlayerTeam(thePlayer) 
                if (pteam) then 
                    teamname = getTeamName(pteam) 
                else 
                    teamname = "N/A" 
                end 
            local x, y, z = getElementPosition (thePlayer) 
            local occupation = getElementData(thePlayer,"cor.job") 
            local group = getElementData(thePlayer,"Group") 
            local wl = getElementData(thePlayer,"WantLvl") 
            local zone = getZoneName ( x, y, z ) 
            local playtime = getElementData(thePlayer,"PlayTime") 
            local cash = getElementData(thePlayer, "Money") 
            local ping = getPlayerPing(thePlayer) 
            guiSetText(NickLab,"Name: ".. tostring(playername)) 
            guiSetText(LocLab,"Zone: ".. tostring(zone)) 
            guiSetText(OccLab,"Occupation: ".. tostring(occupation)) 
            guiSetText(WLLab,"Wanted Level: ".. tostring(wl)) 
            guiSetText(MonLab,"Cash: ".. tostring(cash)) 
            guiSetText(TeamLab,"Team: ".. tostring(teamname)) 
            guiSetText(TimeLab,"Playtime: ".. tostring(playtime)) 
            guiSetText(PingLab,"Ping: ".. tostring(ping)) 
            guiSetText(GroupLab,"Group: ".. tostring(group)) 
        end 
    end 
end 
addEventHandler("onClientGUIClick",StatsGrid,setStats,false) 

Edited by Guest
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...