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
What's wrong with this script?
NylePudding Offline
Member

Posts: 77
Threads: 23
Joined: Apr 2011
Reputation: 0
#1
What's wrong with this script?

What's wrong with this script? It says this line: "void Timer02 (string &in asTimer)" has a missing "(" but I can't see how. So I guess I've made a mistake somewhere else?

Huh

void Timer01(string &in asTimer)

{

int RanEve_1 = RandInt(1,2);

if (RanEve_1 == 1)
{
SetEntityActive("servant_grunt_1", true);
}

else if (RanEve_1 == 2)
{
SetEntityActive("servant_brute_1", true);
}

SetEntityActive("ScriptArea_1", true);
SetMessage("Example", "Entry2", 0);
PlayMusic("10_event_coming.ogg", false, 1.0f, 0, 0, true);

void Timer02 (string &in asTimer)
{
if (RanEve_1 == 1)
{
ShowEnemyPlayerPosition("servant_grunt_1");
}

if (RanEve_1 == 2)
{
ShowEnemyPlayerPosition("servant_brute_1");
}

SetSwingDoorLocked("mansion_1", false, false);

}
}


And I thought I was just getting a grip with C++... Thanks for any help. Smile
05-02-2011, 07:41 AM
Find


Messages In This Thread
What's wrong with this script? - by NylePudding - 05-02-2011, 07:41 AM
RE: What's wrong with this script? - by jens - 05-02-2011, 08:17 AM



Users browsing this thread: 1 Guest(s)