Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,449 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
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
S
silencer Offline OP
Member
silencer  Offline OP
Member
S

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 Offline
Senior Expert
Quad  Offline
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
S
silencer Offline OP
Member
silencer  Offline OP
Member
S

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: silencer] #245992
01/12/09 21:58
01/12/09 21:58
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
It seems that "someVar" is actually not a var, probably a long value.

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
O
Ottawa Offline
User
Ottawa  Offline
User
O

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 smile

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 Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
try:

Code:
var temp;
vec_set(temp, nullvector);
temp = fcos(camera.tilt, someVar);


or even:

Code:
var temp;
vec_set(temp, fcos(camera.tilt, someVar));


regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1