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

Bugs that are actually features.
User avatar
ludsoe
Fast Inserter
Fast Inserter
Posts: 245
Joined: Tue Feb 11, 2014 8:16 am
Contact:

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

Post 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.
Last edited by ludsoe on Tue Feb 24, 2015 1:41 am, edited 2 times in total.
keyboardhack
Filter Inserter
Filter Inserter
Posts: 478
Joined: Sat Aug 23, 2014 11:43 pm
Contact:

Re: [0.11.16] Checking charactor on disconnected player erro

Post by keyboardhack »

It's d.character instead of d.charactor
https://forums.factorio.com/wiki/inde ... /Character
Waste of bytes : P
User avatar
ludsoe
Fast Inserter
Fast Inserter
Posts: 245
Joined: Tue Feb 11, 2014 8:16 am
Contact:

Re: [0.11.16] Checking charactor on disconnected player erro

Post 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:
Post Reply

Return to “Not a bug”