Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unexpected end of file, what's the problem?
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#11
RE: unexpected end of file, what's the problem?

(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.


Noob scripting tutorial: From Noob to Pro

04-23-2012, 06:50 PM
Find
overscore Offline
Junior Member

Posts: 10
Threads: 1
Joined: Apr 2012
Reputation: 1
#12
RE: unexpected end of file, what's the problem?

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

but:
void SetMessage(string &in asParent, string &in asChild, int alState)
(This post was last modified: 04-23-2012, 08:19 PM by overscore.)
04-23-2012, 08:19 PM
Find
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#13
RE: unexpected end of file, what's the problem?

(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.


Noob scripting tutorial: From Noob to Pro

04-23-2012, 08:27 PM
Find
overscore Offline
Junior Member

Posts: 10
Threads: 1
Joined: Apr 2012
Reputation: 1
#14
RE: unexpected end of file, what's the problem?

Ah i see.
This must be it then.
void SetMessage(string& asTextCategory, string& asTextEntry, float afTime);
SetMessage("category", "entry", 0);
(This post was last modified: 04-23-2012, 08:33 PM by overscore.)
04-23-2012, 08:32 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#15
RE: unexpected end of file, what's the problem?

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

(This post was last modified: 04-23-2012, 08:46 PM by SilentStriker.)
04-23-2012, 08:45 PM
Find




Users browsing this thread: 3 Guest(s)