1. Hi everyone !

    I'm starting oxide / C# devloppement, I see a problem on my test code.

    IMG: Screenshot

    Code:
    double test = (1 / 5);
    PrintToChat(player, "Debug double: " + test);
    Can you help me ?

    Thanks
     
  2. Wulf

    Wulf Community Admin

    Double is changed to an int there when outputting I believe, so 0.2 -> 0.
     
  3. Ok i see. But how can I do my bet system ? so probability are 0.01 -- 0.09.

    Not possible ?
     
  4. Wulf

    Wulf Community Admin

  5. Hum nice :)

    but If i do not want use float ? Can I use 2 double to get a final double ?
     
  6. Hello,

    Take a look at my Lottery plugin, it can help you to start and understand basic, i used double and int for it, it work with Economics plugin.
     
  7. Thanks, I know. But I wish create a bet plugin (Inspired Blueberry). I success finish it yesterday night :)

    I will sell it if i build a configuration

    Thank for your help