Jump to content

تصحيح اكود


Recommended Posts

السلام عليكم

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

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 by Guest
Link to comment
السلام عليكم

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

كلنت

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

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...