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
1 registered members (TipmyPip), 18,633 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' wird nicht gefunden #409815
10/22/12 16:21
10/22/12 16:21
Joined: Oct 2012
Posts: 22
Austria
W
WeTwoPlays Offline OP
Newbie
WeTwoPlays  Offline OP
Newbie
W

Joined: Oct 2012
Posts: 22
Austria
Ich habe ein problem mit meiner Camerasteuerung:
function camera_follow(ENTITY* ent)
{
while(1)
{
vec_set(camera.x,vector(0,0,50));
vec_rotate(camera.x,ent.pan);
vec_add(camera.x,ent.x);
camera.pan= ent.pan;
camera.tilt-=mouse_force.y*0.003*time_step;
camrot = max(camera.tilt,min(camera.tilt,-17);
wait(1);
}

es wird immer gemeldet: 'max' undeclared identifier... Warum? max sollte doch schon definiert sein, maximaler wert. Es wird sogar rot angezeigt. Oder gibt es alternativen?

Re: 'max' wird nicht gefunden [Re: WeTwoPlays] #409816
10/22/12 16:28
10/22/12 16:28
Joined: Dec 2002
Posts: 1,999
Switzerland Zürich
JeyKey II Offline
Serious User
JeyKey II  Offline
Serious User

Joined: Dec 2002
Posts: 1,999
Switzerland Zürich
"max" existiert ach nicht mehr. Schau im Manual nach
"maxv" ist die Lösung


[Jeder ist sich selbst am Nächsten]
Re: 'max' wird nicht gefunden [Re: JeyKey II] #409821
10/22/12 16:59
10/22/12 16:59
Joined: Oct 2012
Posts: 22
Austria
W
WeTwoPlays Offline OP
Newbie
WeTwoPlays  Offline OP
Newbie
W

Joined: Oct 2012
Posts: 22
Austria
maxv liefert aber auch ne fehlermeldung.................

Re: 'max' wird nicht gefunden [Re: WeTwoPlays] #409822
10/22/12 17:02
10/22/12 17:02
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Weil eine Klammer fehlt.

Re: 'max' wird nicht gefunden [Re: WeTwoPlays] #409823
10/22/12 17:03
10/22/12 17:03
Joined: Sep 2012
Posts: 74
Niedersachsen, Germany
P
PriNova Offline
Junior Member
PriNova  Offline
Junior Member
P

Joined: Sep 2012
Posts: 74
Niedersachsen, Germany
hast du auch das min zu einem minv gemacht?

EDIT: ja genau, die klammer fehlt auch. hihi

Last edited by PriNova; 10/22/12 17:04.
Re: 'max' wird nicht gefunden [Re: PriNova] #409825
10/22/12 17:12
10/22/12 17:12
Joined: Oct 2012
Posts: 22
Austria
W
WeTwoPlays Offline OP
Newbie
WeTwoPlays  Offline OP
Newbie
W

Joined: Oct 2012
Posts: 22
Austria
warum steht maxv nicht unten in der cammand help box? aber max schon? Und wenn ich auf aktuelle version online klick land ich wieder bei max.

Re: 'max' wird nicht gefunden [Re: WeTwoPlays] #409828
10/22/12 17:25
10/22/12 17:25
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Because max still is a valid function, but does not fit your purpose.


Always learn from history, to be sure you make the same mistakes again...

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