Jump to content

فنكشات


Recommended Posts

2 minutes ago, Deativated said:

اطرح سطر 133 .. ونا عدلت الكود خده مره تانيه

خطا سطر رقم 133 تاني              

				outputChatBox('the player name ['..getAccountName(player)..'] and he is data '..data..' .',root,255,255,255,true)

 

Link to comment
4 minutes ago, Deativated said:

outputChatBox( "the player name "..getAccountName(player).." and he is data "..data.." ",root,255,255,255,true )

لو جالك خطأ تاني اطرح الدي بق

WARNING:SCRIPT\SERVER.lua:133:bad argument @ 'getAccountName'[expected account at argument 1 ,got player]

ERROR:SCRIPT\SERVER.lua:133: ATTEMPT TOP CONCATENATE LOCAL'DATA'(A BOOLEAN VALUE)

Link to comment

جرب ذا اتمنى االاكواد ماتجي ملخبطة لاني جوال

addEvent( "showchatdata",true )
addEventHandler( "showchatdata",root,
	function()
          for k,player in ipairs( "player" )do
			local data = getElementData( player,'dataname' )
			local acc  =getPlayerAccount( player )
			if not isGuestAccount( acc ) then
        if data then
				outputChatBox('the account name ['..getAccountName(acc)..'] and his data '..data..' .',root,255,255,255,true)
			else
				outputChatBox('Player is not logged in !',root,255,0,0,true)
          end
		end
	end
end)

 

Edited by #BrosS
Link to comment
2 minutes ago, #BrosS said:

جرب ذا اتمنى االاكواد ماتجي ملخبطة لاني جوال


addEvent( "showchatdata",true )
addEventHandler( "showchatdata",root,
	function()
          for k,player in ipairs( "player" )do
			local data = getElementData( player,'dataname' )
			local acc  =getPlayerAccount( player )
			if not isGuestAccount( acc ) then
        if data then
				outputChatBox('the account name ['..getAccountName(acc)..'] and his data '..data..' .',root,255,255,255,true)
			else
				outputChatBox('Player is not logged in !',root,255,0,0,true)
          end
		end
	end
end)

 

ERROR:SCRIPT\SERVER.lua:133: bad argument #1 to 'ipairs' (table expected, got string)

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