Forum

> > CS2D > Scripts > timer error
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch timer error

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt timer error

En-Kay
User Off Offline

Zitieren
Ok so I get this error in the console for this timer:

1
timer(100,"parse",'spawnprojectile "..id.." 72 "..player(id,"x").." "..player(id,"y").." 64 45')

Zitat
ERROR: Unknown command '64' (spawnprojectile "..id.." 72 "..player(id,"x").." "..player(id,"y").." 64 45)
[11:45:37] Use quotation marks for parameters with blanks. e.g.: mp_unbuyable "Tactical Shield"
[11:45:37] Visit CS2D.com/help for a command reference
1× editiert, zuletzt 02.09.14 12:01:35

alt Re: timer error

Mora
User Off Offline

Zitieren
timer(100, "projectile_timeuse")

function projectile_timeuse(id)
parse("spawnprojectile "..id.." 72 "..player(id,"x").." "..player(id,"y").." 45")
end

alt Re: timer error

MikuAuahDark
User Off Offline

Zitieren
1
timer(100,"parse","spawnprojectile "..id.." 72 "..player(id,"x").." "..player(id,"y").." 64 45")

alt Re: timer error

_Yank
User Off Offline

Zitieren
@user MikuAuahDark: At least tell him what he did wrong O.o
@user En-Kay: The problem is that you started the string argument with ' and concatenated ( .. ) with ", you must use the same character.

Bad:
1
2
object = "chair"
"This is a '..object
Correct:
1
2
object = "chair"
"This is a "..object
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht