SetTimerEx problem
#3

I don't think so, because, as i said, it won't execute even the print function, nothing. Here is the code anyway.

Код:
function MovingCamera( playerid ) {

	RotateCameraAroundPoint( playerid, ServerInfo[ MainSpawnX ], ServerInfo[ MainSpawnY ], ServerInfo[ MainSpawnZ ], 2, 10, 3 );
	return true;
}
And then this function

Код:
RotateCameraAroundPoint( playerid, Float:X, Float:Y, Float:Z, Offset_X, Offset_Y, Offset_Z ) {

	SetPlayerCameraPos( playerid, X - Offset_X * floatsin( - PlayerInfoEx[ playerid ][ CameraSpawnAngle ], degrees ), Y - Offset_Y * floatcos( - PlayerInfoEx[ playerid ][ CameraSpawnAngle ], degrees ), Z + Offset_Z );
	SetPlayerCameraLookAt( playerid, X, Y, Z + 0.5 );

	PlayerInfoEx[ playerid ][ CameraSpawnAngle ] += 0.5;

	if( PlayerInfoEx[ playerid ][ CameraSpawnAngle ] >= 360.0) PlayerInfoEx[ playerid ][ CameraSpawnAngle ] = 0.0;

	return true;
}
Reply


Messages In This Thread
SetTimerEx problem - by FTLOG - 28.12.2011, 17:39
Re: SetTimerEx problem - by coole210 - 28.12.2011, 18:41
Re: SetTimerEx problem - by FTLOG - 28.12.2011, 18:46
Re: SetTimerEx problem - by coole210 - 28.12.2011, 23:10
Re: SetTimerEx problem - by FTLOG - 29.12.2011, 11:42
Re: SetTimerEx problem - by MadeMan - 29.12.2011, 11:45
Re: SetTimerEx problem - by FTLOG - 29.12.2011, 12:39

Forum Jump:


Users browsing this thread: 1 Guest(s)