Jump to content

تصحيح


Recommended Posts

Posted
-- 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 )

ليه الباس م يتغير ؟
* انا عامل لوحه اكتب فيها اسم الحساب و الباس و يتغيرون *

Posted
22 minutes ago, 3laa33 said:

-_- انت مافي منك اثنين
راجع اسم التريجر

نفس الشي في حاجه غلط بلكود

الاكونت غير معرف تقريبا

Posted
1 minute ago, Ahmed Araby said:

ي اخي يجي بالدي بق أن كل شي تمام الا الاكونت غير معرف 

طيب حط اللي يجي بالديبق

 

Posted
2 minutes ago, 3laa33 said:

طيب حط اللي يجي بالديبق

 

Bad argument " setAccountPassword "

Expected account at aegument 1 

got string 'ahmed'

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

Posted
15 minutes ago, Ahmed Araby said:

Bad argument " setAccountPassword "

Expected account at aegument 1 

got string 'ahmed'

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

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

Posted (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 by Deativated
Posted
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|

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