^iiEcoo'x_) Posted July 29, 2016 Posted July 29, 2016 السلام عليكم واجهت مشكلة ابي الي فاز من الجدول يعلن مين فاز ! function checkForWinner(cHk) if cHk then TopKill = {} end if not isTimer(standByMission) and not isTimer(startTheMission) then if #BoxTable > 0 then if not cHk then exports.TopBarChat:sendClientMessage("Win In Boxing Mission", root, 255, 255, 0) sortTop() if sortedTopKill[1] then exports.TopBarChat:sendClientMessage(""..sortedTopKill[1][1]..": "..sortedTopKill[1][2], root, 255, 0, 255) end exports.TopBarChat:sendClientMessage("The Boxing Mission was Draw!", root, 255, 100, 0) end for _, p in ipairs (BoxTable) do textDisplayRemoveObserver(Display, p) if not cHk then givePlayerMoney(p, 25000) end end
Bassam*Syria Posted July 29, 2016 Posted July 29, 2016 عليكم السلام تفضل جرب function checkForWinner(cHk) if cHk then TopKill = {} end if not isTimer(standByMission) and not isTimer(startTheMission) then if #BoxTable > 0 then if not cHk then exports.TopBarChat:sendClientMessage("Win In Boxing Mission", root, 255, 255, 0) sortTop() if sortedTopKill[1] then exports.TopBarChat:sendClientMessage(""..sortedTopKill[1][1]..": "..sortedTopKill[1][2], root, 255, 0, 255) end exports.TopBarChat:sendClientMessage("The Boxing Mission was Draw!", root, 255, 100, 0) end for _, p in ipairs (BoxTable) do textDisplayRemoveObserver(Display, p) if not cHk then givePlayerMoney(p, 25000) outputChatBox("بالمهمه "..getPlayerName(p).." فاز") end end
^iiEcoo'x_) Posted July 29, 2016 Author Posted July 29, 2016 وش سويت ؟ شف ذي تبين لك الفاز بالمهمة exports.TopBarChat:sendClientMessage(""..sortedTopKill[1][1]..": "..sortedTopKill[1][2], root, 255, 0, 255) end لانه يوجد نقاط !
Bassam*Syria Posted July 29, 2016 Posted July 29, 2016 مافي داعي اشوف مين فاز الكود حقك جاهز و الي فاز ياخذ 25 الف كل الي سويته اني فت كود ان يظهر اسم الاعب الي فاز for _, p in ipairs (BoxTable) do textDisplayRemoveObserver(Display, p) if not cHk then givePlayerMoney(p, 25000) end end والالمنت معرفه كل الي سويته outputChatBox("بالمهمه "..getPlayerName(p).." فاز") p = الي فاز كود اظار كلام بالشات outputChatBox يجيب اسم الاعب getPlayerName
^iiEcoo'x_) Posted July 29, 2016 Author Posted July 29, 2016 انت فاهم طلبي غير شوف انا مشكلتي مع ذي !! if #BoxTable > 0 then
Bassam*Syria Posted July 29, 2016 Posted July 29, 2016 (edited) ابي الي فاز من الجدول يعلن مين فاز ! ذا طلبك الي فاز من الجدول يعين الي باقي بالجدول يعلن مين فايز يطلع اسمه ذا الي انت كاتبه + الفنكشن ناقص نهايات end Edited July 29, 2016 by Guest
^iiEcoo'x_) Posted July 29, 2016 Author Posted July 29, 2016 الكود م فيه مشكلة وكل شي تمام بس الغلط من ذي if #BoxTable > 0 then
Bassam*Syria Posted July 29, 2016 Posted July 29, 2016 الكود م فيه مشكلة وكل شي تمام بس الغلط من ذي if #BoxTable > 0 then جرب function checkForWinner(cHk) if cHk then TopKill = {} BoxTable = {} end if not isTimer(standByMission) and not isTimer(startTheMission) then if #BoxTable > 0 then if not cHk then exports.TopBarChat:sendClientMessage("Win In Boxing Mission", root, 255, 255, 0) sortTop() if sortedTopKill[1] then exports.TopBarChat:sendClientMessage(""..sortedTopKill[1][1]..": "..sortedTopKill[1][2], root, 255, 0, 255) end exports.TopBarChat:sendClientMessage("The Boxing Mission was Draw!", root, 255, 100, 0) end for _, p in ipairs (BoxTable) do textDisplayRemoveObserver(Display, p) if not cHk then givePlayerMoney(p, 25000) end end
Bassam*Syria Posted July 29, 2016 Posted July 29, 2016 (edited) انا مسوي جدول كيف اسوي جدول ثاني عشان تضيف جدول لازم تعرفه مثال ابي اسوي جدول اسمه server server = {} وبعددين تشتغل عليه ب اضافه و تشيل براحتك Edited July 29, 2016 by Guest
Abdul KariM Posted July 29, 2016 Posted July 29, 2016 وش يطلع لك بالشات بذا الكود exports.TopBarChat:sendClientMessage(""..sortedTopKill[1][1]..": "..sortedTopKill[1][2], root, 255, 0, 255)
^iiEcoo'x_) Posted July 29, 2016 Author Posted July 29, 2016 كذا يضبط ء function checkForWinner(cHk) if cHk then TopKill = {} end if not isTimer(standByMission) and not isTimer(startTheMission) then if #BoxTable > 0 then if not cHk then sortTop() end for _, p in ipairs (BoxTable) do textDisplayRemoveObserver(Display, p) if not cHk then givePlayerMoney(p, 25000) end end
Abdul KariM Posted July 29, 2016 Posted July 29, 2016 المفروض انك تجرب بنفسك قبل لاتقول لنا + اشرحلي المهمة عشان نعطيك طريقة تجيب فيها الفائز
Bassam*Syria Posted July 29, 2016 Posted July 29, 2016 المفروض انك تجرب بنفسك قبل لاتقول لنا + اشرحلي المهمة عشان نعطيك طريقة تجيب فيها الفائز هو حاط كود يعطي فلوس للي فاز يقدر يختصر كل ذا و يجيب اسمه
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