Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » C++ error
Re: C++ error [message #363039 is a reply to message #363038] Sat, 13 December 2008 13:31 Go to previous messageGo to previous message
YazooGang is currently offline  YazooGang
Messages: 742
Registered: August 2008
Location: US
Karma:
Colonel
cAmpa wrote on Sat, 13 December 2008 14:24

Quote:

Like the weapon i'm currently holding.
i think thats the problem lol


?? state is nothing in your code = undeclared identifier

And wtf is a "aa command"?

A commands like !help !buy !kick ect...
and i got the state thing from the this code

	if (state == WeaponClass::WS_RELOADING){
		barx = (float)draw.Draw_Single_Line(D3DCOLOR_XRGB(255,255,0), 0, 0, L"Charging... ");
		barx *= draw.GetScalar();
		DrawChargeBar(barx, 0.003f, 0.02f, 0.004f, 1.0f-(1.0f/reloadtime*statetime), D3DCOLOR_XRGB(255,255,0), D3DCOLOR_XRGB(255,255,0), D3DCOLOR_XRGB(0,0,0));
	} else if (maxammo == 0 && _ammo == 0)
		draw.Draw_Single_Line(D3DCOLOR_XRGB(255,0,0), 0, 0, L"Battery depleted.");
	else
		draw.Draw_Single_Line(D3DCOLOR_XRGB(0,255,0), 0, 0, L"Charged.");
		


	if (g_pPICBatch->Serialize())
		g_pPICBatch->Render();
 
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: problem with hud.ini
Next Topic: Nod Turret Skins
Goto Forum:
  


Current Time: Tue Dec 24 14:09:36 MST 2024

Total time taken to generate the page: 0.00781 seconds