Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

x=y-5; x=y+5;

Maximus Zander
Registered User
Join date: 30 Apr 2004
Posts: 55
09-01-2004 23:57
Why does not the minus work?

Always i have to do like this for it to compile it:

x=y;
x-=5;

I want to be able to do:
x=y-5;

But it wont allow me.

If i do:
x=y+5;

that works.. why is minus sucha hard task.
Merlin Cohen
Junior Member
Join date: 4 Aug 2004
Posts: 1
minus to work
09-02-2004 00:04
You need spaces for that to work otherwise the compiler confuses it with -5 and y"-5" is a syntax error. Where y - 5 isnt. With it altogether the compiler can't translate it correct. Should it be a minus problem or -5.

=)

Merlin
Maximus Zander
Registered User
Join date: 30 Apr 2004
Posts: 55
09-02-2004 00:24
Ahh oki, thx.