Home   Help Search Login Register  

Author Topic: invakid number in expression  (Read 701 times)

0 Members and 1 Guest are viewing this topic.

skramble

  • Guest
invakid number in expression
« on: 17 Aug 2003, 12:30:16 »
When im trying to make some script work and write in units init field for example
[] exec "skript.sqs" i get message wich says invalid number in expression. What do i do wrong? ??? please help me...

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:invakid number in expression
« Reply #1 on: 17 Aug 2003, 13:19:48 »
The statement: [] exec "skript.sqs"
is correct.

Your errormessage comes from the script itself.

As you don't pass any parameters or variables to
that script ([] indicates what has to be passed to the script),
i assume that the script requires something to be passed
with the exec statement.

So you need to post the context of the script you want to
start.

Especially watch out for lines like: _whatever = _this select 0
or _whatever = _this select _anyothernumber
or _whatever = _this

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

skramble

  • Guest
Re:invakid number in expression
« Reply #2 on: 18 Aug 2003, 20:39:09 »
the script was from some tutorial:

TitleText ["Hello!", "plain down"]

Exit

 :P

Agent Fire

  • Guest
Re:invakid number in expression
« Reply #3 on: 18 Aug 2003, 21:42:39 »
I find that I get this alot because I've got an extra space at the start, end, or in between two words

Flann

  • Guest
Re:invakid number in expression
« Reply #4 on: 19 Aug 2003, 18:24:01 »
You are using the wrong symbols.
Use
TitleText [ "Hello!", "plain down" ]
instead of
TitleText [ "Hello!", "plain down" ]

skramble

  • Guest
Re:invakid number in expression
« Reply #5 on: 20 Aug 2003, 18:53:43 »
That was the problem :P Thanks :)