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
"SetGlobalVarInt" Problem
bjaffedj Offline
Junior Member

Posts: 39
Threads: 8
Joined: Aug 2012
Reputation: 0
#1
"SetGlobalVarInt" Problem

okay i have a huge problem with "SetGlobalVarInt".
i heard that it could cause problems to use "AddGlobalVarInt", so i just use Set.

each time i run the custom story, it gives me an error that says, "LanternInt is not declared"


please help, since i don't know what to do anymore.

the code(left out unneccesarys):


void OnStart()
{
SetGlobalVarInt("LanternInt", 0);
}

void OnEnter()
{
if(GetGlobalVarInt(LanternInt) == 0)    
{    
SetLevelDoorLocked("level_dungeon_1", true);
}

if(GetGlobalVarInt(LanternInt) == 1)
{    
SetLevelDoorLocked("level_dungeon_1", false);    
}
}
(This post was last modified: 08-23-2012, 07:22 AM by bjaffedj.)
08-22-2012, 09:15 PM
Find


Messages In This Thread
"SetGlobalVarInt" Problem - by bjaffedj - 08-22-2012, 09:15 PM
RE: "SetGlobalVarInt" Problem - by shadowZgamerZ - 08-22-2012, 09:34 PM
RE: "SetGlobalVarInt" Problem - by bjaffedj - 08-22-2012, 09:48 PM



Users browsing this thread: 1 Guest(s)