Jump to content

مشكلة الترآيقر *


a7zan

Recommended Posts

السلام عليكم ورحمة الله وبركاته

صممت لوحة معلومات الاعب تمام ؟

المشكلة إن لما ابي اجيب إسم حساب الاعب ، الفنكشن سيرفر #

وجربت اسوي ترايقر بس ماضبط يقول لي الخطاء هنا

  
-- Client # 
  
function () -- هنا يقول لي خطاء ! 
triggerServerEvent("accc", getLocalPlayer() 
    end 
end 
) 

-- Server # 
  
  
addEvent("accc" , true )  
addEventHandler("accc", root,  
function () 
local accc = getAccountName(theAccount) 
  
end 
) 

والدي بوق يقول

ERROR: Loading script failed: SSS\ClienT.lua:21:'' expected near '('

Edited by Guest
Link to comment

  
-- Server # 
  
addEvent("accc" , true )  
addEventHandler("accc", root,  
function () 
local accc = getAccountName(theAccount) 
  
end 
) 
  

-- Client # 
  
function acc() 
triggerServerEvent("accc", getLocalPlayer()) 
end 
  
  

الدي بوق

ERROR: SsS\ClienT.lua:12: attempt to concatenate global 'accc' (a nill value) 

سطر 12

        dxDrawText("Your Name Account : " .. accc, 402, 450, 1012, 493, tocolor(255, 255, 255, 255), 0.70, "bankgothic", "left", "top", false, false, false, false, false) 
  
Link to comment

-- Server # 
  
addEventHandler("onPlayerLogin", root, 
function (_,acc) 
if (acc) then 
setElementData (source, "AccName", getAccountName (acc)) 
end 
end 
) 
  
-- Client # 
  
        dxDrawText("Your Name Account : " ..(getElementData (localPlayer, "AccName") or "N/A"), 402, 450, 1012, 493, tocolor(255, 255, 255, 255), 0.70, "bankgothic", "left", "top", false, false, false, false, false) 
Edited by Guest
Link to comment

المشكلة هي ارقمنتات زائدة

جرب هذا

-- Server # 
  
addEventHandler("onResourceStart", root, 
function () 
for k, v in ipairs (getElementsByType ("player")) do 
local ipp = getPlayerIP (v) 
if (ipp) then 
setElementData (v, "ip", ipp) 
end 
end 
end 
) 
Link to comment

addEventHandler("onResourceStart", root, 
function () 
for k, v in ipairs (getElementsByType ("player")) do 
local ipp = getPlayerIP (v) 
if (ipp) then 
setElementData (v, "ip", ipp) 
end 
end 
end 
) 

كان ناقص قوس

شكراً #

Edited by Guest
Link to comment
^

قوس ناقص

addEventHandler("onResourceStart", root, 
    function (  ) 
    for k, v in ipairs ( getElementsByType ( "player" ) ) do  
    local ipp = getPlayerIP ( v ) 
    if ( ipp ) then 
    setElementData ( v , "ip", ipp ) 
            end 
        end 
    end 
        ); 

وش سويت غير انك حطيت مسافات ؟

Link to comment
^

قوس ناقص

addEventHandler("onResourceStart", root,
    function (  )
    for k, v in ipairs ( getElementsByType ( "player" ) ) do
    local ipp = getPlayerIP ( v )
    if ( ipp ) then
    setElementData ( v , "ip", ipp )
            end
        end
    end
        );

وش سويت غير انك حطيت مسافات ؟

حط كوده وقلت له عندك قوس ناقص

وعطيته الكود بعد ماحطيت القوس

وين المشكلة ؟

Link to comment

addCommandHandler("blur", function ( plr, cmd, level ) 
    blur = tonumber(level) 
    if not ( blur or blur > 255 or blur < 0 ) then 
        outputChatBox ( "Enter a value between 0 - 255.", plr, 255, 255, 255, true ) 
    else 
        setPlayerBlurLevel ( plr, blur ) 
        outputChatBox ( "Blur level set to: " .. blur, plr, 255, 0, 0, true ) 
    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...