Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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