
corruptcity || skalman
Members-
Posts
358 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Everything posted by corruptcity || skalman
-
hi ive got an error with the smarketlog query its somethink to do with the timestamp? but as ive never used timestamps before. IF someone could be so kind to either tell me what im missing or how todo that would be most appreciate it <?php include "globals.php"; $_GET['statid'] = abs((int) $_GET['statid']); $_GET['price'] = abs((int) $_GET['price']); $statid = abs((int) $_GET['statid']); $stat = mysql_real_escape_string ($_GET['stat']); $amount = abs((int) $_GET['amount']); $price = mysql_real_escape_string (abs ((int) $_GET['price'])); if($_GET['price']) { $q=$db->query("SELECT * FROM implants WHERE statid={$_GET['statid']} AND userid=$userid"); if($db->num_rows($q) > 0) { print "Invalid Statid"; } else { $r=$db->fetch_row($q); $db->query("INSERT INTO implant_market (marketid, statid, userid, stat, amount, price) Values ('','{$_GET['statid']}','{$userid}','{$_GET['stattype']}','{$_GET['amount']}','{$_GET['price']}')"); $db->query("DELETE FROM implants WHERE statid='{$_GET['statid']}' and userid='{$userid}'"); $db->query("INSERT INTO smarketlogs (smlid, statid, userid, stat, amount, price, time) VALUES('','{$_GET['statid']}','{$userid}'{$_GET['stattype']}','{$_GET['amount']}', '{$_GET['price']}',unix_timestamp())"); print "Stat added to market."; } } else { $q=$db->query("SELECT * FROM implants WHERE statid={$_GET['statid']} AND userid={$userid}"); if($db->num_rows($q) > 0) { print "Invalid statid ID"; } else { $r=$db->fetch_row($q); print "Adding an item to the Stat market... <form action='statadd.php' method='get'> <input type='hidden' name='ID' value='{$_GET['statid']}' /> Price: <input type='text' name='price' value='0' /> <input type='submit' value='Add' /></form>"; } } $h->endpage(); ?>
-
Need some help with this code
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
it just keeps coming up with invalid stat now -
Need some help with this code
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
yeah it is and sorry for the torture but i wrote that when i was l8 at night and i was half asleep and wanted to get it finished b4 i crashed n ty -
hi i could really use some help with my code. The problem ive got with it is that with its not adding the amount to the right stat just shows the strength 1 <?php include_once "globals.php"; $_GET['statid'] = abs((int) $_GET['statid']); $_GET['stat'] = abs(@intval($_GET['stat'])); $stat=array( 'Strength' => 'strength', 'Agility' => 'agility', 'Guard' => 'guard', 'Labour' => 'labour', 'IQ' => 'IQ',); $gain = abs(@intval($_GET['amount'])); $strength = abs(@intval($_GET['amount'])); $agility = abs(@intval($_GET['amount'])); $guard = abs(@intval($_GET['amount'])); $labour = abs(@intval($_GET['amount'])); $IQ = abs(@intval($_GET['amount'])); $statid=$db->query("SELECT * FROM implants WHERE statid={$_GET['statid']} and userid=$userid"); if($db->num_rows($statid)==0) { print "Invalid stat ID"; $h->endpage(); exit; } else { $statid=$db->fetch_row($statid); } if ($_GET['stat'] == strength) { print"You use the implant and you gained $gain amount of strength "; $db->query("UPDATE userstats SET strength={$ir['strength']}+$strength and userid = $userid"); } elseif ($_GET['stat'] == agility) { print"You use the implant and you gained $gain amount of agility "; $db->query ("UPDATE userstats SET agility={$ir['agility']}+{$agility} and userid = $userid"); } elseif ($_GET['stat'] == guard) { print"You use the implant and you gained $gain amount of guard "; $db->query ("UPDATE userstats SET guard={$ir['guard']}+{$guard} and userid = userid"); } elseif ($_GET['stat'] == labour) { print"You use the implant and you gained $gainamount of labour "; $db->query ("UPDATE userstats SET labour={$ir['labour']}+{$labour} and userid = $userid"); } elseif ($_GET['stat'] == IQ) { print"You use the implant and you gained $gain amount of IQ "; $db->query ("UPDATE userstats SET IQ={$ir['IQ']}+{$IQ} and userid = $userid"); } ?>
-
between the words $db=>query (" and "; lol
-
im gonna register with the tax man just so i can claim back on the VAT lol
-
you sure you wanna try the gym again? lol
-
Need help with my mod
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
ok got it to work thyvm FBISS Illusions and immortal thug u can all have +1 -
Need help with my mod
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
ah sorry i get it now it just that its very l8 here in the UK and im in need of sleep lol -
Need help with my mod
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
ok here it is it could of been that u gunganed it lol <?php include_once "globals.php"; $statnames=array( 'Strength' => 'strength', 'Agility' => 'agility', 'Guard' => 'guard', 'Labour' => 'labour', 'IQ' => 'IQ'); if($_POST['statselect'] && array_key_exists(''.$_POST['statselect'].'',$statnames)) { $stat=$statnames(''. $_POST['statselect'] .''); $wdperc= 5; //Change to the percent that you with like to withdrawl, EX. 20 would be 20% $withdrawn=$ir[''.$stat.'']*($wdperc/100); $db->query("UPDATE userstats SET $stat=$stat-withdrawn WHERE userid={$r['userid']}"); $db->query("Insert into implants (statid, userid, stat, amount) VALUES ('',".$ir['userid'].",'$stat ','$withdrawn')"); if(!$stat) { die("This stat cannot be withdrawn."); } else { $inc=$ir[$stat]-$withdraw; if($stat=="strength") { print "You Safety Managed to fill the Stat Implant with some of your strength. You have lost {$withdrawn} strength from this process. You now have {$inc} strength."; } elseif($stat=="agility") { print "You Safety Managed to fill the Stat Implant with some of your Agility. You have lost {$withdrawn} agility from this process. You now have {$inc} agility."; } elseif($stat=="guard") { print "You Safety Managed to fill the Stat Implant with some of your Guard. You have lost {$withdrawn} guard from this process. You now have {$inc} guard."; } elseif($stat=="labour") { print "You Safety Managed to fill the Stat Implant with some of your Labour. You have lost {$withdrawn} labour from this process. You now have {$inc} labour."; } elseif($stat=="IQ") { print "You Safety Managed to fill the Stat Implant with some of your IQ. You have lost {$withdrawn} labour from this process. You now have {$inc}."; } print "<hr />"; $ir[''.$stat.'']-=$withdrawn; } } $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); print "Choose the stat you want to withdraw from. <form action='testeresi.php' method='post'> Stat: <select type='dropdown' name='statselect'> <option style='color:red;' value='Strength'>Strength (Have {$ir['strength']}, Ranked {$ir['strank']}) <option style='color:blue;' value='Agility'>Agility (Have {$ir['agility']}, Ranked {$ir['agirank']}) <option style='color:green;' value='Guard'>Guard (Have {$ir['guard']}, Ranked {$ir['guarank']}) <option style='color:brown;' value='Labour'>Labour (Have {$ir['labour']}, Ranked {$ir['labrank']}) <option style='color:orange;' value='IQ'>Labour (Have {$ir['IQ']}, Ranked {$ir['IQrank']}) </select> <input type='submit' value='withdraw' /></form>"; $h->endpage(); ?> -
Need help with my mod
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
yeah i used my initative and changed that before posting on here and it still says error on line 13 -
Need help with my mod
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
now when i run it i get Fatal error: Function name must be a string in C:\xampp\htdocs\testeresi.php on line 13 -
Need help with my mod
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
ah yeah ok -
Need help with my mod
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
ok thanks for that fbiss but im getting error on line 56 which is else -
Need help with my mod
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
update of code <?php include "globals.php"; $statnames=array( 'Strength' => 'strength', 'Agility' => 'agility', 'Guard' => 'guard', 'Labour' => 'labour', 'IQ' => 'IQ'); $_POST['statselect']=abs((int) $_POST['statselect']); if($_POST['statselect']) { $stat=$statnames($_POST['statselect']); $withdrawn=($stat/5)*100; $db->query("UPDATE userstats SET $stat=$stat-withdrawn WHERE userid={$r['userid']}"); $db->query("Insert into implants (statid, userid, stat, amount) VALUES ('',".$ir['userid'].",'$statselect','$withdrawn')"); if(!$statselect) { die("This stat cannot be withdrawn."); } { $inc=$ir[$stat]-$withdraw; if($statselect=="strength") { print "You Safety Managed to fill the Stat Implant with some of your strength. You have lost {$withdrawn} strength from this process. You now have {$inc} strength."; } elseif($statselect=="agility") { print "You Safety Managed to fill the Stat Implant with some of your Agility. You have lost {$withdrawn} agility from this process. You now have {$inc} agility."; } elseif($statselect=="guard") { print "You Safety Managed to fill the Stat Implant with some of your Guard. You have gained {$withdrawn} guard from this process. You now have {$inc} guard."; } elseif($statselect=="labour") { print "You Safety Managed to fill the Stat Implant with some of your Labour. You have gained {$withdrawn} labour from this process. You now have {$inc} labour."; } elseif($statselect=="IQ") { print "You Safety Managed to fill the Stat Implant with some of your IQ. You have gained {$withdrawn} labour from this process. You now have {$inc}."; } print "<hr />"; $ir['stat']-=$_POST['withdrawn']; $ir[$stat]-=$withdrawn; } } $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); print "Choose the stat you want to withdraw from. <form action='testeresi.php' method='post'> Stat: <select type='dropdown' name='statselect'> <option style='color:red;' value='Strength'>Strength (Have {$ir['strength']}, Ranked {$ir['strank']}) <option style='color:blue;' value='Agility'>Agility (Have {$ir['agility']}, Ranked {$ir['agirank']}) <option style='color:green;' value='Guard'>Guard (Have {$ir['guard']}, Ranked {$ir['guarank']}) <option style='color:brown;' value='Labour'>Labour (Have {$ir['labour']}, Ranked {$ir['labrank']}) <option style='color:Yellow;' value='Labour'>Labour (Have {$ir['IQ']}, Ranked {$ir['IQrank']}) </select> <input type='submit' value='withdraw' /></form>"; $h->endpage(); ?> -
Need help with my mod
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
this is where it does it $statnames=array( 'Strength' => 'strength', 'Agility' => 'agility', 'Guard' => 'guard', 'Labour' => 'labour' 'IQ' => 'IQ',); $_POST['statselect']=abs((int) $_POST['statselect']); if($_POST['statselect']) { $stat=$statnames[$_POST['statselect']]; -
Need help with my mod
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
yeah ive done that but its still not storing it in the db -
im online m8 let me try relogging
-
yeah sure its [email protected]
-
Hi i was wondering if anyone would be able to help me finish off my mod the coding has been done im just having problems with my querys. Any help will be appreciated and need any other info just ask [mysql]CREATE TABLE IF NOT EXISTS `implants` ( `statis` int(11) NOT NULL, `userid` int(11) NOT NULL, `stat` text NOT NULL, `amount` decimal(11,4) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;[/mysql] <?php include "globals.php"; $statnames=array( 'Strength' => 'strength', 'Agility' => 'agility', 'Guard' => 'guard', 'Labour' => 'labour'); $_POST['statselect']=abs((int) $_POST['statselect']); if($_POST['statselect']) { $stat=$statnames[$_POST['statselect']]; if(!$statselect) { die("This stat cannot be withdrawn."); } { $withdrawn=($stat/5)*100; $db->query("UPDATE userstats SET '{$stat}' = '{$stat}' - $withdrawn WHERE 'userid' = ".$userid.""); $db->query("Insert into implants (statid, userid, stat, amount) VALUES ('',".$ir['userid'].",'$statselect','$withdrawn')"); $inc=$ir[$stat]-$withdraw; if($statselect=="strength") { print "You Safety Managed to fill the Stat Implant with some of your strength. You have lost {$withdrawn} strength from this process. You now have {$inc} strength."; } elseif($statselect=="agility") { print "You Safety Managed to fill the Stat Implant with some of your Agility. You have lost {$withdrawn} agility from this process. You now have {$inc} agility."; } elseif($statselect=="guard") { print "You Safety Managed to fill the Stat Implant with some of your Guard. You have gained {$withdrawn} guard from this process. You now have {$inc} guard."; } elseif($statselect=="labour") { print "You Safety Managed to fill the Stat Implant with some of your Labour. You have gained {$withdrawn} labour from this process. You now have {$inc} labour."; } elseif($statselect=="IQ") { print "You Safety Managed to fill the Stat Implant with some of your IQ. You have gained {$withdrawn} labour from this process. You now have {$inc}."; } print "<hr />"; $ir['stat']-=$_POST['withdrawn']; $ir[$stat]-=$withdrawn; } } $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); print "Choose the stat you want to withdraw from. <form action='testeresi.php' method='post'> Stat: <select type='dropdown' name='statselect'> <option style='color:red;' value='Strength'>Strength (Have {$ir['strength']}, Ranked {$ir['strank']}) <option style='color:blue;' value='Agility'>Agility (Have {$ir['agility']}, Ranked {$ir['agirank']}) <option style='color:green;' value='Guard'>Guard (Have {$ir['guard']}, Ranked {$ir['guarank']}) <option style='color:brown;' value='Labour'>Labour (Have {$ir['labour']}, Ranked {$ir['labrank']}) <option style='color:Yellow;' value='Labour'>Labour (Have {$ir['IQ']}, Ranked {$ir['IQrank']}) </select> <input type='submit' value='withdraw' /></form>"; $h->endpage(); ?>
-
what you do is run the .exe lol and i included linux if your like me and use both OS's
-
Yeah its called Xampp or WAMP or LAMPP if you use a linux box XAMPP (http://www.apachefriends.org/en/xampp-windows.html) WAMP (http://www.wampserver.com/en/download.php) LAMPP (http://www.apachefriends.org/en/xampp-linux.html) all 3 of these will install Apache, MYsql, phpmyadmin, PHP and others hope that helps
-
yeah but as im 21 im shafted lol
-
ok thanks for the info rpmb that made it clearer for me
-
Hi i was wondering that if you make a website, and if that website starts to generate income under Brittish law would i have to register that website with the taxman as a buisness meaning that i would have to pay tax on any money made or would it be that i wouldnt have to register if so that all the money would be tax free. Ive had some imputs from a few ppl but they are saying either that it would be tax free or you would get taxed once your earned a certain amount. thanks for reading this skal