Forum

> > CS2D > Scripts > What's wrong here?
Forums overviewCS2D overview Scripts overviewLog in to reply

English What's wrong here?

11 replies
To the start Previous 1 Next To the start

old What's wrong here?

4Vendetta
User Off Offline

Quote
1
2
3
4
5
function _endround()
     for _,id in ipairs(player(0,"team1")) do
          parse("makect "..id)
     end
end

old Re: What's wrong here?

Apache uwu
User Off Offline

Quote
Did you add a hook?

1
2
3
4
5
6
7
addhook("endround","_endround")

function _endround()
	for _,id in ipairs(player(0,"team1")) do
		parse("makect "..id)
	end
end

old Re: What's wrong here?

Infinite Rain
Reviewer Off Offline

Quote
user 4Vendetta has written
@user Infinite Rain: I don't like Tables.
@user Apache uwu: yes, bt I've trying another thing, I thinks this'll works!

Not tables -.- TABS!
Your script:
1
2
3
4
5
function _endround()
for _,id in ipairs(player(0,"team1")) do
parse("makect "..id)
end
end

must be:

1
2
3
4
5
function _endround()
	for _,id in ipairs(player(0,"team1")) do
		parse("makect "..id)
	end
end

That's called "Tabbing"!!!
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview