| 
		
			| The_Game()->MVPName [message #356030] | Mon, 27 October 2008 14:09  |  
			| 
				
				|  |  halo2pac Messages: 659
 Registered: December 2006
 Location: Near Cleveland, Ohio
 
	Karma: 0
 | Colonel |  |  |  
	| if you compile a plugin with this code (also in the debugger) 
 
 DLLEXPORT void SSGM_GameOver_Hook()
{
	char MVP[32];
	sprintf(MVP,"%s",The_Game()->MVPName); //MVP = 0x0013ec8c ""
	if (strlen((const char *)MVP) <= 1)
	{
		sprintf(MVP,"%s","NULL");
	}
	printf("[game_end] %s %u %u %u %d %s\n",Data->CurrMap,The_Game()->GameDuration_Seconds,The_Game()->WinType,The_Game()->WinnerID,Get_Team_Score(The_Game()->WinnerID),MVP);
}
 it will error at the printf..
 this is because:
 when there are no players ingame there is no MVP.
 therefore The_Game()->MVPName is...
 
 | Dante |  | reading the memory space of where the "mvp name" is supposed to be
 
 | 
 
 
 MVP = 0x0013ec8c ""
First-chance exception at 0x0238dbc6 (Plugin.dll) in server.dat: 0xC0000005: Access violation reading location 0x40b38800
 
 Fix for v4.0 please
   
 
  Rene-Buddy | Renegade X
 Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
 *Renegade X Dev Team Member*
 [Updated on: Mon, 27 October 2008 14:10] Report message to a moderator |  
	|  |  | 
	|  | 
	|  | 
	|  | 
	|  | 
	|  | 
	| 
		
			| Re: The_Game()->MVPName [message #356083 is a reply to message #356061] | Tue, 28 October 2008 00:44   |  
			| 
				
				|  |  Goztow Messages: 9761
 Registered: March 2005
 Location: Belgium
 
	Karma: 14
 | General (5 Stars)Goztoe
 |  |  |  
	| | halo2pac wrote on Tue, 28 October 2008 01:58 |  | Was just asking. -_-
 I didnt come here to get a stick shoved up my butt for finding this.
 
 | 
 I don't see any sticks, I just see people trying to help you.
 
 You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
 |  
	|  |  | 
	|  | 
	|  | 
	|  | 
	|  | 
	|  | 
	|  | 
	|  | 
	|  | 
	|  | 
	|  | 
	|  | 
	| 
		
			| Re: The_Game()->MVPName [message #356796 is a reply to message #356035] | Sat, 01 November 2008 22:04   |  
			| 
				
				
					| Genesis2001 Messages: 1397
 Registered: August 2006
 
	Karma: 0
 | General (1 Star) |  |  |  
	| | Ghostshaw wrote on Mon, 27 October 2008 14:36 |  | TheGame is actually stuff in renegade it self, and we won't fix this, you should simply check wether there are players.
 
 | 
 
 
 ^^^
 |  
	|  |  | 
	| 
		
			| Re: The_Game()->MVPName [message #358274 is a reply to message #356557] | Wed, 12 November 2008 08:32  |  
			| 
				
				|  |  Jerad2142 Messages: 3825
 Registered: July 2006
 Location: USA
 
	Karma: 6
 | General (3 Stars) |  |  |  
	| | Ghostshaw wrote on Fri, 31 October 2008 08:34 |  | Erm don't you mean Console_Output jerad? But yeah printf doesn't work properly in some cases in the FDS.
 
 | 
 Never even thought to check if it existed, it works the same as long as you type MESSAGE before your message.
 
 
  Visit Jerad's deer sweat shop |  
	|  |  |