spazz
Members-
Posts
84 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by spazz
-
Re: Updated Personal Details [V2] Actually I figured out how to solve my issue. Probably not the easiest way but it worked. :lol: My site is open to people of all ages. My site is based on a hobby which has a lot of kids so naturally there are going to be kids on my site. I just wanted this mod on there so people don't have to repeatedly keep posting their IM's etc...
-
Re: Updated Personal Details [V2] same thing happens with me... i added it all in just now, and i did everything that was instructed, so i am confused in terms of what is going wrong. If someone could please give me a hand in fixing it that would be great :-) Same with me. It is not logging to the db for some reason but it seems fine :? Gonna play with it some more Did a little more testing. Works when new users register and it works when you manually add info for existing users to the database. It just doesn't work for existing users when they go to modify or add the information themselves. Their information does not get into the database. I am not good with queries, what could be a querie that I could run that would add existing users to the pdetails table with all the default info above ie..N/A in all the Boxes.
-
Re: Updated Personal Details [V2] same thing happens with me... i added it all in just now, and i did everything that was instructed, so i am confused in terms of what is going wrong. If someone could please give me a hand in fixing it that would be great :-) Same with me. It is not logging to the db for some reason but it seems fine :? Gonna play with it some more
-
Re: Advanced Break In [$20] It is, I use it in my game
-
Re: NEW!! Advanced House Break-In sweet, can't wait :-D
-
Re: NEW!! Advanced House Break-In I would if Silver wouldn't mind, I wanted this mod for my game, but sadly didn't buy it when he hasd it on his desktop. I could add some more features like Oxi suggested. :) Well I would be interested
-
Re: Help with EXP as far as fighting the other players, do you know if they are choosing the option to Leave Them?
-
is this something easily explainable? I am looking at a few scripts and want to modify them but just can't get my head around how it works or some resource would be helpful.
-
Re: NEW!! Advanced House Break-In hey silver, is this something that you could recreate easily if you get enough requests for it? Just wondering
-
Re: [mccode] Steps market What I did was placed this in my daily cron and it seems to do the job. Steps are removed from the market at midnight. I got a kick out of people thinking the could use the market to store their steps even after I told them they couldn't :-P $db->query("TRUNCATE TABLE stepsmarket");
-
Re: days old sql query? it looks like a $ was missing on the following line: $amount = amount - 86400; I will have to verify that it was the correct amount of days now. Thank you lostone I am almost scared to run this on my live site..... :-o LostOne...thankyou very much that did the trick.
-
Re: days old sql query? hmmmm....set everyone to 1 day old.... :-D
-
well, I messed up the days old in my game. Testing some stuff and manually running the daily cron. didn't realize the results :? learn by mistakes I guess. Now my days old doesn't correspond with the signed update. Is there a query that I can run on the db to fix this or am I doomed to change each one manually. Thanks
-
Re: Donator's Bank[MCV2] This is a good idea, there were a few typos and missing. This should work better but still be buggy: <?php include "globals.php"; if($ir['hospital'] || $ir['jail']) { print "You cannot access this page."; exit; } if($ir['donatordays']==0) die("Donators only"); print "<h3>Donator's Bank</h3>"; if($ir['donatormoney']>-1) { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>9999) { print "Congratulations, you bought a bank account for \$10,000! [url='donatorbank.php']Start using my account[/url]"; $db->query("UPDATE users SET money=money-10000,donatormoney=0 WHERE userid=$userid"); } else { print "You do not have enough money to open an account. [url='explore.php']Back to town...[/url]"; } } else { print "Open a bank account today, just \$10,000! [url='donatorbank.php?buy']> Yes, sign me up![/url]"; } } function index() { global $db,$ir,$c,$userid,$h; print "\n[b]You currently have \${$ir['donatormoney']} in the bank.[/b] At the end of each day, your bank balance will go up by 20%. <table width='75%' border='2'> <tr> <td width='50%'>[b]Deposit Money[/b] It will cost you 8% of the money you deposit, rounded up. The maximum fee is \$10,000.<form action='donatorbank.php?action=deposit' method='post'> Amount: <input type='text' name='deposit' value='{$ir['money']}' /> <input type='submit' value='Deposit' /></form></td> <td> [b]Withdraw Money[/b] There is no fee when you withdraw.<form action='donatorbank.php?action=withdraw' method='post'> Amount: <input type='text' name='withdraw' value='{$ir['donatormoney']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function deposit() { global $db,$ir,$c,$userid,$h; $_POST['deposit']=abs((int) $_POST['deposit']); if($_POST['deposit'] > $ir['money']) { print "You do not have enough money to deposit this amount."; } else { $fee=ceil($_POST['deposit']*8/100); if($fee > 10000) { $fee=10000; } $gain=$_POST['deposit']-$fee; $ir['donatormoney']+=$gain; $db->query("UPDATE users SET donatormoney=donatormoney+$gain, money=money-{$_POST['deposit']} where userid=$userid"); print "You hand over \${$_POST['deposit']} to be deposited, after the fee is taken (\$$fee), \$$gain is added to your account. [b]You now have \${$ir['donatormoney']} in the Donator's Bank.[/b] [url='donatorbank.php']> Back[/url]"; } } function withdraw() { global $db,$ir,$c,$userid,$h; $_POST['withdraw']=abs((int) $_POST['withdraw']); if($_POST['withdraw'] > $ir['donatormoney']) { print "You do not have enough banked money to withdraw this amount."; } else { $fee=ceil($_POST['withdraw']*0/1000); if($fee > 0) { $fee=0; } $gain=$_POST['withdraw']-$fee; $ir['donatormoney']-=$gain; $db->query("UPDATE users SET donatormoney=donatormoney-$gain, money=money+$gain where userid=$userid"); print "You ask to withdraw $gain, the bank lady hands it over. [b]You now have \${$ir['donatormoney']} in the donator's Bank.[/b] [url='donatorbank.php']> Back[/url]"; } } $h->endpage(); ?> The query was wrong too, should be: ALTER TABLE `users` ADD `donatormoney` INT(11) NOT NULL DEFAULT '-1'; I also added in staff_users.php: look for: Cyber Bank: \$<input type='text' name='cybermoney' value='{$itemi['cybermoney']}' /> and under add Donator Bank: \$<input type='text' name='donatormoney' value='{$itemi['donatormoney']}' /> but I am no pro here just throwing out my 2 cents, seems to work OK on my game, not sure about the cron, but it looks alright
-
Re: New User Group Why are you so condescending, I don't claim to know programming which is why I don't have a fancy coders club badge, which is why I come here for a little help. Thank you for this. That is all I was looking for.
-
Re: Free Jail feature Bribe The guard Great Mod....my players love it. Thank You
-
I have been struggling for a week and a half looking through the files and either I am blind which is possible or I am totally off track. I want to create a new user group replicating the the members group. I want to call it the Welcome Wagon or something along those lines. I want this new usergroup to appear in the staff list screen so new members will know who to turn to for help. My question is, is there an easy way to create a new group or modify the permissions of lets say the IRC Op group. You would think there would be a way to create groups built in
-
Re: Need help with Staff_cities.php no problem, I had the same issue when I started mine
-
Re: What does the NB mean? Thank You Very Much.... Never would have guessed that
-
when you go to the hospital or jail... at the top of the screen it says "NB: you are in jail for x minutes" what does NB stand for?
-
Re: Need help with Staff_cities.php This post should be able to help you: http://criminalexistence.com/ceforums/i ... ic=12485.0
-
Re: Little Modification Pack Thanks bud :-D
-
Re: Little Modification Pack I am interested. PM me
-
Re: [Free] Log Suspicious Users Version 2 has this already V2 doesnt has this :| it would be nice for somebody to convert to V2 This works as is in V2. I am currently using it with no issues
-
Re: v2 attack bug Are they attacking a member of a gang that their gang is at war with?