Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Problem
Re: Problem [message #225204 is a reply to message #225203] Fri, 06 October 2006 18:05 Go to previous messageGo to previous message
Ivan275 is currently offline  Ivan275
Messages: 41
Registered: August 2006
Karma:
Recruit
i just checked and it works for me. here is a small code that works with out crashing.
	char KickMsg[256];
	sprintf(KickMsg,"msg %s IP: %s you are beeing kicked for cheating!",Get_Player_Name(damager),Get_IP_Address(Get_Player_ID(damager)));
	Console_Input(KickMsg);
I wonder when you use %s the crash happens when you try to save a string as something else. But I guess not...

Try to isolate where the crash happens. // out everything except the sprintf command then allow your code a few lines at a time after each run the server and see if it crashes...

I had stupid mistakes that I just didn't see. I thought it was line 1 or 2 and kept messing with them but it ended up a wrong setting somewhere else. I would of never found it without doing a host message for every command I had 1 line at a time.

[Updated on: Fri, 06 October 2006 18:14]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Purchase Terminal Presets...
Next Topic: Does anyone have w3d_file.h?
Goto Forum:
  


Current Time: Thu Dec 12 08:40:04 MST 2024

Total time taken to generate the page: 0.00811 seconds