Jump to content

C++ error message


Raul
 Share

Recommended Posts

I am trying to "translate" the fpsshooter.lua script to c++ code. I need this to create a nice FPS control + weapon + light...

My first "milestone" is how to limit the X angle (because right now you can rise up and down your head up to 360 degrees)

 

 

In cPlayer.h I have:

	float CameraPitch;
float CameraYaw;

 

In the cpp::UpdatePlayer, I have:

CameraPitch = Min(CameraPitch,90);

 

But I receive this error message:

 

'Min' : 3 overloads have similar conversions

i5 2.7Ghz, GTS 450, 8GB Ram, Win7 x64; Win8 x64

rvlgames.com - my games

RVL Games Facebook Page, YouTube Channel

 

Blitzmax :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...