^iiEcoo'x_) Posted August 20, 2016 Share Posted August 20, 2016 السلام عليكم !كيف احط الداتا ب قريد ليست ؟ Link to comment
Rockyz Posted August 20, 2016 Share Posted August 20, 2016 السلام عليكم !كيف احط الداتا ب قريد ليست ؟ اجل تقدر تسوي نفسه وافضل ؟ https://forum.multitheftauto.com/viewtopic.php?f=161&t=102226 Link to comment
فاّرس Posted August 20, 2016 Share Posted August 20, 2016 ايه عادي تقدر, كان جربت قبل ما تفتح موضوع . Link to comment
^iiEcoo'x_) Posted August 20, 2016 Author Share Posted August 20, 2016 الي يبي اكواد السجن يجي خاص لعيون شاطح Link to comment
!#NssoR_) Posted August 20, 2016 Share Posted August 20, 2016 وش تقصد بالداتا ؟ setElementData or guiGridListSetItemData وضح Link to comment
^iiEcoo'x_) Posted August 20, 2016 Author Share Posted August 20, 2016 سويت نقاط بس ابي اجيب النقاط بالقريد ليست Link to comment
فاّرس Posted August 20, 2016 Share Posted August 20, 2016 getElementData والنقاط ب وش مسويها؟ داتا؟ طيب عادي استخدم وتسلم Link to comment
^iiEcoo'x_) Posted August 20, 2016 Author Share Posted August 20, 2016 طيب كيف اجيب الداتا بالقريد ليست Link to comment
^iiEcoo'x_) Posted August 20, 2016 Author Share Posted August 20, 2016 كذا guiGridListSetItemData ? Link to comment
فاّرس Posted August 20, 2016 Share Posted August 20, 2016 وتبي تجيب الدانا وتحطها داخل الجريد ليست؟ setElementData مافهمتك, الحين معك داتا سويتها بالوظيفه guiGridListAddRow getElementData guiGridListSetItemText كذا او اني فهمتك غلط؟ Link to comment
^iiEcoo'x_) Posted August 21, 2016 Author Share Posted August 21, 2016 كذا ؟ addEvent("onClientReceiveTopListTable",true) addEventHandler("onClientReceiveTopListTable",root, function(t) rankTable = t UpdateTopList() end) function UpdateTopList() guiGridListClear(Gridilist) for k,v in ipairs(rankTable) do local row = guiGridListAddRow(Gridilist) guiGridListSetItemText(Gridilist,row,1,v["playerName"],false,false) guiGridListSetItemText(Gridilist,row,2,v["Value"],false,false) end end function onChangeNick(old,new) local acc = getPlayerAccount(source) if(acc and isGuestAccount(acc)==false)then local nickAcc = string.gsub(new,"#%x%x%x%x%x%x","") setAccountData(acc,"PlayerName",nickAcc) end end addEventHandler("onPlayerChangeNick",root,onChangeNick) addEvent("onTopPlayerListRequest",true) addEventHandler("onTopPlayerListRequest",root, function() local allAccounts = getAccounts() local sendTable = {} local data = 0 for k,v in ipairs(allAccounts) do if(data>0)then table.insert(sendTable,{["playerName"] = name,["Value"] = data}) end end table.sort(sendTable,function(a,b) return tonumber(a["Value"] or 0)>tonumber(b["Value"] or 0) end) table.setMaxIndex(sendTable,5) for i=1,#sendTable do end end for i=1,#sendTable do local acc = getAccount(sendTable[i]["playerName"]) local accRealName = getAccountData(acc,"PlayerName") if(accRealName and tostring(accRealName)~="false")then sendTable[i]["playerName"] = accRealName end end triggerClientEvent(client,"onClientReceiveTopListTable",client,sendTable) end) Link to comment
Mhmd.z Posted August 22, 2016 Share Posted August 22, 2016 مافي ترايقر بذا الاسم كيف حاطه بملف سيرفر؟ onTopPlayerListRequest Link to comment
^iiEcoo'x_) Posted August 22, 2016 Author Share Posted August 22, 2016 مافي ترايقر بذا الاسم كيف حاطه بملف سيرفر؟onTopPlayerListRequest مش فاهم ؟ Link to comment
Mhmd.z Posted August 22, 2016 Share Posted August 22, 2016 شي طبيعي انك مارح تفهم , انت فاهم كودك اول شي؟ انت حاط بملف سيرفر سطر 13 addEvent("onTopPlayerListRequest",true) onTopPlayerListRequest وين الترايقر يلي كذه اسمه ؟ Link to comment
^iiEcoo'x_) Posted August 22, 2016 Author Share Posted August 22, 2016 نسيته triggerServerEvent("onTopPlayerListRequest",localPlayer,text) Link to comment
^iiEcoo'x_) Posted August 22, 2016 Author Share Posted August 22, 2016 يوجد اخطاء اخرى ؟ 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