lol i can help just i need to download thou things
THANKS sub, if just tried it, but no luck, can make that piece of script work, if also noticed that the items on will substract from credits, but if i put something new in the shop, say like - A personal VIP status, it wont substract from the users credits, even though it says it does, I have tried everything, can you help me? Wat do u think is wrong??
CODE}
else if($action=="peravat")
{
echo webhead($uthm,$stitle);
echo "
";
$ownid[0]=1;
$who=$_GET["whoid"];
$whoid=$_GET["who"];
$plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'"));
$remainplus = $plusses[0] - 1000;
$plussupdate = mysql_query("UPDATE ibwf_users SET credits='".$remainplus."' WHERE id='".$who."'");
$message = "A User Has visited The $asset Shop and Ordered a Personal Avatar, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]";
autopm($message, $ownid[0]);
echo "Thank You For Choosing To Purchase Your Personal Avatar. Your $asset Have Been Debited and your request sent to the staff for processing.
";
echo "We Expect your personal avatar to be ready in 48hours or less
";
echo "You Now have $remainplus $asset Remaining
";
echo "
";
echo "<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>";
echo "
";
echo webfoot();
}
else if($action=="persmile")
{
echo webhead($uthm,$stitle);
echo "
";
$ownid[0]=1;
$who=$_GET["whoid"];
$whoid=$_GET["who"];
$plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'"));
$plussupdate = mysql_query("UPDATE ibwf_users SET credits='".$remainplus."' WHERE id='".$who."'");
$message = "A User Has visited The $asset Shop and Ordered a Personal Smilie, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]";
autopm($message, $ownid[0]);
echo "Thank You For Choosing To Purchase Your Personal Smilie. Your $asset Have Been Debited and your request sent to the staff for processing.
";
echo "We Expect your Personal Smilie to be ready in 48hours or less
";
echo "You Now have $remainplus $asset Remaining
";
echo "
";
echo "<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>";
echo "
";
echo webfoot();
}
else if($action=="pubchat")
{
echo webhead($uthm,$stitle);
echo "
";
$ownid[0]=1;
$who=$_GET["whoid"];
$whoid=$_GET["who"];
$plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'"));
$remainplus = $plusses[0] - 4000;
$plussupdate = mysql_query("UPDATE ibwf_users SET credits='".$remainplus."' WHERE id='".$who."'");
$message = "A User Has visited The $asset Shop and Ordered a Public Chatroom, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]";
autopm($message, $ownid[0]);
echo "Thank You For Choosing To Purchase Your Own Chatroom. Your $asset Have Been Debited and your request sent to the staff for processing.
";
echo "We Expect your Room to be live within 48hours or less
";
echo "You Now have $remainplus $asset Remaining
";
echo "
";
echo "<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>";
echo "
";
echo webfoot();
}
else if($action=="pubforum")
{
echo webhead($uthm,$stitle);
echo "
";
$ownid[0]=1;
$who=$_GET["whoid"];
$whoid=$_GET["who"];
$plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'"));
$remainplus = $plusses[0] - 5000;
$plussupdate = mysql_query("UPDATE ibwf_users SET plusses='".$remainplus."' WHERE id='".$who."'");
$message = "A User Has visited The $asset Shop and Ordered a Public Forum, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]";
autopm($message, $ownid[0]);
echo "Thank You For Choosing To Purchase a Public Forum. Your $asset Have Been Debited and your request sent to the staff for processing.
";
echo "We Expect your forum will be live within 48hours or less
";
echo "You Now have $remainplus $asset Remaining
";
echo "
";
echo "<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>";
echo "
";
}
else if($action=="perstaus") //// THIS ONE IS A NEW OE THAT WON'T SUBSTRACT
{
echo webhead($uthm,$stitle);
echo "
";
$ownid[0]=1;
$who=$_GET["whoid"];
$whoid=$_GET["who"];
$plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'"));
$remainplus = $plusses[0] - 1000;
$plussupdate = mysql_query("UPDATE ibwf_users SET plusses='".$remainplus."' WHERE id='".$who."'");
$message = "A User Has visited The $asset Shop and Ordered a Personal Status, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]";
autopm($message, $ownid[0]);
echo "Thank You For Choosing To Purchase a Personal Status. Your $asset Have Been Debited and your request sent to the staff for processing.
";
echo "We Expect your status will be live within 48hours or less
";
echo "You Now have $remainplus $asset Remaining
";
echo "
";
echo "
<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>";
echo "
";
}
else if($action=="vipstaus") //// ALSO THIS ONE IS A NEW OE THAT WON'T SUBSTRACT
{
echo webhead($uthm,$stitle);
echo "
";
$ownid[0]=1;
$who=$_GET["whoid"];
$whoid=$_GET["who"];
$plusses = mysql_fetch_array(mysql_query("SELECT credits, name FROM ibwf_users WHERE id='".$who."'"));
$remainplus = $plusses[0] - 1900;
$plussupdate = mysql_query("UPDATE ibwf_users SET plusses='".$remainplus."' WHERE id='".$who."'");
$permision = 847;
$vip = mysql_query("UPDATE ibwf_users SET pstatus='".$permision."' WHERE id='".$who."'");
$message = "A User Has visited The $asset Shop and Ordered a VIP Status, the user is ".$whoid." Please Action This request as soon as possible.[br/][small]p.s: this is an automated pm[/small]";
autopm($message, $ownid[0]);
echo "Thank You For Choosing To Purchase a V.I.P Status. Your $asset Have Been Debited and your request sent to the staff for processing.
";
echo "Your status has now been updated.
";
echo "$vip";
echo "You Now have $remainplus $asset Remaining
";
echo "
";
echo "
<a href="index.php?action=main&ses=$ses"><img src="images/home.gif" alt="*"/>Home</a>";
echo "
";
}