Jump to content

Paysafe Donation Manager


Recommended Posts

  • 2 weeks later...
  • 2 weeks later...
  • 2 weeks later...
  • 3 weeks later...
  • 2 weeks later...

Good job my friend but you must fix something because if you start your pin with "0" and for example you have the pin "0123", in your txt file you will have the pin "123" not "0123"!

Sorry if i am wrong! :)

 

try this:

	    	  StringTokenizer st = new StringTokenizer(command);
	    	  st.nextToken();
	    	  String a-beep-t = null;
                     -    int pin1 = 0;
            	     -    int pin2 = 0;
	     -    int pin3 = 0;
	     -    int pin4 = 0;
                     +    String pin1 = null;
	     +    String pin2 = null;
	     +    String pin3 = null;
	     +    String pin4 = null;
	    	  String message = "";
	    	  
	    	  try
	    	  {
	    		 a-beep-t = st.nextToken();
	            -    pin1 = Integer.parseInt(st.nextToken());
	    	    -    pin2 = Integer.parseInt(st.nextToken());
	    	    -    pin3 = Integer.parseInt(st.nextToken());
	    	    -    pin4 = Integer.parseInt(st.nextToken());
                            +    if (st.hasMoreTokens()) pin1 = st.nextToken();
                            +    if (st.hasMoreTokens()) pin2 = st.nextToken();
                            +    if (st.hasMoreTokens()) pin3 = st.nextToken();
                            +    if (st.hasMoreTokens()) pin4 = st.nextToken();
	    		 while(st.hasMoreTokens())
	    			 message = message + st.nextToken() + " ";

Link to comment
Share on other sites

  • 2 months later...
  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...