Jump to content

=][مشكلة | قريد ليست][=


Recommended Posts

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

سويت لوحة بيها زر و اديت بوكس

و لوحة اخرى فيها قريد ليست

الفايدة من هذه

ان اللاعب يكتب بالاديت بوكس كلمة و يدوس عالزر يتم ارسال الكلمة للقريد ليست

سويت هذا و نجح بس مب نجاح كامل

المفروض ان لما اى لاعب يرسل اللوحة تستقبل

لاكن يوم يجي لاعب يرسل

انا مقدر اشوف وش كتب هو

بس هو يقدر

ساعدونى

ارجوا سرعة الرد

شكرا مقدما :)

Link to comment

كل العايز اعرفه

وش راح ارسل بالتريقر

اكوادى :

#Client

addEventHandler("onClientGUIClick",root, 
function() 
if source == SendButton then 
if guiGetText(TypeCombo) == "The Type | النوع" then 
outputChatBox("# Error : Choose The Type Of Card",255,0,0) 
elseif guiGetText(TimeCombo) == "The Time | المدة" then 
outputChatBox("# Error : Choose The Period You Want To Take.",255,0,0) 
elseif guiGetText(editCard) == "" then 
outputChatBox("# Error : You Must Write The Card Number.",255,0,0) 
else 
triggerEvent("addRow",localPlayer) 
end 
end 
end 
) 

#Client

addEvent("addRow",true) 
addEventHandler("addRow",root, 
function() 
rowforrow = guiGridListAddRow(RentGrid) 
guiGridListSetItemText(RentGrid,rowforrow,5,guiGetText(editCard),false,false) 
guiGridListSetItemText(RentGrid,rowforrow,4,guiGetText(TimeCombo),false,false) 
guiGridListSetItemText(RentGrid,rowforrow,3,guiGetText(TypeCombo),false,false) 
guiGridListSetItemText(RentGrid,rowforrow,2,getPlayerSerial(getLocalPlayer()),false,false) 
guiGridListSetItemText(RentGrid,rowforrow,1,getPlayerName(getLocalPlayer()),false,false) 
outputChatBox("# Successful : Application Send Successfully , Wait For Admin To Apply It.",0,255,0) 
end 
) 

Link to comment

#Client

addEventHandler("onClientGUIClick",root, 
function() 
    if source == SendButton then 
        if guiGetText(TypeCombo) == "The Type | النوع" then 
            outputChatBox("# Error : Choose The Type Of Card",255,0,0) 
        elseif guiGetText(TimeCombo) == "The Time | المدة" then 
            outputChatBox("# Error : Choose The Period You Want To Take.",255,0,0) 
        elseif guiGetText(editCard) == "" then 
            outputChatBox("# Error : You Must Write The Card Number.",255,0,0) 
        else 
        triggerServerEvent("addRow",localPlayer,guiGetText(TypeCombo),guiGetText(TimeCombo),guiGetText(editCard)) 
        end 
    end 
end ) 
  
addEvent("addRowC",true) 
addEventHandler("addRowC",root, 
function (TypeCombo,TimeCombo,editCard,PlayerName,PlayerSerial) 
rowforrow = guiGridListAddRow(RentGrid) 
guiGridListSetItemText(RentGrid,rowforrow,5,editCard,false,false) 
guiGridListSetItemText(RentGrid,rowforrow,4,TimeCombo,false,false) 
guiGridListSetItemText(RentGrid,rowforrow,3,TypeComb,false,false) 
guiGridListSetItemText(RentGrid,rowforrow,2,PlayerSerial,false,false) 
guiGridListSetItemText(RentGrid,rowforrow,1,PlayerName,false,false) 
end ) 

#Server

addEvent("addRow",true) 
addEventHandler("addRow",root, 
function (TypeCombo,TimeCombo,editCard) 
    if ( TypeCombo,TimeCombo,editCard ) then 
        local PlayerName, PlayerSerial = getPlayerName(source), getPlayerSerial(source) 
        triggerClientEvent(root,"addRowC",root,TypeCombo,TimeCombo,editCard,PlayerName,PlayerSerial) 
        outputChatBox("# Successful : Application Send Successfully , Wait For Admin To Apply It.",source,0,255,0) 
    end 
end ) 
Link to comment
#Client

