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
Global variables and Local Map variables.
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#1
Global variables and Local Map variables.

What exactly is the difference between Global Variables (ie declaring a variable within a local scope) and Local Map Variables (ie using the SetLocalVarInt function)? Is there any reason why I would want to use a Local Map Variable over a Global Variable? Being able to simply declare a variable in the conventional manner just seems a lot simpler to read and less complicated to me.

04-28-2012, 08:56 PM
Find


Messages In This Thread
Global variables and Local Map variables. - by Homicide13 - 04-28-2012, 08:56 PM



Users browsing this thread: 1 Guest(s)