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
Anything wrong with this if-statement?
maggigyo Offline
Junior Member

Posts: 6
Threads: 4
Joined: Mar 2012
Reputation: 0
#1
Anything wrong with this if-statement?


Can someone please tell me if there is something wrong with this if-statement?

if(GetLocalVarInt("gamestate")==6)


I have used the ProgLog to make sure exactly where the problem lies.
This statement is inside my own function, but the function itself works.
The gamestate variable has the value 6 at this point as well.
The problem definately is the if-statement.


I have some programming experience with C++. However, I don't know what differences there are when using AngelScript. This leads to a lot of guessing like "maybe I should do something different that I don't know of".
(This post was last modified: 03-28-2012, 11:54 AM by maggigyo.)
03-28-2012, 11:12 AM
Find


Messages In This Thread
Anything wrong with this if-statement? - by maggigyo - 03-28-2012, 11:12 AM



Users browsing this thread: 1 Guest(s)