Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Ayumi, Akow, AndrewAMD), 1,505 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İ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 | chip programmers | 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