Jump to content

تصحيح


Recommended Posts

-- 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
15 minutes ago, Ahmed Araby said:

Bad argument " setAccountPassword "

Expected account at aegument 1 

got string 'ahmed'

هو اسم الحساب ahmed

المفروض متاحط الاسم المفروض تحط الاكونت
getAccount(اسم الاكونت)

Link to comment

جرب

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 by Deativated
Link to comment
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)

تشكر ع التنبيهB|

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