Jump to content

مشكلة


Recommended Posts

السلام عليكم

واجهت مشكلة

ابي الي فاز من الجدول يعلن مين فاز !

  
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 
  
  
  
  
  
  

Link to comment

عليكم السلام تفضل جرب

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 
  

Link to comment

مافي داعي اشوف مين فاز الكود حقك جاهز و الي فاز ياخذ 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

Link to comment
ابي الي فاز من الجدول يعلن مين فاز !

ذا طلبك

الي فاز من الجدول يعين الي باقي بالجدول

يعلن مين فايز يطلع اسمه ذا الي انت كاتبه

+ الفنكشن ناقص نهايات

end

Edited by Guest
Link to comment
الكود م فيه مشكلة وكل شي تمام

بس الغلط من ذي

        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 
  

Link to comment
:o:o:o:shock::shock:

انا مسوي جدول

كيف اسوي جدول ثاني

:shock::shock::shock::o:o

عشان تضيف جدول لازم تعرفه

مثال ابي اسوي جدول اسمه server

  
server = {} 
  
  

وبعددين تشتغل عليه ب اضافه و تشيل  براحتك

Edited by Guest
Link to comment

كذا يضبط

ء

  
  
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 
  
  

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...