Results 1 to 5 of 5

Thread: How can i test if the nick is correct

  1. #1
    Join Date
    Aug 2007
    Posts
    115
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How can i test if the nick is correct

    Because i had troubles with one of my auto with typing the correct nick that SCAr will regonise, is there a way i can test if the nick is correct in SCAR (i only have this problem with 1 auto but i need the auto to run properly)?

  2. #2
    Join Date
    Oct 2007
    Location
    Missouri important for.....nothing.
    Posts
    82
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well first of all
    1. r u running vista?
    2. How many letters are in your nick?
    3. is it a part of ur nick? (ex. Deadman=eadm or ead, dman, dma, ect.)
    4. are u useing ur fist letter in your name?
    5. does the script that u are running have randoms?


    p.s. i like ur sig.

  3. #3
    Join Date
    Nov 2007
    Location
    Australia
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program ParseNick

    var
       name, nick: string;
       limit: Integer;

    begin
    name:='Your Username';                  //Change this to form input or whatever
    nick:=readln('What is your nickname?'); //Change this to form input or whatever

    limit=4; //Change this to the length limit for the nickname

    //Making not case sensitive
    name:= lowercase(name);
    nick:= lowercase(nick);

    //If the nickname is not in string
    if (pos(nick,name))=0 then
      begin
      writeln('Error: Nickname doesnt match name.');
      exit;
      end;

    //If the nickname includes the first letter of the name
    if (pos(nick,name))=1 then
      begin
      writeln('Error: Nickname includes first letter of name.');
      exit;
      end;
    //If the nickname exceeds the length limit
    if (length(nick)>limit) then
      begin
      writeln('Error: Nickname exceeds '+IntToStr(limit)+' characters.');
      end;
     
    //No errors. Put other code here.
    end.

    Hope that helps


    Edit: I just realised you can use this for the same result:
    SCAR Code:
    CheckUserNicks

  4. #4
    Join Date
    Nov 2007
    Posts
    184
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by tigerskall View Post
    Well first of all
    1. r u running vista?
    2. How many letters are in your nick?
    3. is it a part of ur nick? (ex. Deadman=eadm or ead, dman, dma, ect.)
    4. are u useing ur fist letter in your name?
    5. does the script that u are running have randoms?


    p.s. i like ur sig.

    im running vista...however i have not encountered much problems with nick ..care to elaborate?

  5. #5
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    In DeclarePlayers, in the last line above end, put CheckNick;


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Is this correct?
    By NCDS in forum OSR Help
    Replies: 1
    Last Post: 12-23-2008, 03:14 AM
  2. is this correct?
    By jones2644 in forum OSR Help
    Replies: 2
    Last Post: 07-05-2008, 10:37 PM
  3. Nick Name
    By NosePicker in forum OSR Help
    Replies: 3
    Last Post: 03-19-2008, 07:10 PM
  4. Speed Test [Test your connection and share!]
    By yanix in forum News and General
    Replies: 2
    Last Post: 12-17-2007, 09:27 PM
  5. Replies: 4
    Last Post: 11-06-2007, 07:18 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
  •