Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
"max" is undeclared identifier????? WTF! help pls #265518
05/12/09 21:16
05/12/09 21:16
Joined: Feb 2009
Posts: 52
Rohiaw Offline OP
Junior Member
Rohiaw  Offline OP
Junior Member

Joined: Feb 2009
Posts: 52
hi guys.
so i was coding the other night, and when i compiled i got an error message sayin "max" is an undeclared identifier.
(max = defualt function)

And i DID include the acknex and default files at the beginning.
Code:
#include <default.c>
#include <acknex.h>


This is my "max" line:
Code:
my.force_z = max(-30,my.force_z);


force.z is a define for skill 37.

Oh, and for some reason, it does the same thing with the "min" function.

Any help?

Re: "max" is undeclared identifier????? WTF! help pls [Re: Rohiaw] #265523
05/12/09 21:36
05/12/09 21:36
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
they are called minv and maxv in lite-c


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: "max" is undeclared identifier????? WTF! help pls [Re: EvilSOB] #265563
05/13/09 06:34
05/13/09 06:34
Joined: Feb 2009
Posts: 52
Rohiaw Offline OP
Junior Member
Rohiaw  Offline OP
Junior Member

Joined: Feb 2009
Posts: 52
oh, thanks!
It makes sense, as I was given some code from my friend while chatting, i know he has the older version, which uses C-Script.

Thanks evilSoB!
This is the second time you've help me!

Re: "max" is undeclared identifier????? WTF! help pls [Re: Rohiaw] #265568
05/13/09 06:45
05/13/09 06:45
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Anytime...


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial

Moderated by  HeelX, rvL_eXile 

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