Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Win32 FDS » Night Regulator
Re: Night Regulator [message #226511 is a reply to message #225740] Fri, 13 October 2006 15:52 Go to previous messageGo to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma:
General (3 Stars)
here is a snippet from the parse function


else if(command == "!gameover")
	{
		ostringstream pID_s;
		pID_s << obj->Player_Name;
		if(is_admin(pID_s.str()) == 1)
		{
			oss << "msg Gameover in 5 seconds!";
			Send_Message((char *)oss.str().c_str(), IP2Long(IP), (short)atoi(Port.c_str()));
			Sleep(5000);
			oss.str();
			Send_Message("gameover", IP2Long(IP), (short)atoi(Port.c_str()));
		}
		else
		{
			LOG("get_player_id called on line 535. parse.cpp\n");
			string pID = get_player_id((char *)obj->Player_Name.c_str());
			string id, playername;
			splitstring(pID, ": ", id, playername);
			oss << "ppage " << id << " you need to be an admin to perform this command";
			Send_Message((char *)oss.str().c_str(), IP2Long(IP), (short)atoi(Port.c_str()));
		}	
	}


the reason
LOG("get_player_id called on line 535. parse.cpp\n");
is there is because i have a bug i am trying to ger rid of
 
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
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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BlackIntel.dll Requests/Future
Next Topic: NEED HELP ON FDS!!!
Goto Forum:
  


Current Time: Tue Jan 28 20:18:56 MST 2025

Total time taken to generate the page: 0.01164 seconds