Author Topic: what's wrong with this format?  (Read 661 times)

Quick question- I get syntax errors when I use this console command via the servercommandgui-
Code: [Select]
yaw(getRandom(-1000,1000));pit­ch(getRandom(-1000,1000));$spa­z::sched=schedule(33,0,spaz);
Can someone correct this for me?

You somehow have some sort of hidden character inbetween a and z in that global variable name.

Try this:
Code: [Select]
yaw(getRandom(-1000,1000));pit­ch(getRandom(-1000,1000));$spaz::sched=schedule(33,0,spaz);

Works fine for me when I throw it in console.

I did notice what Ipquarx noticed though.

hidden characters: the bane of torquescript

Oh ok, didn't see that, thanks!

edit- still getting a syntax error? :o
I copy/pasted what you posted, so I'm not sure what I'm doing wrong.
It does work fine, but I'd rather have no console error spam
« Last Edit: August 22, 2012, 06:37:49 PM by Mysteroo »

You somehow have some sort of hidden character inbetween a and z in that global variable name.
What the forget is a hidden char?


Take a wild guess
Wtf there's a - when i put it somewhere

How does it work

Wtf there's a - when i put it somewhere

How does it work

Your web browser doesn't display the character, but whatever other program you put the text in does display it.

Your web browser doesn't display the character, but whatever other program you put the text in does display it.
but how


What do you mean? It's as I said.
how do i create one