
corruptcity || skalman
Members-
Posts
358 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Everything posted by corruptcity || skalman
-
need some help with this function
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
ok thanks danny and lithium for the help cant believe that was staring me right in the face all last night and just show i cant code when im tried as ive fixed this function it can be delete now mods -
hi im stuck on this function for my next up and coming freebie its a car mod here is the function where you select the car that you want to race with and there is just 1 problem im having with it but looking at it it should work but doesnt ill comment around where the problem is and what the problem is. yes ino its not as secure as it can be but i go through securing more after ive finished the function. if you need any other info or quest feel free to ask and thanks function usecar() { global $db, $ir,$c,$userid,$h; $_GET['ID'] = isset($_GET['ID']) && is_numeric($_GET['ID']) ? abs((int) $_GET['ID']) : false; if($_GET['ID']) { $use=$db->query(sprintf("SELECT * FROM cars_use WHERE (CU_USERID = %d)", $ir['userid'])); if($db->num_rows($use) == 1) { echo"You cant use more than 1 car at once"; $h->endpage(); exit; } else { $car=$db->query(sprintf("SELECT * FROM cars_inv WHERE (CI_ID = %d) AND (CI_USERID = %d)", $_GET['ID'], $ir['useird'])); if($db->num_Rows($car) == 1) { echo"You dont own that car"; $h->endpage(); exit; } //problems starts here onwards when you run the code $carid = nothing so does $cars and $newcars = -1 $p=$db->fetch_row($car); $carid = ($p['CI_CAR']); $cars = ($p['CI_QTY']); $newcars = ($cars-1); if($p['CI_QTY'] > 1) { $db->query(sprintf("DELETE FROM cars_inv WHERE (CI_ID = %d), (CI_USERID = %d)", $_GET['ID'], $ir['userid'])); $db->query(sprintf("INSERT INTO cars_inv (CI_ID, CI_USERID, CI_CAR, CI_QTY) VALUES (%d, %d, %d, %d)", '', $ir['userid'], $carid, $newcars)); $db->query(sprintf("INSERT INTO cars_use (CU_ID, CU_USERID, CU_CAR) VALUES (%d, %d, %d)", '', $ir['userid'], $carid)); echo"You have set the car that you want to drive {$carid}, {$cars}, {$newcars}"; // the 3 {} were for me testing what was in the vars nothing else } else { $db->query(sprintf("DELETE FROM cars_inv WHERE (CI_ID = %d) AND (CI_USERID = %d)", $_GET['ID'], $ir['useird'])); $db->query(sprintf("INSERT INTO cars_use (CU_ID, CU_USERID, CU_CAR) VALUES (%d, %d, %d)", '', $ir['userid'], $d['CI_CAR'])); echo"You have set the car that you want to drive {$carid}, {$cars}, {$newcars}";// the 3 {} were for me testing what was in the vars nothing else } } } //just with the bit of code between the comments else { $yourcars=$db->query("SELECT c.*, ci.* FROM cars_inv ci LEFT JOIN cars c ON ci.CI_CAR=c.carid WHERE CI_USERID=$userid"); if($db->num_rows($yourcars) == 0) { echo"You dont own any cars yet!"; $h->endpage(); exit; } else { echo"<table> <tr> <th>Manufacture <th>Model <th>Year <th>Qty <th>Price <th>Total Price <th>HP <th>Accell <th>Speed <th>Handling <th>Brakes <th>Use Car </tr>"; while($r=$db->fetch_row($yourcars)) { $totalprice = ($r['CI_QTY'] * $r['price']); echo"<tr> <td><center>{$r['manufacture']}</center></td> <td><center>{$r['model']}</center></td> <td><center>{$r['year']}</center></td> <td><center>{$r['CI_QTY']}</center></td> <td><center>\${$r['price']}</center></td> <td><center>\${$totalprice}</center></td> <td><center>{$r['HP']}</center></td> <td><center>{$r['accell']}</center></td> <td><center>{$r['speed']}</center></td> <td><center>{$r['handling']}</center></td> <td><center>{$r['brakes']}</center></td> <td><center>[url='cars.php?action=usecar&ID={$r[']Use Car[/url]</center></td> </tr>"; } echo"</table>"; } } }
-
that sounds like a gud idea ish cant wait to see what you come up with and gl with that
-
before you say ino that its a film but as there is no where to post bout films i though this was the 2nd best place to put about it here the film its self is due on 22/3 in the UK not sure about other places but i was able to 'purchase' a copy last night and i have to say that if you like horrors and like the blair witch project you will probly like this 1 but if your more into say texas chainsaw or others like that you prob wont like it as much. most of the film is either recorded in the 1st person view with either micah or katie with camera in hand or the camera on a stand with a pan view of the 2 in bed sleeping. plot micah and katie are bf & gf living together in this house where strange things keep happening to them while they sleep mainly happening to katie. they get help but instead micah comes up with idiotic plans instead which makes it worse. during the film there are a few WTF moments and a few gud scare moments the best scare moment happens right near the end and when i saw it last night i jmped a mile and messed me kecks overall i would like to say that i thought that it was gud film well worth watching late at night in the dark and with easily scared ppl.
-
did you also make crimegroups? and did you fill out all the fieldscoz if not that will chuck out an error
-
would any1 like this in there game?
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
i did have ctype_digit but it still let it thru so used ctype_alnum and that seemed todo the trick -
would any1 like this in there game?
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
yeah its coz i secured the posts but it was still letting in +999- and other like that so ive had to give it a smash in the mouth and called it bad mod lol no just had to recode it -
would any1 like this in there game?
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
ok sort that out you can use demo and main123 to login -
would any1 like this in there game?
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
no need m8 ive sorted it out after the last beating you gave it lol -
would any1 like this in there game?
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
mods now finished -
hi ive made the cron for my drugs mod but it doesnt seem to be doing what i want it todo if you could point me in the right direction if its wrong id be most gratful <?php include "../config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } define("MONO_ON", 1); require "../class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } #used to produce the drugs $q=$db->query("SELECT grow,druglab FROM drugs"); while($r=$db->fetch_row($q)) { $lab = $r['druglab']; $amnt = 10; $gained = ($lab * $amnt); $inv=$db->query(sprintf("SELECT * FROM drugs_inv WHERE dinv_userid = %d AND (dinv_drugid = %d)", $ir['userid'], $r['grow'])); if($db->num_rows($inv) == 0) { $db->query("INSERT INTO drugs_inv (dinv_id, dinv_userid, dinv_drugis, dinv_qty) VALUES ('', $ir['userid'], $r['grow'], {$gained})"); } else { $db->query("UPDATE drugs_inv SET dinv_qty = dinv_qty + {$gained} WHERE dinv_drugid = {$r['grow=']}"); } } #This is for the streets $drug=$db->query("SELECT drug_id FROM drugs_drugs"); $d=$db->fetch_row($drug); $price=$db->query(sprintf("SELECT buy,stock_price FROM drugs_streets WHERE (drug_id = %d)", $d['drug_id'])); $b=$db->fetch_row($price); if($b['buy'] <= 0) { $db->query(sprintf("UPDATE drugs_streets SET buy = %d WHERE (drug_id = %d)", $b['stock_price'], $d['drug_id'])); } else { $buy = $db->query("SELECT drug_id FROM `drugs_drugs`"); while($price = $db->fetch_row($buy)) { $rand = mt_rand(1,2); if($rand == 2) { $mr = mt_rand(1,50); $db->query(sprintf("UPDATE drugs_streets SET buy = buy + %d WHERE (drug_id = %d)", $mr, $price['drug_id'])); } else { $mr = mt_rand(50,100); $db->query(sprintf("UPDATE drugs_streets SET buy = buy + %d WHERE (drug_id = %d)", $mr, $price['drug_id'])); } } } ?>
-
sorry bout pudda marsh monkeys not had his banana yet :P
-
The Funniest thing on google ever :P
corruptcity || skalman replied to bennybwoi's topic in Chit Chat
lmao -
would any1 like this in there game?
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
ok after spending a last few hours sorting out a few bugs i had ive now i think fixed them i have uploaded them to my testing site corruptcity.net/demo/login.php i have made 2 users demo and demo2 both passwords are main123 feel free to have a look at the mod and to see it in action please note that i havent yet done a thorough test of the mod but when/if you give it a go if there is any bugs or problem post them on here and ill bug fix then once im happy that it works like it should ill start selling licences for it -
would any1 like this in there game?
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
ok ive just finished the cron im not gonna upload it to my testing site to test it will post detailed once im done -
would any1 like this in there game?
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
just finished the street part of the mod now just got the 30 mins cron todo and testing / debugging left -
would any1 like this in there game?
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
not gonna happen this time bud :P -
would any1 like this in there game?
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
yeah once ive finished and tested it myself -
no sorry mine was for mccodes
-
would any1 like this in there game?
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
im thinking about $25 - $30 per licence -
yeah its coz you havent secured the get yet use this $_GET['ID'] = isset($_GET['ID']) && is_numeric($_GET['ID']) ? abs((int) $_GET['ID']) : false; $_POST['amnt'] = isset($_POST['amnt']) && is_numeric($_POST['amnt']) ? abs((int) $_POST['amnt']) : false; $_POST['price'] = isset($_POST['price']) && is_numeric($_POST['price']) ? abs((int) $_POST['price']) : false;
-
would any1 like this in there game?
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
ok ive just finished all 6 of the tasks im now gonna take a short break for a few hours then make a start of the street part of the mod -
would any1 like this in there game?
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
ill sell ya a copy once its done then XD -
would any1 like this in there game?
corruptcity || skalman replied to corruptcity || skalman's topic in General Discussion
yeah im trying to make it as secure as as i can or to the best of my ability and im hoping that without any problems i'll have the last 2 function finished this weekend then i will need to run a proper test of the mod to make sure it does all its supposed to -
Hi the mod now is for sale 10 licences left I would also like to say that is nothing like immortals thugs latest big mod he just brought out and isnt a copy of it either the features (red means ive already done this function) have a drugs currency which is used in here instead of money produce some space to grow drugs (bigger the space =s more drugs everytime the crons run) able to choose which drug to grow from a list of 10 Buy bags to increase the limit of how many units of drugs you can hold can hire help to earn you money in return for drugs can change the drug that you use to pay them a hangout where you can change the pay and put the help to work there is 6 different tasks that your helpers can do a bank where you can launder your dirty money (drugmoney) into clean useable money 2 different lengths of time that it takes to launder drug money there is a shop where you can buy guns and vests for your help A street where you can buy and sell drugs but this acts like a market where the prices will rise and fall drug events to keep a eye on whats been going on while you are away