Results 1 to 14 of 14

Thread: Please help

  1. #1
    Join Date
    Jul 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Please help

    please
    Last edited by mario_kn15; 07-18-2013 at 02:53 PM.

  2. #2
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Which line is the one giving the error? I'm on my phone at the moment so can't tell.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  3. #3
    Join Date
    Jul 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Rich View Post
    Which line is the one giving the error? I'm on my phone at the moment so can't tell.
    second line
    Last edited by mario_kn15; 07-18-2013 at 02:54 PM.

  4. #4
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    please name your variables + procedures more with more intention :S also use standards?

    your using function parameters wrong putting booleans where integers are supposed to be.
    your putting semicolons in procedure parameters.
    your assigning booleans to integers. you cant set a integer to false
    you have internal errors. aka your assigning in boolean statements(if, untils etc) (using :=) instead of (=)
    Last edited by Kasi; 07-14-2013 at 07:16 PM.

  5. #5
    Join Date
    Jul 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I fixed it, you can delete this thread thanks anyway

  6. #6
    Join Date
    Apr 2013
    Location
    Las Vegas
    Posts
    111
    Mentioned
    1 Post(s)
    Quoted
    35 Post(s)

    Default

    Quote Originally Posted by Kasi View Post
    please name your variables + procedures more with more intention :S also use standards?

    your using function parameters wrong putting booleans where integers are supposed to be.
    your putting semicolons in procedure parameters.
    your assigning booleans to integers. you cant set a integer to false
    you have internal errors. aka your assigning in boolean statements(if, untils etc) (using :=) instead of (=)
    For the sake of learning I would like to point out that in most programming languages and when using the Simba variable type 'variant' it is possible to use an integer as a Boolean or Boolean as an integer.

    In some other programming languages a value of '0' or '-1' represent 'false' while numbers above 0 will represent 'true'. In Simba however, only a value of '0' will return false when used in place of a Boolean.

    Here is a quick example to help aid understanding. If you are a programmer yourself, see if you can correctly guess what the output will be.

    Simba Code:
    program new;
    var
      i: variant;
    begin
    i := 1;

      if (i) then
      writeln ('A');

      if (i = true) then
      writeln ('B');

    i := 0;

      if (i) then
      writeln ('C');

      if (i = true) then
      writeln ('D');

    i := -1;

      if (i) then
      writeln ('E');

      if (i = true) then
      writeln ('F');

    i := 129632198321;

      if (i = true) then
      writeln ('G');

      if (i) then
      writeln ('H');

      if (i <> false) then
      writeln ('I');


    i := false;

      if (i = 0) then
      writeln ('J');

    end.

    And our results:

    Simba Code:
    A
    B
    E
    F
    H
    I
    J

  7. #7
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Quote Originally Posted by bob_dole View Post
    possible to use an integer as a Boolean or Boolean as an integer.
    For the sake of learning, yeah you can "use" an integer as a boolean or vise versa e.g BooleanX := not(IntegerY = 0);. but you are confusing pascal script with other languages. The variant datatype is a completely different datatype in pascal script. it takes on the characteristics of other datatypes such as booleans / integers / strings etc. so speaking from a more in depth view. booleans can not directly be assigned to integers in the same way integers cannot directly be assigned to booleans e.g BooleanX := 1; wouldnt work. in other languages you would be correct, but from a Pascal Script sense, in which the op posted, you are wrong. Kudos for explaining Variants regarding integers, booleans and doubles.

  8. #8
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Where did you get that script. We don't allow it on our forum.
    Working on: Tithe Farmer

  9. #9
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Quote Originally Posted by masterBB View Post
    Where did you get that script. We don't allow it on our forum.
    Why not?

    Am I missing something?
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  10. #10
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by Rich View Post
    Why not?

    Am I missing something?
    It is obfuscated. We do not allow obfuscated scripts.
    Working on: Tithe Farmer

  11. #11
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    Quote Originally Posted by masterBB View Post
    It is obfuscated. We do not allow obfuscated scripts.
    Ah, that. I thought you were referring to the actual function of the script. My bad.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  12. #12
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Quote Originally Posted by masterBB View Post
    It is obfuscated. We do not allow obfuscated scripts.
    Why do we have a obfuscate as a extension on simba?

  13. #13
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Quote Originally Posted by masterBB View Post
    It is obfuscated. We do not allow obfuscated scripts.
    Is that really all it takes to consider a script obfuscated? Using the formatter extension and then a replacement of the constants would make it look just like any other script here as far as I can tell.

    Quote Originally Posted by Kasi View Post
    Why do we have a obfuscate as a extension on simba?
    'Officially' for learning purposes. Unofficially to allow for ease of script obfuscation, privatization, and selling (although I DON'T think that was the original desire =/). However, as an open source community, anything public must also be open source and easily readable.

  14. #14
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    It is allowed to obfuscate scripts or sell scripts. You got copyright on what you wrote. But, it is not allowed on this forum.
    Working on: Tithe Farmer

Thread Information

Users Browsing this Thread

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

Posting Permissions

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