The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 Help Func Callback Type
Verkehr Offline
Member

Posts: 60
Threads: 13
Joined: Oct 2016
Reputation: 1
#1
Question  Func Callback Type

Whenever I try to make the following:

SetEntityPlayerLookAtCallback("insanvision1", "insanvision1", true);

void insanvision1(string &in asEntity, int 1)
{
    GiveSanityDamage(30, true);
    SetEntityActive("spider1", true);
    AddTimer("", "1.5", "timer1");
}

it says that it expects a "," or ";" after the "1" in the void. I don't know how to combine it, it always confused me. How do I do it properly? This is the only bug I have.

Thanks in advance.
03-12-2018, 08:05 PM
Find


Messages In This Thread
Func Callback Type - by Verkehr - 03-12-2018, 08:05 PM
RE: Func Callback Type - by TimProzz - 03-12-2018, 10:10 PM
RE: Func Callback Type - by Verkehr - 03-12-2018, 10:25 PM
RE: Func Callback Type - by TimProzz - 03-13-2018, 10:45 AM
RE: Func Callback Type - by Verkehr - 03-13-2018, 12:21 PM



Users browsing this thread: 1 Guest(s)