Frictional Games Forum (read-only)

Full Version: AddCombineCallback Error No Signiture
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I added 2 combine callbacks but when the game is loading it says no signiture. you first mix 2 chemical containers to make 1 then mix that with another and your done but it says No Matching Signuture Why?

==================================================================================

void attop(string &in asTimer)
{
FadeIn(2.0f);
CheckPoint ("checkpoint3", "bunkercheckpoint3", "", "", "");
AddCombineCallback("", "chemical_4", "chemical_5", mixonetwo, true); <---- Error No Matching Signiture
}

void mixonetwo(string &in asItemA, string &in asItemB)
{
GiveItem("chemical_nearly_finished", "chemical_container_full", "mixnearly", "chemical_container_full.tga", 1.0f);
AddCombineCallback("", "chemical_6", "chemical_nearly_finished", mixtwothree, true); < Error
}

void mixtwothree(string &in asItemA, string &in asItemB)
{
GiveItem("chemical_finished", "chemical_container_full", "mixdone", "chemical_container_full.tga", 1.0f);
PlaySoundAtEntity("", "quest_completed.snt", "Player", 0, false);
AddUseItemCallback("", "chemical_finished", "sewer_grate", "blowexit", true);
AddUseItemCallback("", "chemical_finished", "sewer_grate2", "blowexit", true);
}

void blowexit(string &in asItem, string &in asEntity)
{
RemoveItem("chemical_finished");
StartEffectFlash(0.0f, 1.0f, 0.2f);
PlaySoundAtEntity("", "explosion_rock_large.snt", "Player", 0, false);
SetEntityActive("sewer_grate", false);
SetEntityActive("sewer_grate2", false);
AddEntityCollideCallback("Player", "endinggame", "credittimer", true, 1);
}

void credittimer(string &in asParent, string &in asChild, int alState)
{
FadeOut(3.0f);
AddTimer("goodbye", 3.5f, "cya");
}

void cya(string &in asTimer)
{
StopMusic(1.0f, 0);
StartCredits("Music_02", true, "halldoormessage", "endofgame", 0);
}

===================================================================================

mixonetwo and mixtwothree need to be in quotation marks.
(04-10-2012, 07:26 AM)Obliviator27 Wrote: [ -> ]mixonetwo and mixtwothree need to be in quotation marks.
Game No Longer Crashes But It Won't Combine. Don't You Need To Create an Inventory.hps. but i don't know how to put in it

Yes you need to create inventory.hps in your maps folder.To combine items there is a tutorial on the wiki(i suggested it Big Grin)but in that tutorial you combine the hammer and chipper.But its almost the same thing.Heres the link http://wiki.frictionalgames.com/hpl2/tut...iferorange