Frictional Games Forum (read-only)
FATAL ERROR, fixed but still alert [SOLVED] - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: FATAL ERROR, fixed but still alert [SOLVED] (/thread-16808.html)



FATAL ERROR, fixed but still alert [SOLVED] - FlawlessHappiness - 07-07-2012

Simple error:

(299, 1) : INFO : Compiling void Insanity_1(string&in)
(305, 51) : ERR : Expected ')' or ','
(306, 51) : ERR : Expected ')' or ','

(307, 51) : ERR : Expected ')' or ','

(308, 51) : ERR : Expected ')' or ','

(309, 51) : ERR : Expected ')' or ','

(310, 51) : ERR : Expected ')' or ','

(311, 51) : ERR : Expected ')' or ','

(312, 51) : ERR : Expected ')' or ','

(313, 51) : ERR : Expected ')' or ','


And here is "Insanity_1"


void Insanity_1(string &in asEntity)
{
FadeOut(0);
TeleportPlayer("PlayerStartArea_1");
FadeIn(1);

SetPropActiveAndFade("insanity_1_slime_1", true, 7f); < Those are what it is pointing to... but they are
SetPropActiveAndFade("insanity_1_slime_2", true, 7f); right there
SetPropActiveAndFade("insanity_1_slime_3", true, 7f);
SetPropActiveAndFade("insanity_1_slime_4", true, 7f);
SetPropActiveAndFade("insanity_1_slime_5", true, 7f);
SetPropActiveAndFade("insanity_1_slime_6", true, 7f);
SetPropActiveAndFade("insanity_1_slime_7", true, 7f);
SetPropActiveAndFade("insanity_1_slime_8", true, 7f);
SetPropActiveAndFade("insanity_1_slime_9", true, 7f);
StartScreenShake(0.4, 120, 0, 0);
PlaySoundAtEntity("", "guardian_distant", "Player", 0.5f, false);
}

So what am i supposed to do?

Right in the moment it has no map cache.. So i can't delete that


RE: FATAL ERROR, fixed but still alert - Apjjm - 07-07-2012

If you are using "f" to indicate a float, it must follow a number with a decimal point. I.e:
7.0f
rather than
7f


RE: FATAL ERROR, fixed but still alert[SOLVED] - FlawlessHappiness - 07-07-2012

Thaaaank you ^_^