Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Newbie Questions
by AndrewAMD. 12/04/23 11:14
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
4 registered members (TipmyPip, Quad, alibaba, izorro), 545 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
vector array ?? #214657
07/06/08 08:29
07/06/08 08:29
Joined: Apr 2008
Posts: 437
dracula Offline OP
Senior Member
dracula  Offline OP
Senior Member

Joined: Apr 2008
Posts: 437
Hi

Some A6.22 code initializes an array with:
var move_vec[3] = 0,0,0;

Later we have:

if(move_vec[0] == 0 && move_vec[1] ==0)
etc, etc

I get syntax errors with Lite C. Can anyone tell me what the problem is please.



Thank you

Re: vector array ?? [Re: dracula] #214658
07/06/08 08:59
07/06/08 08:59
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
try

Code:
var move_vec[3] = {0,0,0};


Re: vector array ?? [Re: Joey] #214660
07/06/08 09:02
07/06/08 09:02
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
or try:

VECTOR move_vec;

Later we have:

if(move_vec.x == 0 && move_vec.y ==0)
etc, etc



Ubi bene, ibi Patria.
Re: vector array ?? [Re: croman] #214696
07/06/08 14:42
07/06/08 14:42
Joined: Apr 2008
Posts: 437
dracula Offline OP
Senior Member
dracula  Offline OP
Senior Member

Joined: Apr 2008
Posts: 437
Thanks guys !

What I am interested in, is writing a FPS or TPS in just Lite-C code, ie without any templates. The Lite-C workshops are good but they only can show you so much. All the stuff on the web (and there's alot) is all C Script. I know C++ quite well but it can be confusing !

I think it would be excellent if someone could write a simple FPS in pure Lite C. It is much easier to learn from looking at a documented program. I am surprised Conitec haven't done this yet.

There's a challenge for someone. As an added incentive, I will love you.


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