Jump to content

تعديل بخصوص السقل ..


Recommended Posts

سلام عليكم

انا عامل لين يكتب في ال3 ايديت

يجي الكلام الجا في القريد لست

طلعت ودخلت ما لقتها محفوظه

..

محاولتي م ظبت= :wink:

كلنت :

addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == GUIEditor.button[1]) then 
            if ( guiGetText ( editname ) and guiGetText ( GUIEditor.edit[2] ) and guiGetText ( GUIEditor.edit[1] ) ~= '' ) then  
               local row = guiGridListAddRow ( gridlist) 
               guiGridListSetItemText (gridlist,row,Column1,guiGetText(editname),false,false) 
               guiGridListSetItemText (gridlist,row,Column2,guiGetText(edit),false,false) 
               guiGridListSetItemText (gridlist,row,Column3,guiGetText(GUIEditor.edit[1]),false,false)  
               triggerServerEvent("save",localPlayer,Column1,Column2,Column3)             
            end 
        end 
    end 
) 

addEvent("save",true) 
addEventHandler("save",root,function (Column1,Column2,Column3) 
local result = executeSQLQuery ( "SELECT * FROM `Save_Columns` WHERE `serial` = ?", getPlayerSerial (source) ) 
executeSQLQuery("INSERT INTO Save_Columns(serial,Column1,Column2,Column3) VALUES(?,?,?,?)",getPlayerSerial(source),Column1,Column2,Column3) 
triggerClientEvent (source, "Get:Columns",source,result) 
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...