Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 900 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
event_block undeclarded identifier! #158884
10/05/07 19:01
10/05/07 19:01
Joined: Aug 2007
Posts: 165
Germany
J
jermy Offline OP
Member
jermy  Offline OP
Member
J

Joined: Aug 2007
Posts: 165
Germany
I dont know why this error appears! I tried event_block and EVENT_BLOCK!

Quote:

Error in Main line 1331 EVENT_BLOCK undeclarded identifier
<case event_block:>





Code:
 

function bullet_event()
{
switch(event_type)
{
case event_block:

vec_to_angle (my.pan, bounce);
ent_create("bulhole.tga",my.x,bullet_hole);
wait(1);
ent_remove(me);

case EVENT_ENTITY:

if(you.gegner == on)
{
you.health -= 10;
snd_play(laugh,50,0);
ent_create("bullet.mdl",you.x,blut_action);
wait(1);
ent_remove(me);
}
if (my != 0)

}
}



action bullet_move ()
{
turn_towards_target();
my.flags |= (ENABLE_BLOCK | ENABLE_ENTITY | ENABLE_IMPACT);
my.event = bullet_event;
my.bright = on;
my.flare = on;
my.flag1 = off;
// my.invisible = on;
while (my.skill16 <;10000&&my.flag1 == off)
{
move_mode = IGNORE_YOU + IGNORE_PASSABLE + IGNORE_PUSH + IGNORE_PASSENTS;
my.skill16+= ent_move(vector(99*time_step,0,0),nullvector);
effect(schweif,1,my.x,nullvector);
wait(1);
}
wait(1);
ent_remove(me);
}



Re: event_block undeclarded identifier! [Re: jermy] #158885
10/06/07 06:31
10/06/07 06:31
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
You have written EVENT_BLOCK in lowercase.

Re: event_block undeclarded identifier! [Re: Spirit] #158886
10/06/07 10:46
10/06/07 10:46
Joined: Aug 2007
Posts: 165
Germany
J
jermy Offline OP
Member
jermy  Offline OP
Member
J

Joined: Aug 2007
Posts: 165
Germany
Quote:

You have written EVENT_BLOCK in lowercase.




i have tried both
event_block and EVENT_BLOCK

Re: event_block undeclarded identifier! [Re: jermy] #158887
10/06/07 14:51
10/06/07 14:51
Joined: Aug 2007
Posts: 165
Germany
J
jermy Offline OP
Member
jermy  Offline OP
Member
J

Joined: Aug 2007
Posts: 165
Germany
or lays the problem in
my.flags |= (ENABLE_BLOCK | ENABLE_ENTITY | ENABLE_IMPACT);
scorp had told me it should mean:
my.emask |= (ENABLE_BLOCK | ENABLE_ENTITY | ENABLE_IMPACT);

Re: event_block undeclarded identifier! [Re: jermy] #158888
10/06/07 15:08
10/06/07 15:08
Joined: Aug 2007
Posts: 165
Germany
J
jermy Offline OP
Member
jermy  Offline OP
Member
J

Joined: Aug 2007
Posts: 165
Germany
or can i write it in my game.wdl file in c-skript. It will automatic included to game.c!


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