Negative mesos fix. (command)

Page 4 of 4 FirstFirst 1234
Results 46 to 54 of 54
  1. #46
    Yuki Zygon is offline
    MemberRank
    Aug 2008 Join Date
    IllinoisLocation
    1,208Posts

    Re: Negative mesos fix. (command)

    Quote Originally Posted by XxОsirisxX View Post
    Just for your information, before going into Java, I were into C/C++.
    I'm sure you did.

    Quote Originally Posted by XxОsirisxX View Post
    Then again, this subject is not about coding language, this is about unsigned values.
    Actually, it is about programming languages because of their support of unsigned values. *head desk*

    Quote Originally Posted by XxОsirisxX View Post
    And yeah, I may waste my time looking for it (actually, no), just like I'm doing right now trying to prove you wrong again.
    You are only saying you are wasting time because you know I am right.

    Quote Originally Posted by XxОsirisxX View Post
    re-iteration of yours? HA!
    This whole subject became because you failed with unsigned values, implying that NEXON should make mesos unsigned (Which may never works, unless you add 2 variables in the method).
    *head desk* .NET framework languages supports unsigned values, so please think before you respond. You don't need two variables to represent an unsigned value.

    Quote Originally Posted by XxОsirisxX View Post
    Then, you came to me and said that I should take my own advise which was "You first need to know what you're talking about before posting". In that post, I did and proved. But you changed the subject to "You can use a higher primitive data type if you're using Java and the data sent by client is unsigned" (Which is something that I know by fact, and really off-topic) and also "You could ditch Java and go to .NET then".
    That's what the whole argument is about... Please get your head out of your ass Osi.

    Quote Originally Posted by XxОsirisxX View Post
    I re-iterated your post? Looks like you're just putting up craps without thinking before posting again.
    No Osi, that would be you.

    Quote Originally Posted by XxOsirisxX View Post
    You can say anything you wants Zygon, but that's really a subject change right there.

    "I wasn't changing the subject.". Yes, you did..
    Obviously you don't understand that mesos can never be negative if the value is unsigned. Unsigned values are always natural numbers (if you don't know what those are, then I truly pity you) or 0 (meaning its another fix for this problem). Hence, my post was quite relevant to this subject.

    Quote Originally Posted by XxOsirisxX View Post
    Seriously, take my advise.
    What advise would that be?

  2. #47
    Alpha Member XxОsirisxX is offline
    MemberRank
    Aug 2009 Join Date
    2,727Posts

    Re: Negative mesos fix. (command)

    Quote Originally Posted by Zygon View Post
    I'm sure you did.


    Actually, it is about programming languages because of their support of unsigned values. *head desk*


    You are only saying you are wasting time because you know I am right.


    *head desk* .NET framework languages supports unsigned values, so please think before you respond. You don't need two variables to represent an unsigned value.


    That's what the whole argument is about... Please get your head out of your ass Osi.


    No Osi, that would be you.


    Obviously you don't understand that mesos can never be negative if the value is unsigned. Unsigned values are always natural numbers (if you don't know what those are, then I truly pity you) or 0 (meaning its another fix for this problem). Hence, my post was quite relevant to this subject.


    What advise would that be?
    Ok Zygon, you're truly an idiot.

    Actually, it is about programming languages because of their support of unsigned values. *head desk*
    This is specifically about unsigned values, not programming language. Okay? Learn to understand a conversation dude.

    Okay Zygon, now I know why you haven't convinced yourself about your stupidity. It's because:

    Obviously you don't understand that mesos can never be negative if the value is unsigned. Unsigned values are always natural numbers (if you don't know what those are, then I truly pity you) or 0 (meaning its another fix for this problem). Hence, my post was quite relevant to this subject.
    I do KNOW that mesos can't be negative if you use unsigned values.. But hells, what an idiot...

    If you subtract a unsigned value to something below to 0, the result will be POSITIVE! How will you check if the amount to subtract from mesos will be negative, if the stupid mesos variable is unsigned??? the value of the check will be POSITIVE!

    Now get why you're an idiot that needs to read and research before posting????

    TAKE MY ADVISE, for 3rd time!

  3. #48
    Yuki Zygon is offline
    MemberRank
    Aug 2008 Join Date
    IllinoisLocation
    1,208Posts

    Re: Negative mesos fix. (command)

    Quote Originally Posted by XxОsirisxX View Post
    Ok Zygon, you're truly an idiot.
    How so? I'm simply telling you what is fact, however you say I'm an idiot for this.

    Quote Originally Posted by XxОsirisxX View Post
    This is specifically about unsigned values, not programming language. Okay? Learn to understand a conversation dude.

    Okay Zygon, now I know why you haven't convinced yourself about your stupidity. It's because:
    How about you learn to read English a little bit more carefully? Languages that are capable of using unsigned values are what I'm talking about. -.-'

    Quote Originally Posted by XxОsirisxX View Post
    I do KNOW that mesos can't be negative if you use unsigned values.. But hells, what an idiot...

    If you subtract a unsigned value to something below to 0, the result will be POSITIVE! How will you check if the amount to subtract from mesos will be negative, if the stupid mesos variable is unsigned??? the value of the check will be POSITIVE!

    Now get why you're an idiot that needs to read and research before posting????

    TAKE MY ADVISE, for 3rd time!
    You subtract from an unsigned with an unsigned...

    Now this is a no-no, since you're subtracting a signed value from an unsigned value:
    4294967295 - -2147483648 = 6442450943

    However, since we have unsigned values holding the meso value, we will use unsigned values for our algebraic equations, because doing otherwise wouldn't make any sense:
    4294967295 - 4294967295 = 0

  4. #49
    Alpha Member XxОsirisxX is offline
    MemberRank
    Aug 2009 Join Date
    2,727Posts

    Re: Negative mesos fix. (command)

    Quote Originally Posted by Zygon View Post
    How so? I'm simply telling you what is fact, however you say I'm an idiot for this.


    How about you learn to read English a little bit more carefully? Languages that are capable of using unsigned values are what I'm talking about. -.-'


    You subtract from an unsigned with an unsigned...

    Now this is a no-no, since you're subtracting a signed value from an unsigned value:
    4294967295 - -2147483648 = 6442450943

    However, since we have unsigned values holding the meso value, we will use unsigned values for our algebraic equations, because doing otherwise wouldn't make any sense:
    4294967295 - 4294967295 = 0
    Ok Zygon... I wrote it wrong, I meant result of subtract not the actual number.

    Ok.. so... let's be a bit more "realistic".

    You got 500 mesos.

    unsigned int mesos = 500;

    ok?

    And now, for some reason you wants to subtract it with 1000.

    mesos - 1000

    Get it now?

  5. #50
    Account Upgraded | Title Enabled! jon5477 is offline
    MemberRank
    Aug 2010 Join Date
    USALocation
    414Posts

    Re: Negative mesos fix. (command)

    Java doesn't have unsigned integers dumbass. Java doesn't support.

  6. #51
    Yuki Zygon is offline
    MemberRank
    Aug 2008 Join Date
    IllinoisLocation
    1,208Posts

    Re: Negative mesos fix. (command)

    Quote Originally Posted by XxОsirisxX View Post
    Ok Zygon... I wrote it wrong, I meant result of subtract not the actual number.

    Ok.. so... let's be a bit more "realistic".

    You got 500 mesos.

    unsigned int mesos = 500;

    ok?

    And now, for some reason you wants to subtract it with 1000.

    mesos - 1000

    Get it now?
    Code:
    uint mesos = 500;
    if (mesos >= 1000)
        mesos - 1000;
    else
        return;
    You don't do that unless they have the mesos in the first place, and an exception would be thrown because the value is outside of the data type's precision. In MS you can't have negative money... Well you can, but it isn't on purpose, and this is because the variable is signed. You can owe money in the real world, but currency never has a negative value.

    Quote Originally Posted by jon5477 View Post
    Java doesn't have unsigned integers dumbass. Java doesn't support.
    What he was providing was an example in a language that would, but yes everyone knows unsigned values aren't supported in Java, but there is a way on how you would acquire them for use in Java.
    Last edited by Zygon; 02-08-10 at 07:24 PM.

  7. #52
    Alpha Member XxОsirisxX is offline
    MemberRank
    Aug 2009 Join Date
    2,727Posts

    Re: Negative mesos fix. (command)

    Quote Originally Posted by Zygon View Post
    Code:
    uint mesos = 500;
    if (mesos >= 1000)
        mesos - 1000;
    else
        return;
    You don't do that unless they have the mesos in the first place, and an exception would be thrown because the value is outside of the data type's precision. In MS you can't have negative money... Well you can, but it isn't on purpose, and this is because the variable is signed. You can owe money in the real world, but currency never has a negative value.


    What he was providing was an example in a language that would, but yes everyone knows unsigned values aren't supported in Java, but there is a way on how you would acquire them for use in Java.
    Nope, it doesn't throw any kind of exception if you subtract an unsigned value and the result is below to 0, it will just be "reset".

    But yeah, pretty much, you need a check before subtract, even tho, if negative is there, it will also be positive and flaw.

  8. #53
    Account Upgraded | Title Enabled! macboy3000 is offline
    MemberRank
    Jan 2009 Join Date
    Nerds'r'Us MS!Location
    449Posts

    Re: Negative mesos fix. (command)

    They're talking about languages that do support, not just java dumbass

  9. #54
    Apprentice Z0neFly is offline
    MemberRank
    Jul 2010 Join Date
    10Posts

    Re: Negative mesos fix. (command)

    ur server sucks if u needed this..



Page 4 of 4 FirstFirst 1234

Advertisement