Jump to content

تصحيح كود .


Recommended Posts

السلام عليكم .

الحين الاخ كيلر ظبطلي الكود بس ناقصلي مشكله

وهي يجيب بل دي بق شي بخصوص الارقمنت بل سطر ذا

اول شي خطا في ملف سيرفر 

function noacc ()
	for id, player in ipairs(getElementsByType("player")) do
		if ( getPlayerAccount ( accname ) ) and not isGuestAccount ( ( getPlayerAccount ( player ) ) ) then
			if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Console" ) ) then
				setElementData ( player, "Console", getAccountName ( getPlayerAccount ( Console ) ) )
			if
				setElementData ( player, "accname", "noacc" )
			then
		else
			setElementData ( Console, "accname", "noacc" )
		end
	end
end

test1 ()

المشكله بخصوص اول سطر واخر سطر 

بشي يتعلق الاغلاق end

 

تاني مشكله

ارقمنت ف كلينت

السطر ذا

column = guiGridListAddColumn( accNameList, "Player", 0.85 )

--- شي يتعلق بذا مكتوبه ذي  guiGridListAddColumn

 

Link to comment
Just now, -#GoDa said:

السلام عليكم .

الحين الاخ كيلر ظبطلي الكود بس ناقصلي مشكله

وهي يجيب بل دي بق شي بخصوص الارقمنت بل سطر ذا

اول شي خطا في ملف سيرفر 


function noacc ()
	for id, player in ipairs(getElementsByType("player")) do
		if ( getPlayerAccount ( accname ) ) and not isGuestAccount ( ( getPlayerAccount ( player ) ) ) then
			if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Console" ) ) then
				setElementData ( player, "Console", getAccountName ( getPlayerAccount ( Console ) ) )
			if
				setElementData ( player, "accname", "noacc" )
			then
		else
			setElementData ( Console, "accname", "noacc" )
		end
	end
end

test1 ()

المشكله بخصوص اول سطر واخر سطر 

بشي يتعلق الاغلاق end

 

تاني مشكله

ارقمنت ف كلينت

السطر ذا


column = guiGridListAddColumn( accNameList, "Player", 0.85 )

--- شي يتعلق بذا مكتوبه ذي  guiGridListAddColumn

 

كمل في موضوعك السابق + انت مكمل الاكواد بطريقة غلط

Link to comment
function noacc ()
	for id, player in ipairs(getElementsByType("player")) do
		if ( getPlayerAccount ( accname ) ) and not isGuestAccount ( ( getPlayerAccount ( player ) ) ) then
			if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Console" ) ) then
				setElementData ( player, "Console", getAccountName ( getPlayerAccount ( Console ) ) )
				
				setElementData ( player, "accname", "noacc" )
		else
			setElementData ( Console, "accname", "noacc" )
		    end
	    end
end end

ثاني مشكلة تأكد من اسم القريد لست 

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...