Results 1 to 9 of 9

Thread: how to use variables in typebyte

  1. #1
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default how to use variables in typebyte

    does anyone know how to use variables in typebyte? i keep getting the syntax error in script. i think its because a string can be more than one letter. its because im trying to make a function to type stuff with human mistakes. i know there already is a function to do this but no offense to the makers but i didnt really like it. so, does anyone care to help? i tried making a type to only work with one letter but i didnt know how to get the type to work, i just got the error identifier expected in script. i tried to put a begin and end but it didnt work so i gave up, lol. thanks in advance for the help.

  2. #2
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    it types a byte so you have to use a byte variable. declare the variable as a byte and i think it can only have 1 char.

  3. #3
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh ok, i didnt know there was such thing as a byte variable...since none of the tutorials i read taught it

  4. #4
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    yea its not too common since there are not very many uses for it.

  5. #5
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    A byte is just an integer from -127 to 128...


    Saves spac in huge arrays, and so does short. (I don't think thats what a short integer is called in SCAR).
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  6. #6
    Join Date
    Jun 2007
    Location
    I'm not sure...
    Posts
    581
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    and a short integer is...? An integer with 1 digit?
    ---------------------------------------------------------


    Pm me if you need any math functions made. Me = l0ving t3h mathz

    ---------------------------------------------------------

  7. #7
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    No, no, no...

    A short integer just an regular integer, but with lower limits. Just like a byte has a certain value range (-127 to 128), so does a short integer, but lower than an integer. Another example is Longint, wich has a greater range than integer.


    This reduces the memory needed to record the type of value.
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  8. #8
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    then theres int64 which holds like 1000000000 to -1000000000 or something

  9. #9
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Haha.
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Uninitialized variables
    By NosePicker in forum OSR Help
    Replies: 2
    Last Post: 03-20-2008, 07:34 PM
  2. Variables
    By Jackrawl in forum OSR Help
    Replies: 4
    Last Post: 12-04-2007, 04:30 PM
  3. Variables..
    By doritoz in forum OSR Help
    Replies: 19
    Last Post: 09-03-2007, 03:10 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
  •