Jump to content

Vote Reward System[FREYA]!!


Recommended Posts

kala re file mas douleuete?mia eine fail epic la8os sto full tou ex3tr3m ke mia eine full la8i sto import? ;S emena pantos dn m perni ta import kan !

re a8ou den nio8is apo java ti 8es na sto dosoun gia to diko sou pack?? akou eki einai la9os ta import toso diskolo na ta ala3is ee??
Link to comment
Share on other sites

  • 1 month later...

Mou vgazei auto to error :

erroroi.png

 

Uploaded with ImageShack.us

 

Edit:to dior8wsa alla vgazei ena paromoio twra :/ anti gia GeneralISTPool-11 grafei GeneralISTPool-3 ...

An mporei kapoios as voh8isei Thanks!

Link to comment
Share on other sites

Mou vgazei auto to error :

erroroi.png

 

Uploaded with ImageShack.us

 

Edit:to dior8wsa alla vgazei ena paromoio twra :/ anti gia GeneralISTPool-11 grafei GeneralISTPool-3 ...

An mporei kapoios as voh8isei Thanks!

DIkse mas Photo apo to neo problem..!

 

Epishs prosexe na eisai sindedemenos sto internet ...aliws epeidh dn mporei na sinde8ei logiko einai na s petaei error sto GS console...!

Link to comment
Share on other sites

Mou vgazei auto to error :

erroroi.png

 

Uploaded with ImageShack.us

 

Edit:to dior8wsa alla vgazei ena paromoio twra :/ anti gia GeneralISTPool-11 grafei GeneralISTPool-3 ...

An mporei kapoios as voh8isei Thanks!

 

Κάνε

import java.net.URLConnection;

 

Βάλε ως σχόλιο την γραμμή :

isr = new InputStreamReader(url.openStream());

 

Δηλαδή κάπως έτσι : 

//isr = new InputStreamReader(url.openStream());

 

Πρόσθεσε αυτό: 

URLConnection con = (URLConnection) url.openConnection();
con.addRequestProperty("User-Agent", "Mozilla/4.76"); 
isr = new InputStreamReader(con.getInputStream());

 

Θα πρέπει να είναι κάπως έτσι το τελικό αποτέλεσμα :

	try
	{
		URL url = new URL(urlString);
		+URLConnection con = (URLConnection) url.openConnection();
		+con.addRequestProperty("User-Agent", "Mozilla/4.76"); 
		+isr = new InputStreamReader(con.getInputStream());
                        //isr = new InputStreamReader(url.openStream());
		in = new BufferedReader(isr);
		String inputLine;
		int voteCount = 0;

 

 

Ελπίζω να σε κάλυψα! :)

 

 

Edit: Ευχαριστώ τον panos9999 για την βοήθεια! :D

Link to comment
Share on other sites

  • 2 weeks later...

Mou vgazei auto to error :

erroroi.png

 

Uploaded with ImageShack.us

 

Edit:to dior8wsa alla vgazei ena paromoio twra :/ anti gia GeneralISTPool-11 grafei GeneralISTPool-3 ...

An mporei kapoios as voh8isei Thanks!

 

i got the same error but i dont understan GR D:

 

can someone xplain this to me in english?

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 2 months later...
  • 1 month later...

+	private int getVotes(String urlString)
+	{
+		InputStreamReader isr = null;
+		BufferedReader in = null;
+		try
+		{
+			URL url = new URL(urlString);
+                      isr = new InputStreamReader(url.openStream());
+			in = new BufferedReader(isr);
+			String inputLine;
+			int voteCount = 0;
+			while ((inputLine = in.readLine()) != null)
+			{
+				if (inputLine.contains("moreinfo_total_rank_text"))
+				{
+					int Sub = 12;
+					switch (inputLine.length())
+					{
+						case 116:
+							Sub = 13; 
+							break;
+						case 117:
+							Sub = 14; 
+							break;
+						case 118:
+							Sub = 15;
+							break;
+						case 119:
+							Sub = 16; 
+							break;
+					}
+					voteCount = Integer.parseInt(inputLine.substring(inputLine.length() - Sub, inputLine.length() - 11));
+					break;
+				}
+			}
+			return voteCount;
+		}
+		catch (IOException e)
+		{
+			e.printStackTrace();
+			return 0;
+		}
+		finally
+		{
+			try
+			{
+				in.close();
+			}
+			catch (IOException e)
+			{
+				
+			}
+			try
+			{
+				isr.close();
+			}
+			catch (IOException e)
+			{
+				
+			}
+		}
+	}

 

:/ So much drama to get a server's vote count...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...