Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM 4.0 Plugin] VeteranSystem ALPHA
Re: [SSGM 4.0 Plugin] VeteranSystem ALPHA [message #468809 is a reply to message #463595] Sat, 09 June 2012 11:33 Go to previous messageGo to previous message
ExEric3 is currently offline  ExEric3
Messages: 746
Registered: February 2005
Location: Slovakia
Karma:
Colonel
What is wrong on this code (beta 5):

void VeteranSystem::OnObjectCreate(void *data,GameObject *obj)
{
	if (Commands->Is_A_Star(obj) && obj->As_SoldierGameObj() )
	{
		Attach_Script_Once(obj, "Veteran_Player", "");
		Update_Player(Get_Player_ID(obj), obj);
	}
	else if ( obj->As_VehicleGameObj() )
	{
		Attach_Script_Once(obj, "Veteran_Vehicle", "");
	}
	else if (!obj)
	{
		Attach_Script_Once(obj, "Veteran_C4", "");
	}
	else if (obj->As_BeaconGameObj() )
	{
		Attach_Script_Once(obj, "Veteran_Beacon", "");
	}
	else if (obj->As_BuildingGameObj() )
	{
		Attach_Script_Once(obj, "Veteran_Building", "");
	}
}


I get this error:

21>  Veteran.cpp
21>Veteran.cpp(609): error C2039: 'As_BeaconGameObj' : is not a member of 'ScriptableGameObj'
21>          c:\ssgm4 beta 5\scripts\ScriptableGameObj.h(50) : see declaration of 'ScriptableGameObj'
21>
21>Build FAILED.


Thanks for help.
 
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: [Textures] HD Purchase Icon Textures
Next Topic: [Skin] Stealth Black Hand "Venom" Retexture
Goto Forum:
  


Current Time: Mon Feb 03 10:40:31 MST 2025

Total time taken to generate the page: 0.00804 seconds