Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by rayp. 11/20/26 18:10
FXCM => AVA Trade Plugin???
by Martin_HH. 11/17/26 17:02
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (1 invisible), 55,959 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rht, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 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 | 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