Frictional Games Forum (read-only)
unexpected end of file, what's the problem? - 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: unexpected end of file, what's the problem? (/thread-14948.html)

Pages: 1 2


RE: unexpected end of file, what's the problem? - Cranky Old Man - 04-23-2012

(04-23-2012, 06:42 PM)P44RTHURN4X Wrote: What is the right "syntax"? SetMessageCallback()?
You switched the parameters around. You should have caught this yourself.




RE: unexpected end of file, what's the problem? - overscore - 04-23-2012

not:
void SetMessageSCF_1(string &in asParent, string &in asChild, int alState)

but:
void SetMessage(string &in asParent, string &in asChild, int alState)



RE: unexpected end of file, what's the problem? - Cranky Old Man - 04-23-2012

(04-23-2012, 08:19 PM)overscore Wrote: not:
void SetMessageSCF_1(string &in asParent, string &in asChild, int alState)

but:
void SetMessage(string &in asParent, string &in asChild, int alState)
No, that's completely wrong.
SetMessage() is an already defined function used to write a message on the screen. He is calling it from his own created function.




RE: unexpected end of file, what's the problem? - overscore - 04-23-2012

Ah i see.
This must be it then.
Code:
void SetMessage(string& asTextCategory, string& asTextEntry, float afTime);
SetMessage("category", "entry", 0);



RE: unexpected end of file, what's the problem? - SilentStriker - 04-23-2012

no it should look like this:



void SetMessageSCF_1(string &in asParent, string &in asChild, int alState)
{
SetMessage("SetMes_1", "set_message_test", 1);
}

It's not the void that was wrong it was the SetMessage. You had switched places on set_message_test and the 1.0f