Ahmed Araby Posted April 12, 2017 Share Posted April 12, 2017 -- client if ( source == Change ) then local account = guiGetText(UserNameEditPass) local newpass = guiGetText(PasswordEditPass) triggerServerEvent("ChangeAccountPass",localPlayer,account,newpass) end --server addEvent ( "SetAccountPass", true ) addEventHandler ( "SetAccountPass", root, function ( account,newpass ) setAccountPassword(account,newpass) end ) ليه الباس م يتغير ؟ * انا عامل لوحه اكتب فيها اسم الحساب و الباس و يتغيرون * Link to comment
AE. Posted April 12, 2017 Share Posted April 12, 2017 انت مافي منك اثنين راجع اسم التريجر Link to comment
Ahmed Araby Posted April 12, 2017 Author Share Posted April 12, 2017 22 minutes ago, 3laa33 said: انت مافي منك اثنين راجع اسم التريجر نفس الشي في حاجه غلط بلكود الاكونت غير معرف تقريبا Link to comment
Ahmed Araby Posted April 12, 2017 Author Share Posted April 12, 2017 1 minute ago, 3laa33 said: حط كلينت كامل ي اخي يجي بالدي بق أن كل شي تمام الا الاكونت غير معرف Link to comment
AE. Posted April 12, 2017 Share Posted April 12, 2017 1 minute ago, Ahmed Araby said: ي اخي يجي بالدي بق أن كل شي تمام الا الاكونت غير معرف طيب حط اللي يجي بالديبق Link to comment
Ahmed Araby Posted April 12, 2017 Author Share Posted April 12, 2017 2 minutes ago, 3laa33 said: طيب حط اللي يجي بالديبق Bad argument " setAccountPassword " Expected account at aegument 1 got string 'ahmed' هو اسم الحساب ahmed Link to comment
AE. Posted April 12, 2017 Share Posted April 12, 2017 15 minutes ago, Ahmed Araby said: Bad argument " setAccountPassword " Expected account at aegument 1 got string 'ahmed' هو اسم الحساب ahmed المفروض متاحط الاسم المفروض تحط الاكونت getAccount(اسم الاكونت) Link to comment
Adham Posted April 12, 2017 Share Posted April 12, 2017 (edited) جرب addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == button ) then local Account = guiGetText ( Editname ) local Pass = guiGetText ( Editpass ) if ( Account ~= "" and Pass ~= "" ) then triggerServerEvent ( "Set", localPlayer, Account, Pass ) else outputChatBox ( "أكمل البيانات" ) end end end) -- سرفر addEvent ( "Set", true ) addEventHandler ( "Set", root, function ( Account, Pass ) local Acc = getAccount (Account) if ( not Acc ) then outputChatBox ("خطأ في الحساب",source,255,5,5) return end setAccountPassword(Acc,Pass) end) تم التجربه # Edited April 12, 2017 by Deativated Link to comment
Abdul KariM Posted April 12, 2017 Share Posted April 12, 2017 @Deativated ماهي معرفةguiRoot اول سطر Link to comment
Adham Posted April 12, 2017 Share Posted April 12, 2017 addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == button ) then local Account = guiGetText ( Editname ) local Pass = guiGetText ( Editpass ) if ( Account ~= "" and Pass ~= "" ) then triggerServerEvent ( "Set", localPlayer, Account, Pass ) else outputChatBox ( "أكمل البيانات" ) end end end) تشكر ع التنبيه Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now