addEventHandler("onClientGUIClick",root, 
function() 
    if source == SendButton then 
        if guiGetText(TypeCombo) == "The Type | النوع" then 
            outputChatBox("# Error : Choose The Type Of Card",255,0,0) 
        elseif guiGetText(TimeCombo) == "The Time | المدة" then 
            outputChatBox("# Error : Choose The Period You Want To Take.",255,0,0) 
        elseif guiGetText(editCard) == "" then 
            outputChatBox("# Error : You Must Write The Card Number.",255,0,0) 
        else 
        triggerServerEvent("addRow",localPlayer,guiGetText(TypeCombo),guiGetText(TimeCombo),guiGetText(editCard)) 
        end 
    end 
end ) 
  
addEvent("addRowC",true) 
addEventHandler("addRowC",root, 
function (TypeCombo,TimeCombo,editCard,PlayerName,PlayerSerial) 
rowforrow = guiGridListAddRow(RentGrid) 
guiGridListSetItemText(RentGrid,rowforrow,5,editCard,false,false) 
guiGridListSetItemText(RentGrid,rowforrow,4,TimeCombo,false,false) 
guiGridListSetItemText(RentGrid,rowforrow,3,TypeComb,false,false) 
guiGridListSetItemText(RentGrid,rowforrow,2,PlayerSerial,false,false) 
guiGridListSetItemText(RentGrid,rowforrow,1,PlayerName,false,false) 
end ) 

#Server

addEvent("addRow",true) 
addEventHandler("addRow",root, 
function (TypeCombo,TimeCombo,editCard) 
    if ( TypeCombo,TimeCombo,editCard ) then 
        local PlayerName, PlayerSerial = getPlayerName(source), getPlayerSerial(source) 
        triggerClientEvent(root,"addRowC",root,TypeCombo,TimeCombo,editCard,PlayerName,PlayerSerial) 
        outputChatBox("# Successful : Application Send Successfully , Wait For Admin To Apply It.",source,0,255,0) 
    end 
end ) 

Error : Oserver.lua :20: ')' expected near ','

مب لاقى اساسا '(' ناحية ال ',' مساعدة

Link to comment
addEvent("addRowC",true) 
addEventHandler("addRowC",root, 
function (TypeCombo,TimeCombo,editCard,PlayerName,PlayerSerial) 
rowforrow = guiGridListAddRow(RentGrid) 
guiGridListSetItemText(RentGrid,rowforrow,5,editCard,false,false) 
guiGridListSetItemText(RentGrid,rowforrow,4,TimeCombo,false,false) 
guiGridListSetItemText(RentGrid,rowforrow,3,TypeCombo,false,false) 
guiGridListSetItemText(RentGrid,rowforrow,2,PlayerSerial,false,false) 
guiGridListSetItemText(RentGrid,rowforrow,1,PlayerName,false,false) 
end ) 

انا عرفت وش سبب ان التايب كومبو ماكنت تظهر

الحين المشكلة الباقية

انه يكرر

Link to comment

جرب بدل الكلنت بذا

addEventHandler("onClientGUIClick",root, 
function() 
    if source == SendButton then 
        local getTypeCombo = guiComboBoxGetItemText(TypeCombo, guiComboBoxGetSelected(TypeCombo)) 
        local getTimeCombo = guiComboBoxGetItemText(TimeCombo, guiComboBoxGetSelected(TimeCombo)) 
        if getTypeCombo == "The Type | النوع" then 
            outputChatBox("# Error : Choose The Type Of Card",255,0,0) 
        elseif getTimeCombo == "The Time | المدة" then 
            outputChatBox("# Error : Choose The Period You Want To Take.",255,0,0) 
        elseif guiGetText(editCard) == "" then 
            outputChatBox("# Error : You Must Write The Card Number.",255,0,0) 
        else 
            triggerServerEvent("addRow",localPlayer,getTypeCombo,getTimeCombo,guiGetText(editCard)) 
        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...