Jump to content

طلب


SycroX

Recommended Posts

سلام عليكم

انا مسوي لوحة

بها زر

و اديت بوكس

ابي لما اكتب سريال حد

بلأيديت بوكس

و ادوس الزر

يضيفني لجدول انا مسويه

مثلا

جدول

local Serials = { 
    ["Serials"] = true, 
} 
Link to comment

onClientGUIClick مثال علي حدث

addEventHandler("onClientGUIClick",root, 
function () 
if source == button then ----- يتحقق ان الزر الي انت تبيه اضغط عليه 
----Your Code 
end 
) 

guiGetText مثال علي فنكشن

addEventHandler("onClientGUIClick",root, 
function () 
if source == button then ----- يتحقق ان الزر الي انت تبيه اضغط عليه 
guiGetText(Editbox) ---- يجيب الي مكتوب في الاديت بوكس 
end 
) 

table.insert + وذا شرح للجدول

Edited by Guest
Link to comment

onClientGUIClick مثال علي حدث

addEventHandler("onClientGUIClick",root, 
function () 
if source == button then ----- يتحقق ان الزر الي انت تبيه اضغط عليه 
----Your Code 
end 
) 

guiGetText مثال علي فنكشن

addEventHandler("onClientGUIClick",root, 
function () 
if source == button then ----- يتحقق ان الزر الي انت تبيه اضغط عليه 
guiGetText(Editbox) ---- يجيب الي مكتوب في الاديت بوكس 
end 
) 

table.insert + وذا شرح للجدول

-_-

ما في مبرمج ما يعرف اول

+ لا تفكرني مبتداء

عموما

شكرا

جدا

كنت محتاج شرح للجداول وشرح بو ساعدني

Edited by Guest
Link to comment

طيب بلمرة

وش المشكلة

هنا

  
addEvent("BuyVIP", true) 
addEventHandler("BuyVIP", root, 
function() 
local Money = getElementData(source,"moneycoins") or 0 
if tonumber(Money) >= tonumber(20000000) then 
if  ( getPlayerAccount( source ) and not isGuestAccount( getPlayerAccount( source) ) ) then 
if not ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "VIP" ) ) ) then 
aclGroupAddObject(aclGetGroup("VIP"), "user."..getAccountName ( getPlayerAccount ( source ) )) 
exports["guimessages"]:outputServer(source, "you had successfully Buy VIP Member" , 0, 255, 0) 
setElementData(source,"moneycoins",(getElementData(source,"moneycoins") or 0) - 20000000) 
            end 
        end 
    end 
end 
) 

Link to comment
طيب بلمرة

وش المشكلة

هنا

  
addEvent("BuyVIP", true) 
addEventHandler("BuyVIP", root, 
function() 
local Money = getElementData(source,"moneycoins") or 0 
if tonumber(Money) >= tonumber(20000000) then 
if  ( getPlayerAccount( source ) and not isGuestAccount( getPlayerAccount( source) ) ) then 
if not ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "VIP" ) ) ) then 
aclGroupAddObject(aclGetGroup("VIP"), "user."..getAccountName ( getPlayerAccount ( source ) )) 
exports["guimessages"]:outputServer(source, "you had successfully Buy VIP Member" , 0, 255, 0) 
setElementData(source,"moneycoins",(getElementData(source,"moneycoins") or 0) - 20000000) 
            end 
        end 
    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...