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
LookAtCallback
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#2
RE: LookAtCallback

(02-14-2013, 03:55 PM)tonitoni1998 Wrote: actually thought i know how its working, but i always get an error
(" expected "," or ")" ") i dont knw how to solve. i have this
SetEntityPlayerLookAtCallback("diary_look_at", "SetMessage2", false);

void SetMessage2(string &in "diary_1", int 1)
{
   SetMessage("map1_messages", "DiaryInfo", 3);
}

it always tells me there should be "," or" ")" before "diary_1". but when i do that the data type is missing.

thanks for helping

PHP Code: (Select All)
void SetMessage2(string &in "diary_1"int 1)
{
   
SetMessage("map1_messages""DiaryInfo"3);


That makes absolutely no sense.

It should be something like:
PHP Code: (Select All)
SetEntityPlayerLookAtCallback("diary1""SetMessage2"false);

void SetMessage2(string &in asEntityint alState)
{
   
SetMessage("map1_messages""DiaryInfo"3);


[Image: 16455.png]
02-14-2013, 03:56 PM
Find


Messages In This Thread
LookAtCallback - by tonitoni1998 - 02-14-2013, 03:55 PM
RE: LookAtCallback - by MulleDK19 - 02-14-2013, 03:56 PM
RE: LookAtCallback - by tonitoni1998 - 02-14-2013, 03:59 PM
RE: LookAtCallback - by MulleDK19 - 02-14-2013, 04:00 PM
RE: LookAtCallback - by FlawlessHappiness - 02-14-2013, 04:03 PM



Users browsing this thread: 1 Guest(s)