03-06-2013, 03:49 PM
03-06-2013, 03:49 PM
03-06-2013, 04:14 PM
(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);
}
03-06-2013, 04:55 PM
(03-06-2013, 04:14 PM)Tiero Wrote: [ -> ]where do I write the body= can you give me the full script(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);
}
03-06-2013, 04:57 PM
(03-06-2013, 04:55 PM)Coolfromdah00d Wrote: [ -> ](03-06-2013, 04:14 PM)Tiero Wrote: [ -> ]where do I write the body= can you give me the full script(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);
}
No, because only you know that will perform this function in your game
03-06-2013, 05:03 PM
(03-06-2013, 04:57 PM)Tiero Wrote: [ -> ]alright first of all: pleae speak english..(03-06-2013, 04:55 PM)Coolfromdah00d Wrote: [ -> ](03-06-2013, 04:14 PM)Tiero Wrote: [ -> ]where do I write the body= can you give me the full script(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);
}
No, because only you know that will perform this function in your game
second: I added corpse01 but i just got another error plus expected token
03-06-2013, 05:07 PM
{
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 {
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 {
03-06-2013, 05:29 PM
I still get the unexpected token though
03-06-2013, 05:51 PM
You haven't put any callback before the { bracket to call the setentitycallbackfunc function.
03-06-2013, 06:07 PM
(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:24 PM
you have to put SetEntityCallbackFunc in a function
like
like
Code:
void OnStart(){
SetEntityCallbackFunc("GuestRoomKey", "jump");
}