Give Game Plusses

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Give Game Plusses

    this is the give GPLUSSES on wapdesire, but using it nothing happens..the nick i give plusses
    don't find it ..
    error in the php script or in database?

    in genproc. everytime the action is confermed but no plusses go to destination..

    //////////////////////////////////////////Give Game Plusses

    else if($action=="givegp")
    {
    $who = $_GET["who"];
    addonline(getuid_sid($sid),"Giving Game Plusses","");
    echo "<head>";
    echo "<title>Give Game Plusses</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo "</head>";
    echo "<body>";
    echo "<p align=\"center\">";
    echo "Give GPs To ".getnick_uid($who)."

    ";
    $gps = mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id=&#39;".getuid_sid($sid)."&#39;"));
    echo "You have $gps[0] GP&#39;s

    ";
    echo "GP&#39;s to give
    ";
    echo "<form action=\"genproc.php?action=givegp&amp;sid=$sid&am p;who=$who\" method=\"post\">";
    echo "<input name=\"tfgp\" style=\"-wap-input-format: &#39;*N&#39;\" maxlength=\"2\">";
    echo "
    <input type=\"Submit\" Value=\"Give\" name=\"Give\"></form>";
    echo "

    0 <a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
    echo "</p>";
    echo "</body>";
    }

    //////////////////////////////////////////
    sigpicthe italian/international COMMUNITY of friendship
    http://people2000.netne.net
    WAP/WEB
    peoplemailbox@katamail.com

    #2
    probably need
    $tfgp = $_POST["tfgp"];
    in your genproc.php?action=givegp but withut seeing it im only guessing lol :P

    Comment


      #3
      <div class='quotetop'>QUOTE (something else @ Jan 12 2009, 04:23 PM) <{POST_SNAPBACK}></div>
      probably need
      $tfgp = $_POST["tfgp"];
      in your genproc.php?action=givegp but withut seeing it im only guessing lol :P[/b]
      this is the genproc i have :

      <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>

      //////////////////////////////////////////Give GPs
      else if($action=="givegp")
      {
      addonline(getuid_sid($sid),"Giving Game Plusses","");
      $who = $_GET["who"];
      $ptg = $_POST["ptg"];
      echo "<head>";
      echo "<title>$sitename</title>";
      echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo "</head>";
      echo "<body>";
      echo "<p align=\"center\">";
      //$uid = getuid_sid($sid);
      $gpsf = mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
      $gpst = mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
      if($gpsf[0]>=$ptg){
      $gpsf = $gpsf[0]-$ptg;
      $gpst = $gpst[0]+$ptg;
      $res = mysql_query("UPDATE ibwf_users SET gplus=&#39;".$gpst."&#39; WHERE id=&#39;".$who."&#39;");
      if($res)
      {
      $res = mysql_query("UPDATE ibwf_users SET gplus=&#39;".$gpsf."&#39; WHERE id=&#39;".$uid."&#39;");
      echo "<img src=\"../images/ok.gif\" alt=\"o\"/>Game Plusses Updated Successfully
      ";
      }else{
      echo "<img src=\"../images/notok.gif\" alt=\"x\"/>Database Error!
      ";
      }
      }else{
      echo "<img src=\"../images/notok.gif\" alt=\"x\"/>You don&#39;t have enough GPs to give
      ";
      }

      echo "
      ";

      echo "0 <a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p>";
      echo "</body>";
      }

      //////////////////// add club</div>
      sigpicthe italian/international COMMUNITY of friendship
      http://people2000.netne.net
      WAP/WEB
      peoplemailbox@katamail.com

      Comment


        #4
        yeah change
        $ptg = $_POST["ptg"];
        to
        $ptg = $_POST["tfgp"];

        Comment


          #5
          thanks, now the function is working well..
          sigpicthe italian/international COMMUNITY of friendship
          http://people2000.netne.net
          WAP/WEB
          peoplemailbox@katamail.com

          Comment

          Working...
          X