Frictional Games Forum (read-only)

Full Version: FATAL ERROR
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Fixed.
void FallingMeatFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("FallingMeat1", true);
SetEntityActive("FallingMeat2", true);
SetEntityActive("FallingMeat3", true);
SetEntityActive("FallingMeat4", true);
SetEntityActive("FallingMeat5", true);
StartPlayerLookAt("FallingMeat2", 10.0f, 35.0f, "");
AddTimer("", 1.0f, "stoplookatfallingmeat);
GiveSanityDamage(60.0f, true);
}
AddTimer("", 1.0f, "stoplookatfallingmeat");
missing " at function name.
For your interest, you can easily check such mistakes with geany. when you save it as a .hps and have everything configured as the wiki says, you count all functions you have and the ones on the left. If they're not the same amount, check what the last function is and look for the failure there. In my case, I only saw 3! functions on the left, the last one being "FallingMeatFunction", and in addition, the error even showed because the function name was all white. I easily saw the mistake in less than 30 seconds. Just to show you how to sometimes easily find such problems Smile
(06-24-2012, 09:52 PM)FastHunteR Wrote: [ -> ]void FallingMeatFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("FallingMeat1", true);
SetEntityActive("FallingMeat2", true);
SetEntityActive("FallingMeat3", true);
SetEntityActive("FallingMeat4", true);
SetEntityActive("FallingMeat5", true);
StartPlayerLookAt("FallingMeat2", 10.0f, 35.0f, "");
AddTimer("", 1.0f, "stoplookatfallingmeat);
GiveSanityDamage(60.0f, true);
}
AddTimer("", 1.0f, "stoplookatfallingmeat");
missing " at function name.
For your interest, you can easily check such mistakes with geany. when you save it as a .hps and have everything configured as the wiki says, you count all functions you have and the ones on the left. If they're not the same amount, check what the last function is and look for the failure there. In my case, I only saw 3! functions on the left, the last one being "FallingMeatFunction", and in addition, the error even showed because the function name was all white. I easily saw the mistake in less than 30 seconds. Just to show you how to sometimes easily find such problems Smile
I'm using Notepad++ but i will definetly check into geany. I've heard about it, and thanks mate.