Yeah, its the same post, didnt see the big red thing at the top that said: "Posts need to be approved for new users". Here is the culprit code:
if (dbKeyState(17))
{
fCameraPositionX = dbNewXValue(fCameraPositionX, dbWrapValue(dbCameraAngleY()), 0.15);
fCameraPositionZ = dbNewZValue(fCameraPositionZ, dbWrapValue(dbCameraAngleY()), 0.15);
}
if (dbKeyState(31))
{
fCameraPositionX = dbNewXValue(fCameraPositionX, dbWrapValue(dbCameraAngleY() - 180), 0.15);
fCameraPositionZ = dbNewZValue(fCameraPositionZ, dbWrapValue(dbCameraAngleY() - 180), 0.15);
}
if (dbKeyState(30))
{
fCameraPositionX = dbNewXValue(fCameraPositionX, dbWrapValue(dbCameraAngleY() - 90), 0.15);
fCameraPositionZ = dbNewZValue(fCameraPositionZ, dbWrapValue(dbCameraAngleY() - 90), 0.15);
}
if (dbKeyState(32))
{
fCameraPositionX = dbNewXValue(fCameraPositionX, dbWrapValue(dbCameraAngleY() + 90), 0.15);
fCameraPositionZ = dbNewZValue(fCameraPositionZ, dbWrapValue(dbCameraAngleY() + 90), 0.15);
}
I think its the if statements though, because ive changed the way the movement was done and it still did it. All it does it say there was a breakpoint, Break or Continue, if I say break it opens a free.c file if I say continue it works.