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
5 registered members (Joey, flink, AndrewAMD, ozgur, Ayumi), 1,195 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
while (players_health > 0) ti litec #301997
12/15/09 20:40
12/15/09 20:40
Joined: Nov 2009
Posts: 18
D
Daniel_M Offline OP
Newbie
Daniel_M  Offline OP
Newbie
D

Joined: Nov 2009
Posts: 18
how i can write this line in lite c?

while (players_health > 0)

Re: while (players_health > 0) ti litec [Re: Daniel_M] #301998
12/15/09 21:03
12/15/09 21:03
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
same


3333333333
Re: while (players_health > 0) ti litec [Re: Quad] #301999
12/15/09 21:07
12/15/09 21:07
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
L
Liamissimo Offline
Serious User
Liamissimo  Offline
Serious User
L

Joined: Jul 2009
Posts: 1,198
Berlin, Germany
up you write
var players_health = 100;
and then your code like
while(players_health < 100)
{
your function
}


"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen."
-JCL, 2011
Re: while (players_health > 0) ti litec [Re: Daniel_M] #302003
12/15/09 21:16
12/15/09 21:16
Joined: Nov 2009
Posts: 18
D
Daniel_M Offline OP
Newbie
Daniel_M  Offline OP
Newbie
D

Joined: Nov 2009
Posts: 18
hmm it doesnt work.. :-(

Error in Main line 154: 'players_health' undeclared identifier

<while(players_health < 100)
>

Re: while (players_health > 0) ti litec [Re: Daniel_M] #302005
12/15/09 21:38
12/15/09 21:38
Joined: Nov 2002
Posts: 913
Berlin, Germany
S
SchokoKeks Offline
User
SchokoKeks  Offline
User
S

Joined: Nov 2002
Posts: 913
Berlin, Germany
you have not defined a variable called players_health before. The engine does not know what players_health is.
TheLiam has already given you a solution for that.

you should work through the online tutorial if you don't know what that means.
Hint: There is also a german version of that tutorial.

Workshop number 2 is about your problem, they even show your error message there.

Last edited by SchokoKeks; 12/15/09 21:44.
Re: while (players_health > 0) ti litec [Re: SchokoKeks] #302010
12/15/09 22:01
12/15/09 22:01
Joined: Nov 2009
Posts: 18
D
Daniel_M Offline OP
Newbie
Daniel_M  Offline OP
Newbie
D

Joined: Nov 2009
Posts: 18
thank for your help. can you help me please with this line right here? sorry. but i are not a programmer :-(

player_speed.x = robot_speed * time_step;

Re: while (players_health > 0) ti litec [Re: Daniel_M] #302011
12/15/09 22:04
12/15/09 22:04
Joined: Nov 2002
Posts: 913
Berlin, Germany
S
SchokoKeks Offline
User
SchokoKeks  Offline
User
S

Joined: Nov 2002
Posts: 913
Berlin, Germany
we also need to see how you defined player_speed and robot_speed.
player_speed needs to be defined as a VECTOR so you can access the .x parameter.
Edit: Thats also something you should have already learned from the tutorial.

Last edited by SchokoKeks; 12/15/09 22:06.

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