Gamestudio Links
Zorro Links
Newest Posts
nba2king Latest Roster Update Breakdown
by joenxxx. 10/14/25 06:06
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 9,184 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joenxxx, Jota, krishna, DrissB, James168
19170 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Missing min and max function in Lite-C #223181
08/22/08 15:37
08/22/08 15:37
Joined: Jun 2008
Posts: 11
D
DryWater Offline OP
Newbie
DryWater  Offline OP
Newbie
D

Joined: Jun 2008
Posts: 11
Hi,

I hope it isn't just a mistake on my side, but I think I encountered a small problem while trying to convert a wdl file to lite-c. It seems that the min and max functions are not available in lite-c (I am using A7 Extra edition, 7.10)

Running this wdl works:
var x;
function main()
{
x = max(8,5);
}

while this c throws: 'max' undeclared identifier...

#include <acknex.h>
#include <default.c>

var x;
function main()
{
x = max(5,8);
}

Best regards.
Stefan

Re: Missing min and max function in Lite-C [Re: DryWater] #223183
08/22/08 15:50
08/22/08 15:50
Joined: Apr 2008
Posts: 594
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 594
Austria
Gamestudio has no min and max functions in the manual, but there are minv and maxv functions, maybe you mean them?

Re: Missing min and max function in Lite-C [Re: Petra] #223193
08/22/08 16:19
08/22/08 16:19
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Lite-c uses minv and maxv, c-script still uses the old min and max.


Click and join the 3dgs irc community!
Room: #3dgs
Re: Missing min and max function in Lite-C [Re: Joozey] #223195
08/22/08 16:36
08/22/08 16:36
Joined: Jun 2008
Posts: 11
D
DryWater Offline OP
Newbie
DryWater  Offline OP
Newbie
D

Joined: Jun 2008
Posts: 11
@Petra && @Joozey,

many thanks for your hint! The german manual doesn't tell about the minv and maxv functions except for a small note on the "Obsolete functions" page. minv, maxv do even not exist in the manual index. Will use the english manual in the future.

Thanks for your fast help!


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