Page 1 of 1

[mybrain] Not a error just stupidity please move/remove

Posted: Tue Feb 24, 2015 1:19 am
by ludsoe

Code: Select all

	for i,d in pairs(game.players) do
		if d and d.valid then
			if d.charactor then
				if d.charactor.valid then
					F(i,d)
				end
			end
		end
	end
The game just errors and tells me that it doesn't exist when im trying to check if it exists.

Re: [0.11.16] Checking charactor on disconnected player erro

Posted: Tue Feb 24, 2015 1:27 am
by keyboardhack
It's d.character instead of d.charactor
https://forums.factorio.com/wiki/inde ... /Character

Re: [0.11.16] Checking charactor on disconnected player erro

Posted: Tue Feb 24, 2015 1:40 am
by ludsoe
keyboardhack wrote:It's d.character instead of d.charactor
https://forums.factorio.com/wiki/inde ... /Character
Oh your right, I missed that typo... Sorry everybody My bad :oops: