Thread: Daily Investment System

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 Daily Investment System 
    Everything is Corrupt
    Corrupt's Avatar
    Join Date
    Oct 2020
    Posts
    115
    Thanks given
    15
    Thanks received
    36
    Rep Power
    63
    please delete
    Last edited by Corrupt; 02-24-2021 at 04:37 AM.
    Living in a Corrupted World

    Attached image
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    *breaks walking*

    Cody_'s Avatar
    Join Date
    Dec 2010
    Posts
    732
    Thanks given
    219
    Thanks received
    203
    Rep Power
    286
    If all the methods are static, why is this an Action?

    Code:
    	 public static int getDay() {
    		  switch (dayOfWeek()) {
    		  case 1:
    			  return 1;
    		  case 2:
    			  return 2;
    		  case 3:
    			  return 3;
    		  case 4:
    			  return 4;
    		  case 5:
    			  return 5;
    		  case 6:
    			  return 6;
    		  case 7:
    			  return 7;
    		  }
    		return 0;
    	  }
    Just return dayOfWeek()
    Reply With Quote  
     

  4. #3  
    Christ is King

    Makar's Avatar
    Join Date
    Jul 2011
    Age
    29
    Posts
    2,004
    Thanks given
    545
    Thanks received
    965
    Rep Power
    427
    Quote Originally Posted by Cody_ View Post
    If all the methods are static, why is this an Action?

    Code:
    	 public static int getDay() {
    		  switch (dayOfWeek()) {
    		  case 1:
    			  return 1;
    		  case 2:
    			  return 2;
    		  case 3:
    			  return 3;
    		  case 4:
    			  return 4;
    		  case 5:
    			  return 5;
    		  case 6:
    			  return 6;
    		  case 7:
    			  return 7;
    		  }
    		return 0;
    	  }
    Just return dayOfWeek()
    This. And the Player variables being added are a bit strangely named.
    Attached image
    The best open-source pre-eoc remake project that isn't in its early stages for once
    Darkan Client (727 Client Refactor)
    Darkan World Server
    “It would not be impossible to prove with sufficient repetition and a psychological understanding of the people concerned that a square is in fact a circle. They are mere words, and words can be molded until they clothe ideas and disguise.”
    Reply With Quote  
     

  5. #4  
    Member Daily Investment System Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    i mean, i like the idea, but the execution is a bit......

    Attached imageAttached image
    Reply With Quote  
     

  6. #5  
    nice


    Join Date
    Jul 2014
    Posts
    740
    Thanks given
    382
    Thanks received
    562
    Rep Power
    4239
    sick code lad
    Reply With Quote  
     

  7. #6  
    plz dont take my wizard mind bombs Women's Avatar
    Join Date
    Mar 2010
    Posts
    1,881
    Thanks given
    724
    Thanks received
    1,162
    Rep Power
    4763
    nice

    will use
    Reply With Quote  
     

  8. #7  
    Everything is Corrupt
    Corrupt's Avatar
    Join Date
    Oct 2020
    Posts
    115
    Thanks given
    15
    Thanks received
    36
    Rep Power
    63
    Quote Originally Posted by Cody_ View Post
    If all the methods are static, why is this an Action?

    Code:
    	 public static int getDay() {
    		  switch (dayOfWeek()) {
    		  case 1:
    			  return 1;
    		  case 2:
    			  return 2;
    		  case 3:
    			  return 3;
    		  case 4:
    			  return 4;
    		  case 5:
    			  return 5;
    		  case 6:
    			  return 6;
    		  case 7:
    			  return 7;
    		  }
    		return 0;
    	  }
    Just return dayOfWeek()
    Tried this, but with the return of the dayofWeek, it wouldnt parse to an int for the system to understand. I tried a few different ways to parse it as an integer to set, but everytime it threw it as 0 as it wasnt converted to a variable for some strange reason.

    Quote Originally Posted by Makar View Post
    This. And the Player variables being added are a bit strangely named.
    Player variables are done weirdly because there are already variables in my system that are in use for more common names.

    Quote Originally Posted by Luke132 View Post
    i mean, i like the idea, but the execution is a bit......
    do you have any suggestions? i am orginally a php developer, so i been leaning towards that structure and havent learned quite everything with java, in terms of shortening code or other helpful ways. if you have something that would help, i would appreciate help to improve!
    Living in a Corrupted World

    Attached image
    Reply With Quote  
     

  9. #8  
    Christ is King

    Makar's Avatar
    Join Date
    Jul 2011
    Age
    29
    Posts
    2,004
    Thanks given
    545
    Thanks received
    965
    Rep Power
    427
    Quote Originally Posted by TheQuantum View Post
    Tried this, but with the return of the dayofWeek, it wouldnt parse to an int for the system to understand. I tried a few different ways to parse it as an integer to set, but everytime it threw it as 0 as it wasnt converted to a variable for some strange reason.



    Player variables are done weirdly because there are already variables in my system that are in use for more common names.



    do you have any suggestions? i am orginally a php developer, so i been leaning towards that structure and havent learned quite everything with java, in terms of shortening code or other helpful ways. if you have something that would help, i would appreciate help to improve!
    The variable names should at least be camelCased/snake_cased. And having invest, investt, and investtt regardless of whether they are used for something else is very non-descriptive and confusing.
    Attached image
    The best open-source pre-eoc remake project that isn't in its early stages for once
    Darkan Client (727 Client Refactor)
    Darkan World Server
    “It would not be impossible to prove with sufficient repetition and a psychological understanding of the people concerned that a square is in fact a circle. They are mere words, and words can be molded until they clothe ideas and disguise.”
    Reply With Quote  
     

  10. #9  
    Everything is Corrupt
    Corrupt's Avatar
    Join Date
    Oct 2020
    Posts
    115
    Thanks given
    15
    Thanks received
    36
    Rep Power
    63
    Quote Originally Posted by Makar View Post
    The variable names should at least be camelCased/snake_cased. And having invest, investt, and investtt regardless of whether they are used for something else is very non-descriptive and confusing.
    to be honest, the only thing not named accordingly is investtt, the rest are named accordingly to their reason. savings, lastreturn, dailyinvest and streak all labelled to what they are doing, it wouldnt take more than 5 seconds to swap that investtt to something casual. i guess i probably should've camel cased lastReturn and dailyInvest, i can change those small additions. to be fair, this is one of 3 investment systems i have built and/or building, and I'm used to php syntax naming.
    Living in a Corrupted World

    Attached image
    Reply With Quote  
     

  11. #10  
    Development Services √

    Oogle's Avatar
    Join Date
    Apr 2012
    Age
    25
    Posts
    3,976
    Thanks given
    650
    Thanks received
    516
    Rep Power
    483
    I really like the idea, stealing this and converting it, going to improve on this but thank you for the contribution!


    Attached image

    Attached image
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 30
    Last Post: 08-30-2015, 05:50 AM
  2. Replies: 125
    Last Post: 06-29-2015, 01:05 AM
  3. Daily Voting system. Doesn't require vps or webhost.
    By elfranger243 in forum Snippets
    Replies: 11
    Last Post: 06-26-2014, 04:46 PM
  4. Replies: 10
    Last Post: 08-31-2013, 03:47 PM
  5. Buying Daily Tasks & New person task system
    By JAVA GURU #1023 in forum Buying
    Replies: 2
    Last Post: 03-19-2012, 12:37 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
  •