SOLVED movetimer:0.000000

Started by Slasher, Tue 07/06/2016 19:00:51

Previous topic - Next topic

Slasher

I think i have had this before:

text on lable (gpanel: audio volume) ingame reads: movetimer:0.000000

can't remember what i did last time i got that text.

Khris

Code: ags
  // integer
  lblMoveTimer.Text = String.Format("movetimer: %d", movetimer);
  
  // text
  lblMoveTimer.Text = String.Format("movetimer: %s", some_string_variable);


You've probably used %f, which interprets the value as float. Check the manual's string formatting section for more info.

Slasher

#2
Hi Khris,

it was the FloatingHotspot Module that was the problem (it uses Label1)

I simply moved that label ( Label1) off the gui and made a new one.

Now ok.

cheers

SMF spam blocked by CleanTalk