Thread: no doze vote for cash

Results 1 to 3 of 3
  1. #1 no doze vote for cash 
    Registered Member
    Join Date
    Jul 2008
    Posts
    3,163
    Thanks given
    235
    Thanks received
    74
    Rep Power
    209
    hey ii try to convert this tutorial to shard-no doze http://www.rune-server.org/runescape...ote-items.html
    but wont give me items in game

    Code:
    	public static void checkVote(Client c) {
    		try {
    			Statement stmt = conn.createStatement();
    			ResultSet rs = stmt
    					.executeQuery("SELECT COUNT(playerName) AS total FROM `votes` WHERE `playerName`= \""
    							+ c.getUsername() + "\" AND `recieved`= 0");
    			rs.first();
    			int total = rs.getInt("total");
    			if (total == 1) {
    				stmt.execute("UPDATE `votes` SET `recieved` = 1 WHERE `playerName` = '"
    						+ c.getUsername() + "'");
    				c.getActionSender().sendInventoryItem(995, 5000000);
    				c.getActionSender().sendMessage("Thanks for voting!");
    			}
    		} catch (SQLException ex) {
    			System.out.println(ex);
    		}
    	}
    what is worng?
    Phpadmin database work fine,added my vote.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2008
    Posts
    2,418
    Thanks given
    721
    Thanks received
    595
    Rep Power
    1220
    Wouldn't you just have to change the code that sends the message, and the code that gives the item, to which the one that Shard uses?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2008
    Posts
    3,163
    Thanks given
    235
    Thanks received
    74
    Rep Power
    209
    nopcan u help me?
    msn [email protected]
    Reply With Quote  
     


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: 7
    Last Post: 04-29-2014, 09:06 PM
  2. 25$ for vote 4 cash
    By Arbiter in forum Help
    Replies: 18
    Last Post: 01-24-2011, 09:22 PM
  3. [pi]::vote command or vote for cash
    By jessie thompson in forum Help
    Replies: 0
    Last Post: 12-30-2010, 07:53 AM
  4. [5$] Vote 4 Cash
    By fl3x in forum Help
    Replies: 2
    Last Post: 12-27-2010, 04:33 AM
  5. [PI] Vote For Cash via sql -$10 -DONE
    By sketzo in forum Requests
    Replies: 1
    Last Post: 12-24-2010, 03:20 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •