|
2 registered members (TipmyPip, 1 invisible),
18,699
guests, and 8
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
fcos? result cannot be stored within a var?
#245988
01/12/09 21:36
01/12/09 21:36
|
Joined: Jul 2005
Posts: 192 Orange County
silencer
OP
Member
|
OP
Member
Joined: Jul 2005
Posts: 192
Orange County
|
var temp;
temp = fcos(camera.tilt, someVar);
This errors out with some type of type def error. I remember this being valid in C-Script. How can this be stored in C-Lite?
AMD 64 x2 4400+
2048mb DDR3200
NVidia 6800GS 256mb
Soundblaster Audigy 2
A7 Commercial 7.07
|
|
|
Re: fcos? result cannot be stored within a var?
[Re: silencer]
#245989
01/12/09 21:39
01/12/09 21:39
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
temp is no-more in lite-c.
define a var yourself and it should work.
3333333333
|
|
|
Re: fcos? result cannot be stored within a var?
[Re: Quad]
#245990
01/12/09 21:44
01/12/09 21:44
|
Joined: Jul 2005
Posts: 192 Orange County
silencer
OP
Member
|
OP
Member
Joined: Jul 2005
Posts: 192
Orange County
|
Thanks for the tip, I don't think that's it though. I defined a new var, and I still get:
Syntax Error: Can't convert MUL:LONG:FIXED:FIXED
That's pretty minimal output, and I'm finding it hard to decipher what's actually wrong...
AMD 64 x2 4400+
2048mb DDR3200
NVidia 6800GS 256mb
Soundblaster Audigy 2
A7 Commercial 7.07
|
|
|
Re: fcos? result cannot be stored within a var?
[Re: Lukas]
#246403
01/15/09 00:07
01/15/09 00:07
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
User
|
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi! Did you try to change this var temp; to vector temp = {x=0;y=0;z=0;{ //can't find the closing  Ottawa
|
|
|
Re: fcos? result cannot be stored within a var?
[Re: Ottawa]
#246514
01/15/09 13:58
01/15/09 13:58
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
Expert
|
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
try:
var temp;
vec_set(temp, nullvector);
temp = fcos(camera.tilt, someVar);
or even:
var temp;
vec_set(temp, fcos(camera.tilt, someVar));
regards,
|
|
|
|
|
|