DeathPhantom Posted January 26, 2003 Share Posted January 26, 2003 when i type in the code for messages to appear at tope left of screen. its compiles but when i play the game the messages always pop-up 3 times! wats wrong? this is the kind of stuf i write: Com_Printf( "message here\n"); Link to comment Share on other sites More sharing options...
razorace Posted January 26, 2003 Share Posted January 26, 2003 You probably placed it somewhere in the code that where it loops three times. Exactly where did you put it? Link to comment Share on other sites More sharing options...
Wudan Posted January 26, 2003 Share Posted January 26, 2003 It must be looping, or the function you put the message in is ran 3 times. I put messages like this in my code to see where a function gets called Link to comment Share on other sites More sharing options...
DeathPhantom Posted January 28, 2003 Author Share Posted January 28, 2003 i basically put it like this if (PCLASS_SOMETHING) Com_Printf( "message here\n"); oh and how can i print messages in the middle of the screen like the connectio inturupted message? Link to comment Share on other sites More sharing options...
Azymn Posted January 29, 2003 Share Posted January 29, 2003 It could be looping constantly...i believe Com_Printf messages can only display up to 3 lines on screen at a time. Bring down the console to verify this. If the message goes all the way to the top of the screen, you put the printf somewhere where it is perpetually called. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.