السلام عليكم ورحمة الله وبركاته
بسم الله الرحمن الرحيم
شباب انا سويت لوحة تغير الباسورد هي شغاله اللوحة بس اذا بجي اضغط تغير مايجي في الشات انه يتغير ولا يتغير ابدأ وش المشكلةة
Client --
GUIEditor = {
button = {},
window = {},
label = {},
edit = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(208, 237, 407, 196, "..:[ لوحة تغير الباسورد من صنع قرطوس & فروتي ]:..", false)
guiWindowSetSizable(GUIEditor.window[1], false)
GUIEditor.edit[1] = guiCreateEdit(90, 88, 204, 42, "", false, GUIEditor.window[1])
GUIEditor.label[1] = guiCreateLabel(115, 63, 196, 31, "[ ضع باسوردك الجديد هنا ]", false, GUIEditor.window[1])
GUIEditor.button[1] = guiCreateButton(144, 141, 85, 30, "تغير.", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "default-bold-small")
GUIEditor.button[2] = guiCreateButton(346, 159, 52, 28, "Exit .", false, GUIEditor.window[1])
GUIEditor.label[2] = guiCreateLabel(370, 22, 50, 42, "*", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[2], "sa-gothic")
guiLabelSetColor(GUIEditor.label[2], 0, 252, 226)
GUIEditor.label[3] = guiCreateLabel(8, 19, 50, 38, "*", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[3], "sa-gothic")
guiLabelSetColor(GUIEditor.label[3], 42, 253, 0)
guiSetVisible(GUIEditor.window[1], false)
showCursor(false)
end
)
open = function()
guiSetVisible( GUIEditor.window[1], not guiGetVisible( GUIEditor.window[1] ) )
showCursor( guiGetVisible( GUIEditor.window[1] ) )
end
bindKey('F7','down',open)
function guiClick (button, state, absoluteX, absoluteY)
if (source ==GUIEditor.button[2]) then
guiSetVisible (GUIEditor.window[1], false)
showCursor (false)
end
end
addEventHandler ("onClientGUIClick", getRootElement(), guiClick)
function Frote ()
local text = guiGetText ( GUIEditor.edit[1] )
triggerServerEvent ( "Frote", getLocalPlayer(), text )
end
addEventHandler ( "onClientGUIClick", GUIEditor.button[1], Frote, false)
Server --
function Frote ( text )
local account = getPlayerAccount ( source )
if ( account ) then
if isGuestAccount ( account ) then
outputChatBox ( "Login on your account please.", source, 255, 255, 255, true )
else
setAccountPassword ( account, text )
outputChatBox ( "Your new password #ff0000"..text..".", source, 255, 255, 255, true )
end
end
end
addEvent ( "Frote", true )
addEventHandler ( "Frote", getRootElement(), Frote )
ارجو الحل بأسرع وقت --