Results 1 to 3 of 3

Thread: error with scars random function/procedure?

  1. #1
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default error with scars random function/procedure?

    Well, in my script, whenever I use the Random function or procedure (whichever it is) in scar, I get an error saying type mismatch in script.. Here's an example of where I used it:

    SCAR Code:
    if(not(LoggedIn))then
      Exit;
      wait(500+random(500));
      GameTab(4);

    Now if I take the wait(500+random(500)) out of there it works, or if I just take the random 500 out. I also tried using it in a case for my new function I'm making.. like case random(24) of and that gave me the same error.. :/

    Anybody got any ideas on what I'm doing wrong, or are you having the same problem?

    Scar 2.03 SRL 3.6 is what I'm using, not that that should matter.

    Thanks.

  2. #2
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You are using it correctly, so maybe there is something wrong in another part of the procedure. Post the rest?

    I just tested the lines you gave to make sure, and they DO compile for me.

  3. #3
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by omgh4x0rz View Post
    You are using it correctly, so maybe there is something wrong in another part of the procedure. Post the rest?

    I just tested the lines you gave to make sure, and they DO compile for me.
    LOL! Wow I'm a loser lol. My function, in the parameters I had random: Boolean; as one of them.. lol.

    I'm going to post it in SRL new functions in 5 minutes now thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Random mouse procedure
    By HairyDuncan2 in forum OSR Help
    Replies: 4
    Last Post: 08-18-2007, 04:17 AM
  2. Procedure that calls random procedure?
    By Secet in forum OSR Help
    Replies: 2
    Last Post: 03-03-2007, 03:56 PM
  3. UBI + 2 Scars = Multible Scars on 1 Computer
    By GenoDemoN in forum News and General
    Replies: 21
    Last Post: 06-26-2006, 07:05 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
  •