Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » C++. Need help.  () 1 Vote
Re: C++. Need help. [message #334873 is a reply to message #334859] Thu, 12 June 2008 09:04 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
I'm pretty sure he is trying to call this function:

float GetValue(const char* Preset) {
	float VehValue = 0;

if (stricmp(Preset,"test") == 0) VehValue = 1;
else if (stricmp(Preset,"GDI Harvester MP2") == 0) VehValue = 300;
else if (stricmp(Preset,"GDI Harverster MP") == 0) VehValue = 300;
else if (stricmp(Preset,"GDI Titan") == 0) VehValue = 700;
else if (stricmp(Preset,"GDI Wolverine") == 0) VehValue = 300;
else if (stricmp(Preset,"GDI Orca") == 0) VehValue = 500;
else if (stricmp(Preset,"GDI Orca Bomber") == 0) VehValue = 500;
else if (stricmp(Preset,"NOD Harverster MP") == 0) VehValue = 300;
else if (stricmp(Preset,"Nod TickTank TS") == 0) VehValue = 550;
else if (stricmp(Preset,"Nod TickTank") == 0) VehValue = 525;
else if (stricmp(Preset,"Nod Buggy") == 0) VehValue = 200;
else if (stricmp(Preset,"GDI Titan TS") == 0) VehValue = 600;
else if (stricmp(Preset,"Nod TickTank TS") == 0) VehValue = 550;
else if (stricmp(Preset,"Nod Buggy TS") == 0) VehValue = 250;

	return VehValue;
}


But he seems to be getting really confused. Sad



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 3 new guns
Next Topic: !spec script release
Goto Forum:
  


Current Time: Sat Dec 28 07:28:06 MST 2024

Total time taken to generate the page: 0.01401 seconds