Hi everyone !
I'm starting oxide / C# devloppement, I see a problem on my test code.
IMG: Screenshot
Can you help me ?Code:double test = (1 / 5); PrintToChat(player, "Debug double: " + test);
Thanks
Double changing to int when outputting
Discussion in 'Rust Development' started by TDK_DEV, Jul 3, 2018.
-
Wulf Community Admin
Double is changed to an int there when outputting I believe, so 0.2 -> 0.
-
Ok i see. But how can I do my bet system ? so probability are 0.01 -- 0.09.
Not possible ? -
Wulf Community Admin
-
Hum nice
but If i do not want use float ? Can I use 2 double to get a final double ? -
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. -
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