Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
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
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, AndrewAMD, TedMar), 837 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
switch /case error #154858
09/17/07 15:55
09/17/07 15:55
Joined: Apr 2006
Posts: 28
LB, CA, USA
WINBERRY Offline OP
Newbie
WINBERRY  Offline OP
Newbie

Joined: Apr 2006
Posts: 28
LB, CA, USA
For whatever reason, I am unable to use switch/case.
I have upgrades to A7
I have both
#include <acknex.h>
#include <default.c>
with a path to \\include

whever I try anything like this:
function test()
{
var qwert;
qwert = 1;
switch(qwert)
{
case 1:
a = 2;
break;
case 2:
a = 3;
break;
default:
a = 4;
break;
}
}

I get an error telling me I have an illegal character after :
and it goes on to tell me I'm missing a WHILE statement

thanks,
Any help is appreciated

Re: switch /case error [Re: WINBERRY] #154859
09/17/07 16:03
09/17/07 16:03
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline
User
Shadow969  Offline
User
S

Joined: Oct 2006
Posts: 873
have you defined "a" before?

Re: switch /case error [Re: Shadow969] #154860
09/17/07 16:17
09/17/07 16:17
Joined: Oct 2002
Posts: 361
Germany Cologne
hack-panther Offline
Senior Member
hack-panther  Offline
Senior Member

Joined: Oct 2002
Posts: 361
Germany Cologne
Your code must be in a "*.c" and not in a "*.wdl"...

Then it works...

For write a path you must have a wdl-file with the same name like the c-file and
write the path in it. (PATH "files\\models"; etc...)


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