Jump to content

Home

c error


DeathPhantom

Recommended Posts

Posted

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");

Posted

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 ;P

Posted

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?

Posted

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...