kamel10 Posted June 5, 2015 Share Posted June 5, 2015 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
iMr.Dawix~# Posted June 6, 2015 Share Posted June 6, 2015 (edited) مدري وش تقصد بس اذا كنت تقصد انك تضغط على اسمه مره وما يطلع لك المعلومات حقته هذي بسبب الحدث انت حطيته اول م تضغط دبل كلك يعني مرتين ورا بعض تبيه من ضغطه كذا .. 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 June 6, 2015 by Guest Link to comment
TAPL Posted June 6, 2015 Share Posted June 6, 2015 مو معرف player في سطر 13 وما يظهرلي في الدو بيق شيئ Link to comment
kamel10 Posted June 6, 2015 Author Share Posted June 6, 2015 مو معرف player في سطر 13وما يظهرلي في الدو بيق شيئ طيب بس المشكلة مو بس ما يظهر لي مكان اللاعب حتى حتى نجومه و قروبه Link to comment
TAPL Posted June 6, 2015 Share Posted June 6, 2015 إذا ما ظهر لك النجوم و القروب معناتها الألمنت داتا ماهو موجود 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