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
Script Problems
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#11
RE: Script Problems

(03-06-2013, 03:47 PM)Coolfromdah00d Wrote:
(03-05-2013, 10:19 PM)darksky Wrote: what's the exact error message?

unexpected token {
Full script and at what line?

"Veni, vidi, vici."
"I came, I saw, I conquered."
03-06-2013, 03:49 PM
Find
Tiero Offline
Member

Posts: 126
Threads: 13
Joined: Mar 2011
Reputation: 11
#12
RE: Script Problems

(03-06-2013, 03:47 PM)Coolfromdah00d Wrote:
(03-05-2013, 10:19 PM)darksky Wrote: what's the exact error message?

unexpected token {

{
SetEntityCallbackFunc("GuestRoomKey", "jump");
}

void jump(string &in asEntity, string &in type) <---- wheres body

{
SetEntityActive("corpse01", true);
PlaySoundAtEntity("", "21_screams.snt", "corpse01", 0, false);
}

[Image: 111.jpg]
(This post was last modified: 03-06-2013, 04:24 PM by Tiero.)
03-06-2013, 04:14 PM
Website Find
Coolfromdah00d Offline
Junior Member

Posts: 38
Threads: 5
Joined: Mar 2013
Reputation: 0
#13
RE: Script Problems

(03-06-2013, 04:14 PM)Tiero Wrote:
(03-06-2013, 03:47 PM)Coolfromdah00d Wrote:
(03-05-2013, 10:19 PM)darksky Wrote: what's the exact error message?

unexpected token {

{
SetEntityCallbackFunc("GuestRoomKey", "jump");
}

void jump(string &in asEntity, string &in type) <---- wheres body

{
SetEntityActive("corpse01", true);
PlaySoundAtEntity("", "21_screams.snt", "corpse01", 0, false);
}
where do I write the body= can you give me the full script
03-06-2013, 04:55 PM
Find
Tiero Offline
Member

Posts: 126
Threads: 13
Joined: Mar 2011
Reputation: 11
#14
RE: Script Problems

(03-06-2013, 04:55 PM)Coolfromdah00d Wrote:
(03-06-2013, 04:14 PM)Tiero Wrote:
(03-06-2013, 03:47 PM)Coolfromdah00d Wrote:
(03-05-2013, 10:19 PM)darksky Wrote: what's the exact error message?

unexpected token {

{
SetEntityCallbackFunc("GuestRoomKey", "jump");
}

void jump(string &in asEntity, string &in type) <---- wheres body

{
SetEntityActive("corpse01", true);
PlaySoundAtEntity("", "21_screams.snt", "corpse01", 0, false);
}
where do I write the body= can you give me the full script

No, because only you know that will perform this function in your game Smile

[Image: 111.jpg]
03-06-2013, 04:57 PM
Website Find
Coolfromdah00d Offline
Junior Member

Posts: 38
Threads: 5
Joined: Mar 2013
Reputation: 0
#15
RE: Script Problems

(03-06-2013, 04:57 PM)Tiero Wrote:
(03-06-2013, 04:55 PM)Coolfromdah00d Wrote:
(03-06-2013, 04:14 PM)Tiero Wrote:
(03-06-2013, 03:47 PM)Coolfromdah00d Wrote:
(03-05-2013, 10:19 PM)darksky Wrote: what's the exact error message?

unexpected token {

{
SetEntityCallbackFunc("GuestRoomKey", "jump");
}

void jump(string &in asEntity, string &in type) <---- wheres body

{
SetEntityActive("corpse01", true);
PlaySoundAtEntity("", "21_screams.snt", "corpse01", 0, false);
}
where do I write the body= can you give me the full script

No, because only you know that will perform this function in your game Smile
alright first of all: pleae speak english..

second: I added corpse01 but i just got another error plus expected token
03-06-2013, 05:03 PM
Find
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#16
RE: Script Problems

{
SetEntityCallbackFunc("GuestRoomKey", "jump");
}

void jump(string &in asEntity, string &in type)
{
SetEntityActive("corpse01", true);
PlaySoundAtEntity("", "21_screams.snt", "corpse01", 0, false);
}

too big space between jump and {

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
03-06-2013, 05:07 PM
Find
Coolfromdah00d Offline
Junior Member

Posts: 38
Threads: 5
Joined: Mar 2013
Reputation: 0
#17
RE: Script Problems

I still get the unexpected token though
03-06-2013, 05:29 PM
Find
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#18
RE: Script Problems

You haven't put any callback before the { bracket to call the setentitycallbackfunc function.
03-06-2013, 05:51 PM
Find
Coolfromdah00d Offline
Junior Member

Posts: 38
Threads: 5
Joined: Mar 2013
Reputation: 0
#19
RE: Script Problems

(03-06-2013, 05:51 PM)sonataarctica Wrote: You haven't put any callback before the { bracket to call the setentitycallbackfunc function.

What do you mean?


I'm sorry... this is my frist custom story ever and I'm trying to make it as good as I can.
03-06-2013, 06:07 PM
Find
darksky Offline
Member

Posts: 52
Threads: 8
Joined: Nov 2012
Reputation: 2
#20
RE: Script Problems

you have to put SetEntityCallbackFunc in a function

like
void OnStart(){
   SetEntityCallbackFunc("GuestRoomKey", "jump");
}
03-06-2013, 06:24 PM
Find




Users browsing this thread: 1 Guest(s)