Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

bprint woes

| Inside3d Forums Forum Index -> QuakeC Programming

View previous topic :: View next topic
Author | Message
--- | ---
ajay Joined: 29 Oct 2004 Posts: 295 Location: Swindon, UK |

Posted: Mon Nov 17, 2008 4:06 pm Post subject: bprint woes |

Quote:
if ((bright > 0) && (self.torch_dim_time < time) && (timer_on != 0)) { bright = bright - 1; self.torch_dim_time = time + 1; local string bp;
bp = ftos(bright);
bprint ("Battery level = ");
bprint (bp);
if (bright <= 0)
{
player_flashlight_toggle();
}
}

Thanks to help I've got a nice "battery running out and torch turning off" thing going on, see above.
The problem I've got is that I want, when the torch is turned on, to display the remaining 'power' left in it. However Quake doesn't agree with the way I'm doing it.
'Bright' being that battery power. I'm intending to also do some maths to show it as a percentage, but as it's not showing up at all, I'm merely trying to get the first step working.
Nothing is displayed at alll, not "battery Level", not bp's value, nothing.
???
_________________
my site

Back to top |

Spike Joined: 05 Nov 2004 Posts: 944 Location: UK |

Posted: Mon Nov 17, 2008 8:02 pm Post subject: |

you have no new line. bprint ("Battery level = "); bprint (bp); bprint ("\n"); should fix it.
_________________
What's a signature?

Back to top |

ajay Joined: 29 Oct 2004 Posts: 295 Location: Swindon, UK |

Posted: Mon Nov 17, 2008 8:12 pm Post subject: |

Oh bloody hell! I both hate it and love it when its something so silly and small! Thank You _________________ my site

Back to top |

Display posts from previous:

| Inside3d Forums Forum Index -> QuakeC Programming | All times are GMT
Page 1 of 1

Jump to:

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2004 phpBB Group