-
Posts
207 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by grant
-
ok i have been at this for about 3 days now just cant seem to get it to work ranked in my game well when you go to halloffame it tells you wot your rank is well i want my rank to tell me wot i rank in the game for Strength in my gym so if i was ranked 3 in my game it wld say 3 in all the game and so on for speed ect.. any help wld be great :D
-
ok ave got a super rewards on my site but wen i postback i dont get the points but its going in to the db ??? some help plz heres my code <?PHP include 'dbcon.php'; include 'classes.php'; $earn = ($_GET['new']); $id = ($_GET['id']); $totaluser = ($_GET['total']); $offerid = ($_GET['oid']); store_lead($_GET['oid'], $_GET['id'], $_GET['total'], $_GET['new']); echo 1; //store_lead function in classes.php// function store_lead($offerid, $id, $totaluser, $earn){ $result = mysql_query("SELECT * FROM `offers` WHERE `oid`='{$offerid}', `id`='{$id}', `total`='{$totaluser}', `new`='{$earn}'"); $result = mysql_query("INSERT INTO `offers` (`oid`, `id`, `total`, `new`) VALUES ('$offerid', '$id', '$totaluser', '$earn')"); $result1 = mysql_query("UPDATE `grpgusers` SET `points` = '$points + $earn WHERE `id`='".$id."'"); //give user points// } ?>
-
this is just a other way to get more gyms on your site took me about 5 min to make fot a wld share <?php include_once(DIRNAME(__FILE__) . '/header.php'); $error = ($user_class->city != 3) ? "You must be in the(" you city name") to sit in the cafe" : $error; if (isset($error)){ echo Message($error); include 'footer.php'; die(); }if ($_GET['cup'] == "y"){ if($user_class->gyms > 0) { $gyms = $user_class->gyms - 1; $result = mysql_query("UPDATE `users` SET `hp` = '".$user_class->maxhp."', `gyms`='".$gyms."' WHERE `id`='".$_SESSION['id']."'"); echo Message("You got a cut of tea for 10.000 refiling your health"); } else { echo Message("You have used 3 today warrior"); }}if ($_GET['fullb'] == "y"){ if($user_class->maxenergy == $user_class->energy){ echo "<table width='100%' border='0' class='contenthead'> <tr><td>energy</td></tr> </table> <table width='100%' border='0' cellspacing='0' cellpadding='0'class=' contentcontent1'> <tr><td height='44'><center>You have full energy already warrior </center></td></tr></table>"; include_once(DIRNAME(__FILE__) . '/footer.php'); die(); }if($user_class->gyms > 0) { $gyms = $user_class->gyms - 1; $result = mysql_query("UPDATE `users` SET `hp` = '".$user_class->maxhp."', `gyms`='".$gyms."', `awake`='".$user_class->maxawake."' , `nerve`='".$user_class->maxnerve."' , `energy`='".$user_class->maxenergy."' WHERE `id`='".$_SESSION['id']."'"); echo Message("You got a full English breakfast and refulled all your bars that wil get you of to a great day warrior"); } else { echo Message("You have used 3 today warrior"); }}$user_class = new User($_SESSION['id']); echo "<table width='100%' border='0' class='contenthead'><tr><td align='center'>Cafe</td> </tr></table><table width='100%' border='0' class='contentcontent'> <tr><td height='27' colspan='2' align='center'>You Can Sit In The Cafe For [".$user_class->gyms."] More Breakfasts Warrior</td> </tr><tr> <td width='50%' align='center'> Drink A Cup Of Tea Refull Your Health<br /> <button class='buttong' onclick=window.location.href='3gyms.php?cup=y'>Cup Of Tea</button></td> <td width='50%' height='0' align='center'> Get All Day Engish Breakfast And Refull All You Bar<br /> <button class='buttong' onclick=window.location.href='3gyms.php?fullb=y'>Full Engish Breakfast</button></td> </tr> </table>"; include_once(DIRNAME(__FILE__) . '/footer.php'); ?> add in rollover.php , `gyms`= '3' hope u like :D
-
You Dont Get there's Scripts for free you need to pay or make them yourself in right now am not to good at php so al just buy them :rolleyes:
-
how can i besure of that ? u mite just be tryin to scam ppl show me proof 8)
-
will pay to get a throne script or hitlist 8)
-
well its a page of thugs or bots or wot ever u want to call it that u can beat up for exp and wars Wins am just testing sum things before i post it then ever 1 can point out the errors
-
no its not mccoders its a code that am workin on its taking me round the bend lol
-
Am workin on the Thugs bots so u can have bots on your site just testing a few things the now when i get its workin al post it and some canm give me feed back on it mabi some times the week al post it
-
1.<?php 2.function Get_ID($username){ 3.$result = mysql_query("SELECT * FROM `grpgusers` WHERE `username` = '".$username."'"); 4.$worked = mysql_fetch_array($result); 5.return $worked['id']; 6.} 7 8.function mrefresh($url, $time="1"){ 9.echo '<meta http-equiv="refresh" content="'.$time.';url='.$url.'">'; 10.} well it all the same here so wot mite be the problem any ideas ?
-
<php function Get_ID($username){ $result = mysql_query("SELECT * FROM `grpgusers` WHERE `username` = '".$username."'"); $worked = mysql_fetch_array($result); return $worked['id']; } well thats wot in classes
-
Fatal error: Cannot redeclare get_id() (previously declared in /home/mafiawar/public_html/classes.php:2) in /home/mafiawar/public_html/classes.php on line 6
-
61 $result = mysql_query("SELECT * FROM `grpgusers`"); 65 while($line = mysql_fetch_assoc($result)) { 69 $updates_user = new User($line['id']); av give that a go see how it goes thanks
-
yes when i include the db i still have the same problem just 1 line now Fatal error: Class 'User' not found in /home/mafiawar/public_html/updates.php on line 69
-
sorry jordan i dont under stand im a little daft when it comes to this i will try find out wots wrong with it
-
well i have tryed the dbcon still the not working here if the code if u have any ideas of wot mite be wrong <? //Updates $result = mysql_query ("SELECT * FROM `updates` WHERE `name` = 'trevor'"); while ($line = mysql_fetch_array($updates_sql, MYSQL_ASSOC)) { $update = $line['lastdone']; } $timesinceupdate = time() - $update; if ($timesinceupdate>=300) { $num_updates = floor($timesinceupdate / 300); //stock market stuff $result = mysql_query("SELECT * FROM `stocks`"); while($line = mysql_fetch_assoc($result)) { $amount = rand (strlen($line['cost']) * -1, strlen($line['cost'])); $newamount = $line['cost'] + $amount; if ($newamount < 1){ $newamount = 1; } $result2 = mysql_query("UPDATE `stocks` SET `cost`='".$newamount."' WHERE `id`='".$line['id']."'"); } //stock market stuff $result = mysql_query("SELECT * FROM `grpgusers`"); while($line = mysql_fetch_assoc($result)) { $updates_user = new User($line['id']); if ($updates_user->rmdays > 0) { $multiplier = 2; } else { $multiplier = 1; } $username = $updates_user->username; $newawake = $updates_user->awake + (5 * $num_updates) * $multiplier; $newawake = ($newawake > $updates_user->maxawake) ? $updates_user->maxawake : $newawake; $newhp = $updates_user->hp + (10 * $num_updates) * $multiplier; $newhp = ($newhp > $updates_user->maxhp) ? $updates_user->maxhp : $newhp; $newenergy = $updates_user->energy + (2 * $num_updates) * $multiplier; $newenergy = ($newenergy > $updates_user->maxenergy) ? $updates_user->maxenergy : $newenergy; $newnerve = $updates_user->nerve + (2 * $num_updates) * $multiplier; $newnerve = ($newnerve > $updates_user->maxnerve) ? $updates_user->maxnerve : $newnerve; $result2 = mysql_query("UPDATE `grpgusers` SET `awake` = '".$newawake."', `energy` = '".$newenergy."', `nerve` = '".$newnerve."', `hp` = '".$newhp."' WHERE `username` = '".$username."'"); } //update the timer and db $thetime = time(); $result2 = mysql_query("UPDATE `updates` SET `lastdone` = '".$thetime."' WHERE `name` = 'trevor'"); $leftovertime = $timesinceupdate - (floor($timesinceupdate / 300) * 300); if ($leftovertime>0) { $newupdate = time() - $leftovertime; $setleftovertime = mysql_query("UPDATE `updates` SET `lastdone` = '".$newupdate."' WHERE `name` = 'trevor'"); } } $updates_sql = mysql_query("SELECT * FROM `updates` WHERE `name` = 'hospital'"); while ($line = mysql_fetch_array($updates_sql, MYSQL_ASSOC)) { $update = $line['lastdone']; } $timesinceupdate = time() - $update; if ($timesinceupdate>=60) { $num_updates = floor($timesinceupdate / 60); $result = mysql_query("SELECT * FROM `grpgusers`"); //DO STUFF while($line = mysql_fetch_assoc($result)) { $result_user = mysql_query("SELECT * FROM `grpgusers` WHERE `id`='".$line['id']."'"); $updates_user = mysql_fetch_array($result_user); $newhospital = $updates_user['hospital'] - (60 * $num_updates); $newhospital = ($newhospital < 0) ? 0 : $newhospital; $newjail = $updates_user['jail'] - (60 * $num_updates); $newjail = ($newjail < 0) ? 0 : $newjail; $result2 = mysql_query("UPDATE `grpgusers` SET `hospital` = '".$newhospital."', `jail` = '".$newjail."' WHERE `id` = '".$line['id']."'"); } $result = mysql_query("SELECT * FROM `effects`"); while($line = mysql_fetch_assoc($result)) { if($line['timeleft'] > 0){ $newamount = $line['timeleft'] - (1 * $num_updates); $result2 = mysql_query("UPDATE `effects` SET `timeleft` = '".$newamount."' WHERE `id` = '".$line['id']."'"); } } $result2 = mysql_query("DELETE FROM `effects` WHERE `timeleft` < 1"); //update the timer and db $thetime = time(); $result2 = mysql_query("UPDATE `updates` SET `lastdone` = '".$thetime."' WHERE `name` = 'hospital'"); $leftovertime = $timesinceupdate - (floor($timesinceupdate / 60) * 60); if ($leftovertime>0) { $newupdate = time() - $leftovertime; $setleftovertime = mysql_query("UPDATE `updates` SET `lastdone` = '".$newupdate."' WHERE `name` = 'hospital'"); } } ?>
-
tryed so many ways to fix this ??? need some help pointing me to fix it thanks $result = mysql_query ("SELECT * FROM `updates` WHERE `name` = 'trevor'"); while ($line = mysql_fetch_array($updates_sql, MYSQL_ASSOC)) { $update = $line['lastdone']; } $timesinceupdate = time() - $update; if ($timesinceupdate>=300) { $num_updates = floor($timesinceupdate / 300); //stock market stuff $result = mysql_query("SELECT * FROM `stocks`"); while($line = mysql_fetch_assoc($result)) { $amount = rand (strlen($line['cost']) * -1, strlen($line['cost'])); $newamount = $line['cost'] + $amount; if ($newamount < 1){ $newamount = 1; } $result2 = mysql_query("UPDATE `stocks` SET `cost`='".$newamount."' WHERE `id`='".$line['id']."'"); } //stock market stuff $result = mysql_query("SELECT * FROM `grpgusers`"); while($line = mysql_fetch_assoc($result)) { $updates_user = new User($line['id']); if ($updates_user->rmdays > 0) { $multiplier = 2; } else { $multiplier = 1; } $username = $updates_user->username; $newawake = $updates_user->awake + (5 * $num_updates) * $multiplier; $newawake = ($newawake > $updates_user->maxawake) ? $updates_user->maxawake : $newawake; $newhp = $updates_user->hp + (10 * $num_updates) * $multiplier; $newhp = ($newhp > $updates_user->maxhp) ? $updates_user->maxhp : $newhp; $newenergy = $updates_user->energy + (2 * $num_updates) * $multiplier; $newenergy = ($newenergy > $updates_user->maxenergy) ? $updates_user->maxenergy : $newenergy; $newnerve = $updates_user->nerve + (2 * $num_updates) * $multiplier; $newnerve = ($newnerve > $updates_user->maxnerve) ? $updates_user->maxnerve : $newnerve; $result2 = mysql_query("UPDATE `grpgusers` SET `awake` = '".$newawake."', `energy` = '".$newenergy."', `nerve` = '".$newnerve."', `hp` = '".$newhp."' WHERE `username` = '".$username."'"); } //update the timer and db $thetime = time(); $result2 = mysql_query("UPDATE `updates` SET `lastdone` = '".$thetime."' WHERE `name` = 'trevor'"); $leftovertime = $timesinceupdate - (floor($timesinceupdate / 300) * 300); if ($leftovertime>0) { $newupdate = time() - $leftovertime; $setleftovertime = mysql_query("UPDATE `updates` SET `lastdone` = '".$newupdate."' WHERE `name` = 'trevor'"); } } $updates_sql = mysql_query("SELECT * FROM `updates` WHERE `name` = 'hospital'"); while ($line = mysql_fetch_array($updates_sql, MYSQL_ASSOC)) { $update = $line['lastdone']; } $timesinceupdate = time() - $update; if ($timesinceupdate>=60) { $num_updates = floor($timesinceupdate / 60); $result = mysql_query("SELECT * FROM `grpgusers`"); //DO STUFF while($line = mysql_fetch_assoc($result)) { $result_user = mysql_query("SELECT * FROM `grpgusers` WHERE `id`='".$line['id']."'"); $updates_user = mysql_fetch_array($result_user); $newhospital = $updates_user['hospital'] - (60 * $num_updates); $newhospital = ($newhospital < 0) ? 0 : $newhospital; $newjail = $updates_user['jail'] - (60 * $num_updates); $newjail = ($newjail < 0) ? 0 : $newjail; $result2 = mysql_query("UPDATE `grpgusers` SET `hospital` = '".$newhospital."', `jail` = '".$newjail."' WHERE `id` = '".$line['id']."'"); } $result = mysql_query("SELECT * FROM `effects`"); while($line = mysql_fetch_assoc($result)) { if($line['timeleft'] > 0){ $newamount = $line['timeleft'] - (1 * $num_updates); $result2 = mysql_query("UPDATE `effects` SET `timeleft` = '".$newamount."' WHERE `id` = '".$line['id']."'"); } } $result2 = mysql_query("DELETE FROM `effects` WHERE `timeleft` < 1"); //update the timer and db $thetime = time(); $result2 = mysql_query("UPDATE `updates` SET `lastdone` = '".$thetime."' WHERE `name` = 'hospital'"); $leftovertime = $timesinceupdate - (floor($timesinceupdate / 60) * 60); if ($leftovertime>0) { $newupdate = time() - $leftovertime; $setleftovertime = mysql_query("UPDATE `updates` SET `lastdone` = '".$newupdate."' WHERE `name` = 'hospital'"); } }
-
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/********/public_html/login.php on line 243 dont under stand y this is going like this av tryin just about everyfing i no :S lol
-
thanks i had one but was show wrong ? 8o 8o 8o
-
in how is that going to help ? in any way ;(
-
well av got on my login page the top 5 and its not showing them in the order wen some new comes in the game it knocks the other players out the top 5 how do i go about this so the other players stay on the list in till some 1 takes over them like if a was lvl 10 they wld need to get to lvl 11 to tale over me on the front page and in the orders from 1 to 5 top to bottom ? thanks any help on this wld be great :rolleyes:
-
my pleasure :D
-
wot u need to run your own radio 1 winamp 2 SHOUTcast DSP Plug-In for Winamp 3 you will need to sign up to Click Here and make a shoutcast server for your radio when your have dun the above lets start run your winamp install it then install your shoutcast click on winamp and Ctrl + P to open the winamp preferences on the side bar look for DSP/Effect click on that now you will see Nullsoft Shoutcast Source DPS V2.0.0 dsp_sc_.dll] Click on that and your server input box will pop up now go to OutPut on the server box now you will need to get your server details you make from the site a gave you Above Adreess is the box where you put the server id and the port you got from the server from the site now just put your password in and connect if you get ant erros check if you have put the wright details in the output box now you will need the radio code for your website <embed allowscriptaccess="never" src="http://REPLACE WITH YOUR IP : YOUR PORT" width="320" height="72" autostart="true" loop="true" type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" displaysize="4" autosize="-1" bgcolor="darkblue" showcontrols="true" showtracker="-1" showdisplay="0" showstatusbar="-1" videoborder3d="-1" designtimesp="5311"> </embed> "http://REPLACE WITH YOUR IP : YOUR PORT" the 1 that you just put in your output box oh 1 last fing befor you start playin you radio go to EnCoder on your output box and change it to Mp3 to get better quality on your radio and put your radio code on where you want it on your site thanks give me feed back on this thanks If You Need Help Help Plz Feel Free to mail me or Add me On Msn [email protected]
-
you dont need to use the images wots the big fuss just use your own images ?( was my first go at making the login page X(