Jump to content

خطأ بسيط في كود هل من مصحح له ؟


iPrestege

Recommended Posts

بسم الله الرحمن الرحيم

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

شباب اليوم جيت بسوي لوحة

بس تعارض معي شيء

اولا الـ IP

مايطلع باللبل

ثانيا

الـ Skin

مايطلع نفس الاي بي

ثالثا

البنق ماينحسب مثل البقية

الكود المستخدم :

addEventHandler("onClientRender", getRootElement(), 
function () 
if guiGetVisible(GUIEditor_Window[1]) then 
   guiSetText(GUIEditor_Label[1],"Your Name: "..getPlayerName(getLocalPlayer())) 
   guiSetText(GUIEditor_Label[5],"Your Money: "..getPlayerMoney(getLocalPlayer())) 
   guiSetText(GUIEditor_Label[3],"Your Serial: "..getPlayerSerial(getLocalPlayer())) 
  guiSetText(GUIEditor_Label[4],"Your IP: "..getPlayerIP(getLocalPlayer())) 
  guiSetText(GUIEditor_Label[7],"Your Skin: "..getPlayerSkin(getLocalPlayer())) 
     guiSetText (GUIEditor_Label[2],"Your Ping: "..getPlayerPing(getLocalPlayer()).."  " )    
    end 
end ) 

ارجو تصحيح الكود :roll:

Link to comment

كلنت

addEventHandler("onClientRender", root, 
function () 
    if(guiGetVisible(GUIEditor_Window[1])~=false)then 
        guiSetText(GUIEditor_Label[1],"Your Name: "..getPlayerName(localPlayer)) 
        guiSetText(GUIEditor_Label[5],"Your Money: "..getPlayerMoney(localPlayer)) 
        guiSetText(GUIEditor_Label[3],"Your Serial: "..getPlayerSerial(localPlayer)) 
        triggerServerEvent("getPing",localPlayer) 
        guiSetText(GUIEditor_Label[7],"Your Skin: "..getElementID(localPlayer)) 
        guiSetText (GUIEditor_Label[2],"Your Ping: "..getPlayerPing(localPlayer))   
    end 
end) 
  
addEvent("settingText",true) 
addEventHandler("settingText",root, 
function(ip) 
    guiSetText(GUIEditor_Label[4],"Your IP :" .. ip) 
end) 

سيرفر

addEvent("getPing",true) 
addEventHandler("getPing",root, 
function() 
    local ip=getPlayerIP(client) 
    triggerClientEvent(client,"settingText",client,ip) 
end) 
  

Edited by Guest
Link to comment

اللي مانفع

الاي بي :

سيرفر :

addEvent("getIP",true) 
addEventHandler("getIP",root, 
function() 
    local ip=getPlayerIP(client) 
    triggerClientEvent(client,"settingText",client,ip) 
end) 
  

الشخصية

سيرفر :

addEvent("getElementID",true) 
addEventHandler("getElementID",root, 
function() 
    local ip=getPlayerIP(client) 
    triggerClientEvent(client,"settingText",client,ip) 
end) 

:roll:

Link to comment
اللي مانفع

الاي بي :

سيرفر :

addEvent("getIP",true) 
addEventHandler("getIP",root, 
function() 
    local ip=getPlayerIP(client) 
    triggerClientEvent(client,"settingText",client,ip) 
end) 
  

الشخصية

سيرفر :

addEvent("getElementID",true) 
addEventHandler("getElementID",root, 
function() 
    local ip=getPlayerIP(client) 
    triggerClientEvent(client,"settingText",client,ip) 
end) 

:roll:

لانك لازم تحط اسم السكربت عندك في قروب الادمن

resource.script

Link to comment

بخصوص كود الشخصية جرب هذا

addEvent("getPlayerSkin",true) 
addEventHandler("getPlayerSkin",root, 
function() 
    local Skin=getPlayerSkin(client) 
    triggerClientEvent(client,"settingText",client,Skin) 
end) 

كود اللي يجيب ايدي الشخصية كذا

getPlayerSkin 

Edited by Guest
Link to comment
بجرب وارد لك تسلم ^_^

تسلم تيتي والله ماقصرت :roll:

بس بشغلك باخر شيء ماشتغل الشخصية :roll:

جرب ذا كلنت

    addEventHandler("onClientRender", root, 
    function () 
        if(guiGetVisible(GUIEditor_Window[1])~=false)then 
            guiSetText(GUIEditor_Label[1],"Your Name: "..getPlayerName(localPlayer)) 
            guiSetText(GUIEditor_Label[5],"Your Money: "..getPlayerMoney(localPlayer)) 
            guiSetText(GUIEditor_Label[3],"Your Serial: "..getPlayerSerial(localPlayer)) 
            triggerServerEvent("getPing",localPlayer) 
            guiSetText(GUIEditor_Label[7],"Your Skin: "..getElementModel(localPlayer)) 
            guiSetText (GUIEditor_Label[2],"Your Ping: "..getPlayerPing(localPlayer))   
        end 
    end) 
      
    addEvent("settingText",true) 
    addEventHandler("settingText",root, 
    function(ip) 
        guiSetText(GUIEditor_Label[4],"Your IP :" .. ip) 
    end) 

Edited by Guest
Link to comment
بخصوص كود الشخصية جرب هذا
addEvent("getPlayerSkin",true) 
addEventHandler("getPlayerSkin",root, 
function() 
    local Skin=getPlayerSkin(client) 
    triggerClientEvent(client,"settingText",client,Skin) 
end) 

كود اللي يجيب ايدي الشخصية كذا

getPlayerSkin 

تي تسعة

لاحظ

This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be an alternative (usually more generic) way of performing what it once did.

Please use getElementModel

Link to comment
بخصوص كود الشخصية جرب هذا
addEvent("getPlayerSkin",true) 
addEventHandler("getPlayerSkin",root, 
function() 
    local Skin=getPlayerSkin(client) 
    triggerClientEvent(client,"settingText",client,Skin) 
end) 

كود اللي يجيب ايدي الشخصية كذا

getPlayerSkin 

تي تسعة

لاحظ

This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be an alternative (usually more generic) way of performing what it once did.

Please use getElementModel

hhhhhhhhhhh

Have you noticed that it is working :mrgreen:

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