Forum

> > CS2D > Scripts > What's wrong here?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch What's wrong here?

11 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt What's wrong here?

4Vendetta
User Off Offline

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

alt Re: What's wrong here?

Apache uwu
User Off Offline

Zitieren
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

alt Re: What's wrong here?

Infinite Rain
Reviewer Off Offline

Zitieren
user 4Vendetta hat geschrieben
@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"!!!
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht