[2k3] FormatTime not working ? o_O

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Jack oneill

New Member
Sep 4, 2001
81
0
0
42
France
atlantis.jolt.co.uk
Hi guys,

I'm facing a strange problem using the formattime function and i don't see what i'm doing wrong. Here is my piece of code, very simple, but the last line doesn't compile "bad or missing expression in ="...

Code:
	local string Timer;
	local int RemainTime;

	if ( PlayerOwner.GameReplicationInfo != None ) 
		RemainTime = PlayerOwner.GameReplicationInfo.RemainingTime;

	Timer = FormatTime(RemainTime);

Also i can't find the formattime function definition so maybe i'm calling it wrong ? But i've already such code working in ut2 base code...

Thx for the help ! :)