Jump to content

Support


Ahmed Eka

Recommended Posts

12 hours ago, CodyL said:

okey what's wrong ?

	
local players = {}
function TimerFunc(players)
players[player] = 0
if getElementData(players[player],"NukePlayer") then
outputChatBox("1")
players[player] = players[player] + 1
outputChatBox(players[player])
if players[player] == 10 then
				setElementData(player,"NukePlayer",false)
		if isElement(marker [ player ]) then
		destroyElement(marker [ player ])
		if isElement(object [ player ]) then
		destroyElement(object [ player ])
		players[player] = 0
end
end
end
end
end
setTimer(TimerFunc,1000,0)

??

Link to comment

Player is undefined

 

    	
    local players = {}
    function TimerFunc()
    players[player] = 0
    if getElementData(players[player],"NukePlayer") then
    outputChatBox("1")
    players[player] = players[player] + 1
    outputChatBox(players[player])
	end
    if players[player] == 10 then
    				setElementData(player,"NukePlayer",false)
    		if isElement(marker [ player ]) then
    		destroyElement(marker [ player ])
			end
    		if isElement(object [ player ]) then
    		destroyElement(object [ player ])
    		players[player] = 0
			end
    end
    setTimer(TimerFunc,1000,0)

 

Link to comment
12 hours ago, CodyL said:

Player is undefined

 


    	
    local players = {}
    function TimerFunc()
    players[player] = 0
    if getElementData(players[player],"NukePlayer") then
    outputChatBox("1")
    players[player] = players[player] + 1
    outputChatBox(players[player])
	end
    if players[player] == 10 then
    				setElementData(player,"NukePlayer",false)
    		if isElement(marker [ player ]) then
    		destroyElement(marker [ player ])
			end
    		if isElement(object [ player ]) then
    		destroyElement(object [ player ])
    		players[player] = 0
			end
    end
    setTimer(TimerFunc,1000,0)

 

debug says the table is nil and the code isn't workin ..

the marker and the object isn't hide ,,

Link to comment
10 hours ago, M[A]X said:

debug says the table is nil and the code isn't workin ..

the marker and the object isn't hide ,,

it's normal that the debug would show you that error , because ' player ' undefined.

and the script in client side? if yes , Nobody will see the marker you've created .

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