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
A local variable int bug
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#3
RE: A local variable int bug

First guess is you're missing SetLocalVarInt(), which should be in OnStart();

PHP Code: (Select All)
OnStart()
{
SetLocalVarInt("getit"0)


I'm genuinely unsure if that will fix it, but in most cases, you need to either set or declare a variable before it can be modified.


Orr, as Kreek mentioned, throw that section of code after your AddLocalVarInt(); since then it will check if the var does actually equal 2.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 05-28-2015, 11:26 AM by Romulator.)
05-28-2015, 11:25 AM
Find


Messages In This Thread
A local variable int bug - by Radical Batz - 05-28-2015, 11:09 AM
RE: A local variable int bug - by Kreekakon - 05-28-2015, 11:25 AM
RE: A local variable int bug - by Romulator - 05-28-2015, 11:25 AM
RE: A local variable int bug - by Mudbill - 05-28-2015, 03:44 PM
RE: A local variable int bug - by Radical Batz - 05-28-2015, 05:16 PM



Users browsing this thread: 1 Guest(s)