Ahmed Ly Posted March 14, 2016 Share Posted March 14, 2016 (edited) السلام عليكم انا سويت لوحة تقدر تغير رمز حسابك Server function password (NewPassword) local user = getAccountName(getPlayerAccount(source)) setAccountPassword(user,NewPassword) end addEvent("pass",true) addEventHandler("pass",root,password) و مشكله في debugscript [2016-03-13 22:37:40] WARNING: sss\s_ahmed.lua:6: Bad argument @ 'setAccountPassword' [Expected account at argument 1, got string 'BEHIG'] Edited March 14, 2016 by Guest Link to comment
Jupi Posted March 14, 2016 Share Posted March 14, 2016 السلام عليكم انا سويت لوحة تقدر تغير رمز حسابك كلنت function but () if source == GUIEditor.button[1] then local NewPassword =guiGetText(GUIEditor.edit[1] ) outputChatBox("تم تغير كلمة السر بنجاح ",225,15,88) playSoundFrontEnd(30) triggerServerEvent("pass",localPlayer,NewPassword) end end addEventHandler("onClientGUIClick",root,but) سيرفر function password (NewPassword) local user = getAccountName(getPlayerAccount(source)) setAccountPassword(user,NewPassword) end addEvent("pass",true) addEventHandler("pass",root,password) و مشكله في debugscript [2016-03-13 22:37:40] WARNING: sss\s_ahmed.lua:6: Bad argument @ 'setAccountPassword' [Expected account at argument 1, got string 'BEHIG'] اول ارقمنت يبي الحساب نفسه مو اسمه استعمل getAccount Link to comment
!#NssoR_) Posted March 14, 2016 Share Posted March 14, 2016 addEvent("pass",true) function password (NewPassword) setAccountPassword(getPlayerAccount(source),tonumber(NewPassword)) end addEventHandler("pass",root,password) Link to comment
Ahmed Ly Posted March 14, 2016 Author Share Posted March 14, 2016 addEvent("pass",true) function password (NewPassword) setAccountPassword(getPlayerAccount(source),tonumber(NewPassword)) end addEventHandler("pass",root,password) شكرا لك 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