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 problem, help
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#1
Script problem, help

I've been trying to learn making some custom scripts recently and has turned out good for me. However, I now made one called InitiateBruteGrunt.
When I start the game it says that this script wants an expected "(" or something. I haven't been able to work it out. Would you guys mind giving me a hand?

//bool asActive = if the monsters are triggered
//string& asName = if a monster name is in there and active it will chase the player, if empty nothing happens

void InitiateGruntBrute(bool asActive, string& asName)
{
SetEntityActive("nomusic_brute_1", asActive);
SetEntityActive("nomusic_grunt_1", asActive);

ShowEnemyPlayerPosition(asName);
}

The issue according to the game:

InitiateGruntBrute(true, string& asName);

Sorry if I am bad at explaining, can't help it
09-01-2013, 09:20 PM
Find


Messages In This Thread
Script problem, help - by Neelke - 09-01-2013, 09:20 PM
RE: Script problem, help - by PutraenusAlivius - 09-02-2013, 08:52 AM
RE: Script problem, help - by Adrianis - 09-02-2013, 09:28 AM
RE: Script problem, help - by PutraenusAlivius - 09-02-2013, 12:31 PM
RE: Script problem, help - by Tomato Cat - 09-02-2013, 01:01 PM



Users browsing this thread: 1 Guest(s)