Incorrect function usage: addAngle

Non-platform specific questions.

Incorrect function usage: addAngle

Postby Zehper48 » Fri Feb 25, 2011 4:48 pm

Hey everybody,
I'm working on a taxi game, and for the driving part i looked at the demo GE Rally (viewtopic.php?f=6&t=5204)
And i got an error that says

Incorrect function usage: addAngle
and here is my code on that line
Code: Select all
vectoradd(&angle, &directional_velocity, addAngle(angle, -90), myDriftLateralSpeed);


anybody know how to fix it? :D
Thank you
I like score
User avatar
Zehper48
 
Posts: 241
Joined: Sun Jun 11, 2006 1:34 am
Location: Advanced Noob
Score: 4 Give a positive score

Re: Incorrect function usage: addAngle

Postby Game A Gogo » Fri Feb 25, 2011 9:34 pm

Simply redownload the game... it works fine for me.

Also make sure to copy the scripts found in the global codes, especially this one:
Code: Select all
double addAngle( double angle1, double angle2 )
{
  // adds two angles together ensuring result is less than 360
  double result;
 
  result = angle1 + angle2;
 
  if ( result >= 360 ) result  -= 360;
  if ( result < 0 ) result += 360;


  return result;


}//CODE BY JAZZeBOB
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest