Forum

> > CS2D > Scripts > Errors
Forums overviewCS2D overview Scripts overviewLog in to reply

English Errors

6 replies
To the start Previous 1 Next To the start

old Errors

ShouldBeNew
BANNED Off Offline

Quote
I keep getting errors every time i use lua script i mean i exec it and i get errors. It happens on rtd, mapvote and more please tell me. Also none of them work.

old Re: Errors

Avo
User Off Offline

Quote
Could you be more precise? What errors are you getting exactly?

old Re: Errors

Rainoth
Moderator Off Offline

Quote
Getting an error means that you did something wrong and the script can't be executed in a way you (or someone else) wrote it.
I don't see the question here. What do you want ?

old Re: Errors

ShouldBeNew
BANNED Off Offline

Quote
When i type exec sys/lua/mapvote.lua
This happens:
Spoiler >
edited 1×, last 20.10.13 02:05:25 pm

old Re: Errors

EngiN33R
Moderator Off Offline

Quote
You mustn't use cs2d cmd exec on Lua files, that command is for config files only. This is how you execute a Lua script from the console:

1
lua dofile("sys/lua/mapvote.lua")

old Re: Errors

ShouldBeNew
BANNED Off Offline

Quote
user EngiN33R has written
You mustn't use cs2d cmd exec on Lua files, that command is for config files only. This is how you execute a Lua script from the console:

1
lua dofile("sys/lua/mapvote.lua")

Dude thanks all works now

old Re: Errors

omg
User Off Offline

Quote
lmfao best debug print ever
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview