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
error in "for" ?
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#1
error in "for" ?

Hi guys

Its first time im using "for" scripts, but so fare i can see nothing is wrong, but the games keep saying that my "for" needs 2 ; but i cant see it.

////////////////////
//When entering map
void OnEnter()
{
//Slime
If(HasItem("glass_container_mix_done"))
for(int i=1;i<=22;i++)
{
SetEntityActive("Slime_"+i, true);
PlaySoundAtEntity("", "guardian_activated1.ogg", "Player", 0, false);
StartScreenShake(0.1, 8, 2, 2);
SetEntityActive("SlimeDamageArea_1", true);
SetEntityActive("SlimeDamageArea_2", true);
SetEntityActive("SlimeDamageArea_3", true);
SetEntityActive("SlimeDamageArea_4", true);
}

//Keys
AddUseItemCallback("", "CellerKey", "level_celler_1", "UsedKeyOnDoor", true);

//Quests
AddEntityCollideCallback("Player", "QuestArea", "SlimeQuest", true, 1);
AddUseItemCallback("" "glass_container_mix_done", "web_1", "SlimeQuestEnd", true);
}

Hope you guys will help

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 10-06-2012, 04:04 PM by Lizard.)
10-06-2012, 03:24 PM
Find


Messages In This Thread
error in "for" ? - by Lizard - 10-06-2012, 03:24 PM
RE: error in "for" ? - by Kreekakon - 10-06-2012, 03:39 PM
RE: error in "for" ? - by Lizard - 10-06-2012, 03:49 PM
RE: error in "for" ? - by The chaser - 10-06-2012, 04:02 PM
RE: error in "for" ? - by Ongka - 10-06-2012, 03:44 PM
RE: error in "for" ? - by The chaser - 10-06-2012, 03:44 PM
RE: error in "for" ? - by Ongka - 10-06-2012, 03:49 PM
RE: error in "for" ? - by Lizard - 10-06-2012, 04:04 PM



Users browsing this thread: 1 Guest(s)