Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Learn me good!
Re: Learn me good! [message #411274 is a reply to message #411245] Wed, 18 November 2009 08:06 Go to previous messageGo to previous message
Hex is currently offline  Hex
Messages: 858
Registered: March 2004
Karma:
Colonel
Hand written so some parts prob wrong

class PresetList
{
public:
	static char Preset[256];
	static float Points;
};

void PresetList()
{
	char Dir[64];	
	char Preset_[256];
	float Points_;
	GetCurrentDirectory(64, Dir);
	strcat(Dir, "\\Presets.ini");
	INIClass *ini = Get_INI(Dir);
	if(!ini)
	{
		return 0;
	}


	ini->Get_String("Presets", "Preset", "ERR", Preset_, 256);
	ini->Get_Float("Presets", "Points", "ERR", Points_, 256);

	strcpy(Preset,Preset_);
	Points = Points_;
	Release_INI(ini);
}


goztow wrote on Tue, 11 May 2010 08:00

If we had to ban all who ever cheated or ever created a cheat (obj3cts and such) then I don't think there would be many members left here (sad fact).


reborn wrote on Fri, 29 January 2010 23:37

std is for pro's. Razz

[Updated on: Wed, 18 November 2009 08:08]

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
Previous Topic: request - Nod Rocket Soldier bug
Next Topic: music not working for map
Goto Forum:
  


Current Time: Mon Dec 23 19:39:38 MST 2024

Total time taken to generate the page: 0.00814 seconds