Forum

> > CS2D > Scripts > timer error
Forums overviewCS2D overview Scripts overviewLog in to reply

English timer error

6 replies
To the start Previous 1 Next To the start

old timer error

En-Kay
User Off Offline

Quote
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')

Quote
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
edited 1×, last 02.09.14 12:01:35 pm

old Re: timer error

Mora
User Off Offline

Quote
timer(100, "projectile_timeuse")

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

old Re: timer error

MikuAuahDark
User Off Offline

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

old Re: timer error

_Yank
User Off Offline

Quote
@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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview