I need a tad bit of help. ;p

Results 1 to 7 of 7
  1. #1
    Apprentice Bladexe is offline
    MemberRank
    Nov 2008 Join Date
    9Posts

    I need a tad bit of help. ;p

    Hello, I was searching around, and came across this code to send coins to user. I was just wondering if anyone knew how to use it.


    Code:
    <?php 
    
    if(isset($_POST['changecoins'])) 
    { 
        $type = $_POST['type']; 
        $id = $_POST['id']; 
        $coins = $_POST['coins']; 
    
        if( $type == 0 ) 
        { 
            $query02 = mssql_query("SELECT AID FROM Login(nolock) WHERE UserID = '$id'"); 
            $part = "UserID"; 
        } 
        elseif( $type == 1 ) 
        { 
            $query02 = mssql_query("SELECT UserID FROM Login(nolock) WHERE AID = '$id'"); 
            $part = "AID"; 
        } 
        else 
        { 
            die(); 
        } 
    
        if( mssql_num_rows($query02) != 1 ) 
        { 
            die("Account doesn't exists"); 
        } 
        else 
        { 
            mssql_query("UPDATE Login SET Coins = Coins + $coins WHERE $part = '$id'"); 
            die("Coins added succesfully"); 
        } 
    } 
    
    ?> 
    
    <h3>Add Coins</h3> 
    <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> 
    <select name="type"> 
        <option value="0">UserID</option> 
        <option value="1">AID</option> 
    </select>&nbsp;&nbsp; 
    <input type="text" name="id" />&nbsp;&nbsp;Coins:&nbsp;&nbsp; 
    <input type="text" name="coins" />&nbsp;&nbsp; 
    <input type="submit" name="changecoins" value="Add Coins" /> 
    </form>


  2. #2
    Animu Addicted Number12 is offline
    MemberRank
    Apr 2008 Join Date
    Old Sunny CALocation
    1,264Posts

    Re: I need a tad bit of help. ;p

    wrong section. Go post here please http://forum.ragezone.com/f311

  3. #3
    Account Upgraded | Title Enabled! gsterv900 is offline
    MemberRank
    Jun 2009 Join Date
    573Posts

    Re: I need a tad bit of help. ;p

    yea like he said but this is kindof a release he is giving the code just asking for some help on it

  4. #4
      Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts
    Quote Originally Posted by gsterv900 View Post
    yea like he said but this is kindof a release he is giving the code just asking for some help on it
    It was already released. So this is the wrong section.
    Posted via Mobile Device

  5. #5
    Browser. Nova is offline
    MemberRank
    Nov 2008 Join Date
    --Location
    400Posts

    Re: I need a tad bit of help. ;p

    That's from Emisand's Admin/GM panel. You might as well download the whole panel.

    If you want to use that as a stand alone function you'll need the HTML part.
    Open characters.php and search for "changecoins" and copy everything you see withing the < /br> tags.

  6. #6
    人◕ ‿‿ ◕人 Forean is offline
    MemberRank
    Jul 2008 Join Date
    1,183Posts

    Re: I need a tad bit of help. ;p

    Quote Originally Posted by Nova View Post
    That's from Emisand's Admin/GM panel. You might as well download the whole panel.

    If you want to use that as a stand alone function you'll need the HTML part.
    Open characters.php and search for "changecoins" and copy everything you see withing the < /br> tags.

    fuckin' smart mister "here to help superman"

  7. #7
      Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts

    Re: I need a tad bit of help. ;p

    Quote Originally Posted by Nova View Post
    That's from Emisand's Admin/GM panel. You might as well download the whole panel.

    If you want to use that as a stand alone function you'll need the HTML part.
    Open characters.php and search for "changecoins" and copy everything you see withing the < /br> tags.
    As far as I know, Emisand's panel never had a coin sending script.



Advertisement