Results 1 to 5 of 5

Thread: Doesn't Recognise 'Random' ?

  1. #1
    Join Date
    Dec 2007
    Location
    I'm the short man in all those arcade games you play
    Posts
    169
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Doesn't Recognise 'Random' ?

    I am making an auto talker, it is my first script.

    I have it almost completed, but one thing is really bothering me.

    If I try to run it, I come up with an error on this line as an unknown identifier:
    SCAR Code:
    Time1 =(1000+random(250)); // Wait time between each message (in Milliseconds)

  2. #2
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I think it's because a Constant can't be a "random number".

    I'm not sure though, but I would let the user set the timing to what he/she wants and then in the "Wait(Time1)" you add "+random(250)"

    -Knives

  3. #3
    Join Date
    Dec 2007
    Location
    I'm the short man in all those arcade games you play
    Posts
    169
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks Knives, Never thought of that.

  4. #4
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Constant - Const is literally "constant".

    Its value will be and cannot be changed during the runtime.

  5. #5
    Join Date
    Dec 2007
    Location
    Los Angeles, California
    Posts
    606
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yea probably can't be random

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. New random????
    By Scaper in forum News and General
    Replies: 13
    Last Post: 02-04-2008, 04:08 AM
  2. Old Man Random
    By pwnaz0r in forum RS has been updated.
    Replies: 0
    Last Post: 02-18-2007, 07:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •