Give Game Plusses

Started on the old forum in January 2009 · view the original in the archive · old links redirect here

4 replies · 598 views · started 17 years ago · 1 min read

2 participants
honkytonkman Senior · 252 posts #1

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 " "; echo "Give GPs To ".getnick_uid($who)."

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

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

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

//////////////////////////////////////////

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

something else Fellow · 2,296 posts #2

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

honkytonkman Senior · 252 posts #3

QUOTE (something else @ Jan 12 2009, 04:23 PM) <{POST_SNAPBACK}>

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

this is the genproc i have :

CODE

//////////////////////////////////////////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 " "; //$uid = getuid_sid($sid); $gpsf = mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id='".$uid."'")); $gpst = mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id='".$who."'")); if($gpsf[0]>=$ptg){ $gpsf = $gpsf[0]-$ptg; $gpst = $gpst[0]+$ptg; $res = mysql_query("UPDATE ibwf_users SET gplus='".$gpst."' WHERE id='".$who."'"); if($res) { $res = mysql_query("UPDATE ibwf_users SET gplus='".$gpsf."' WHERE id='".$uid."'"); 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't have enough GPs to give "; }

    echo "

";

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

//////////////////// add club

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

something else Fellow · 2,296 posts #4

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close