Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/26/26 17:55
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
7 registered members (TipmyPip, Martin_HH, Volkovstudio, AndrewAMD, JMMAC, Grant, 1 invisible), 5,432 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 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