Jump to content

وش الكلمه الي اكتبها باف 8 علشان اعرف المشاكل الي بالكود


Recommended Posts

1 minute ago, MARIY said:

 طيب اخي في استفسار اخير

في مود لازم اشغلو ولا لا

لااع

الدي بق يتثبت مع اللعبة ماتقدر تطفيه ولا تسويله شي

لول ليه اكتب هيك !!!!؟؟؟؟؟

Link to comment

ذا الكود الي فيه المشكله

p_4528vpfm1.png

local www = dxCreateFont("arial.ttf",13)
function ()
    for i,k in ipairs (getElementsByType("player")) do
        if k ~= localPlayer and getElementData (k,"MASRIY") then
            dxDrawTextOnElement(k,getElementData (k,"MASRIY") or '',1,20,0,0,255,255,1,www)
        if ( getElementData (k,"MASRIY") == '[Console]' or  getElementData (k,"MASRIY") == '[Head.Admin]' or  getElementData (k,"MASRIY") == '[Councils]' ) then
            dxDrawTextOnElement(k,getElementData (k,"MASRIY") or '',1,20,math.random(0, 255), math.random(0, 255), math.random(0, 255),255,1,www)
                else if ( getElementData (k,"MASRIY") ~= '[Console]' or  getElementData (k,"MASRIY") ~= '[[Head.Admin]' or  getElementData (k,"MASRIY") ~= '[Councils]' ) then
            end
        end
    end
end
 
setTimer( function()
removeEventHandler( 'onClientRender', root, render )
addEventHandler( 'onClientRender', root, render )
end, 300, 0 )

 

Link to comment
1 hour ago, MARIY said:

ذا الكود الي فيه المشكله

p_4528vpfm1.png


local www = dxCreateFont("arial.ttf",13)
function ()
    for i,k in ipairs (getElementsByType("player")) do
        if k ~= localPlayer and getElementData (k,"MASRIY") then
            dxDrawTextOnElement(k,getElementData (k,"MASRIY") or '',1,20,0,0,255,255,1,www)
        if ( getElementData (k,"MASRIY") == '[Console]' or  getElementData (k,"MASRIY") == '[Head.Admin]' or  getElementData (k,"MASRIY") == '[Councils]' ) then
            dxDrawTextOnElement(k,getElementData (k,"MASRIY") or '',1,20,math.random(0, 255), math.random(0, 255), math.random(0, 255),255,1,www)
                else if ( getElementData (k,"MASRIY") ~= '[Console]' or  getElementData (k,"MASRIY") ~= '[[Head.Admin]' or  getElementData (k,"MASRIY") ~= '[Councils]' ) then
            end
        end
    end
end
 
setTimer( function()
removeEventHandler( 'onClientRender', root, render )
addEventHandler( 'onClientRender', root, render )
end, 300, 0 )

 

طيب,

اكتب في اف 8 

debugscript 3

وبعدين سوي اعادة تشغيل لـ المود وقولنا وش يقولك

Link to comment
Just now, MARIY said:

ذا الكود الي فيه المشكله

p_4528vpfm1.png


local www = dxCreateFont("arial.ttf",13)
function ()
    for i,k in ipairs (getElementsByType("player")) do
        if k ~= localPlayer and getElementData (k,"MASRIY") then
            dxDrawTextOnElement(k,getElementData (k,"MASRIY") or '',1,20,0,0,255,255,1,www)
        if ( getElementData (k,"MASRIY") == '[Console]' or  getElementData (k,"MASRIY") == '[Head.Admin]' or  getElementData (k,"MASRIY") == '[Councils]' ) then
            dxDrawTextOnElement(k,getElementData (k,"MASRIY") or '',1,20,math.random(0, 255), math.random(0, 255), math.random(0, 255),255,1,www)
                else if ( getElementData (k,"MASRIY") ~= '[Console]' or  getElementData (k,"MASRIY") ~= '[[Head.Admin]' or  getElementData (k,"MASRIY") ~= '[Councils]' ) then
            end
        end
    end
end
 
setTimer( function()
removeEventHandler( 'onClientRender', root, render )
addEventHandler( 'onClientRender', root, render )
end, 300, 0 )

 

 

جرب

 

local www = dxCreateFont("arial.ttf",13)
function render ()
    for i,k in ipairs (getElementsByType("player")) do
        if k ~= localPlayer and getElementData (k,"MASRIY") then
            dxDrawTextOnElement(k,getElementData (k,"MASRIY") or '',1,20,0,0,255,255,1,www)
        if ( getElementData (k,"MASRIY") == '[Console]' or  getElementData (k,"MASRIY") == '[Head.Admin]' or  getElementData (k,"MASRIY") == '[Councils]' ) then
            dxDrawTextOnElement(k,getElementData (k,"MASRIY") or '',1,20,math.random(0, 255), math.random(0, 255), math.random(0, 255),255,1,www)
                else if ( getElementData (k,"MASRIY") ~= '[Console]' or  getElementData (k,"MASRIY") ~= '[[Head.Admin]' or  getElementData (k,"MASRIY") ~= '[Councils]' ) then
            end
        end
    end
end
 
setTimer( function()
removeEventHandler( 'onClientRender', root, render )
addEventHandler( 'onClientRender', root, render )
end, 5000, 1 )

 

Link to comment
14 hours ago, MARIY said:

ذا الكود الي فيه المشكله

p_4528vpfm1.png


local www = dxCreateFont("arial.ttf",13)
function ()
    for i,k in ipairs (getElementsByType("player")) do
        if k ~= localPlayer and getElementData (k,"MASRIY") then
            dxDrawTextOnElement(k,getElementData (k,"MASRIY") or '',1,20,0,0,255,255,1,www)
        if ( getElementData (k,"MASRIY") == '[Console]' or  getElementData (k,"MASRIY") == '[Head.Admin]' or  getElementData (k,"MASRIY") == '[Councils]' ) then
            dxDrawTextOnElement(k,getElementData (k,"MASRIY") or '',1,20,math.random(0, 255), math.random(0, 255), math.random(0, 255),255,1,www)
                else if ( getElementData (k,"MASRIY") ~= '[Console]' or  getElementData (k,"MASRIY") ~= '[[Head.Admin]' or  getElementData (k,"MASRIY") ~= '[Councils]' ) then
            end
        end
    end
end
 
setTimer( function()
removeEventHandler( 'onClientRender', root, render )
addEventHandler( 'onClientRender', root, render )
end, 300, 0 )

 

 

سطر 2 الوظيفه لازم يكون لها اسم, وآخر 4 اسطر مالها اي فايده وتايمر لا نهائي!!

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