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
Script Help How to search an array?
Cyfiawn Offline
Junior Member

Posts: 27
Threads: 8
Joined: Jun 2012
Reputation: 0
#3
RE: How to search an array?

(07-11-2012, 07:13 PM)SilentStriker Wrote: If I'm not mistaken while loops cause the game to not work properly. (This has nothing to do with anything just wanted to put it out there Smile )
It appears to work at the moment...getting no duplicate numbers after many tests...not sure if I'm just getting lucky or not though. I'll try a smaller range, but it seems fine so far.

Edit: after testing, I can confirm I get no duplicates, and no crashing. I changed the RandInt to be from 0 to 3, meaning they have to all be unique (0, 1, 2 or 3) or be duplicates. Maybe I'm just lucky, but I've reloaded map 30+ times.
(This post was last modified: 07-11-2012, 07:21 PM by Cyfiawn.)
07-11-2012, 07:18 PM
Find


Messages In This Thread
How to search an array? - by Cyfiawn - 07-11-2012, 06:18 PM
RE: How to search an array? - by SilentStriker - 07-11-2012, 07:13 PM
RE: How to search an array? - by Cyfiawn - 07-11-2012, 07:18 PM
RE: How to search an array? - by Your Computer - 07-11-2012, 09:28 PM



Users browsing this thread: 1 Guest(s)