
UCC
Members-
Posts
444 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by UCC
-
Re: [Lite] Bugget streets v1 Big hit how? Increased donations? Made the donators happy? Seems like decreased spins for non-doners would make a number of poeple unhappy. I had the idea just a few days ago and that was my thought.
-
Re: Bowling Game Fair enough. Thanks for taking the time to respond.
-
Re: Bowling Game What exactly did you convert? Everything in that seems like a standard page for 1.1 code. The only thing I see is print "<h3/>Bowling<h3/>"; print "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='400' HEIGHT='570' id='bowling2' ALIGN=''> <PARAM NAME=movie VALUE='http://notoriousonline.net/bowling.swf'> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#003366> <EMBED src='http://notoriousonline.net/bowling.swf' quality=high bgcolor=#003366 WIDTH='400' HEIGHT='570' NAME='bowling2' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED> </OBJECT>"; That isn't much more than doing a copy/paste off what addicting games tells you to put. I'm not trying to be a jerk, I'm honestly trying to understand.
-
Re: Putt Putt Golf How much bandwidth do these little ditties take? I'd consider adding 1 or 2 but I try and keep bandwidth in control
-
Re: Black Jack Yea I had to remove that session stuff. I use sessions throughout my game and can't have em getting blown out willie nillie. :) But this mod is a great start and I'm excited to work with it
-
Re: Black Jack I did a quick and dirty 2.0 mod to it and threw it up. It needs a little polish, and as you said, queries but otherwise it is very well done.
-
Re: Randomizing users Well I'll be darned. That does work!!!
-
Re: Randomizing users Hey, that does sound like a good idea! I'm not that familiar with PHP arrays. Any sample code you could throw at me would be useful. Even something real basic (3-5 lines) would help. Create array from : Select userid from users Pick random userid from array Print userid I could take it from there.
-
So I have a new gang mod. Without going into boring details, Gang A can cause negative affect to Gang B. However, Gang A may have 3 members where Gang B has 20 members. It's not fair that Gang A can cause more carnage than Gang B due to the difference in member counts. I could do something like Select * from users where Gang = Gang B LIMIT 3 However.... Every time Gang A attacked, the same 3 members of Gang B would be harmed. (the first 3 user_ids. How can I randomize which 3 gang user records are pulled in my query?
-
Re: Sick and Tired of Them I'm with you Arson. I'm in the same boat, I don't sell most of the mods I write (I want to keep them unique). Even if I were to consider selling more, I'd be very concerned about this trend and lack of ethics. Unfortunately, there is not a lot that can be done about it. It would take hours and hours of searching this forum to see who's been trustworthy and who clearly hasn't. *sigh* Of course the Free MC Codes doesn't help this situation.
-
Re: can any one help me with this error message It appears that on line 6 of your hackpc.php there is a & where the PHP parcer expects to find a (
-
Re: Stock Market Help Looks like you're trying to use a variable in your function that was declared outside the function. You'll want to globalize the variable at the start of the function.
-
Re: [Lite] Bugget streets v1 I dont believe it comes packaged with any of the versions. I dont know who wrote the lower version stuff. I wrote mine for 2.0 from scratch
-
Re: About game players My Paypal email address is the same as our admin email address. Users are welcome to send emails to it. *shrug*
-
So I've heard that when it comes to shared hosting, some companies get pissy if you have a bunch of queries to the DB. In that regard, I've tried to limit this as much as possible. One question I have, however is as follows..... Do complex queries, accessing multiple tables with JOIN SQL statements, create less server issues than multiple queries to the DB? Thoughts?
-
Re: staff applications It's sooo tempting to try and sell you this but I'll resist the urge. Here's alternate instructions for 2.0. Dont consider them fool proof, I may have missed something. But mine is working.... Also, I ditched the ASCII codes. And I did this out of the kindness of my heart, I dont want any applicants. LOL create file staffapps.php <?php include "globals.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$ir['userid']; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); //$h->userdata($ir,$lv,$fm,$cm); //$h->menuarea(); if($_POST['app']) { mysql_query("INSERT INTO staffapps VALUES('',$userid,'{$_POST['pos']}','{$_POST['app']}')", $c) or die("Your staff application could not be processed. Make sure you have filled out the form completely"); print "Staff application processed. You will receive a mail in less than 3 days with our decision. Good luck"; } else { print "<h3>Staff Application</h3> <form action='staffapps.php' method='post'> Position: <select name='pos'><option value='3'>Admin</option><option value='5'>Secretary</option><option value='6'>Assistant</option></select></br> Why do you deserve the position?: <textarea rows='7' cols='40' name='app'>{$_GET['app']}</textarea> <input type='submit' value='Submit Application' /></form>"; } $h->endpage(); ?> add this to staff.php case 'appview': app_view(); break; case 'appaccept': app_accept(); break; case 'appdeny': app_deny(); break; function app_view() { global $ir,$c,$h,$userid; print "<h3>Staff Applications</h3> <font color=red>3=Admin</br> 5=Secretary</br> 6=Assistant</br></font></br> If you find any other member positions please report it to a game owner right away!</br> <table width=80%><tr style='background:gray'><th>Applicant ID</th> <th>Position</th> <th>Application</th> <th> </th></tr>"; $q=mysql_query("SELECT * FROM staffapps ORDER BY appID DESC",$c) or die(mysql_error()); while($r=mysql_fetch_array($q)) { print "</td>\n<td>[url='viewuser.php?u={$r[']{$r['applicant']}[/url] </td><td>{$r['position']}</td><td>{$r['application']}</td><td>[url='admin.php?action=appaccept&ID={$r[']<font color=blue>Accept</font>[/url] [url='admin.php?action=appdeny&ID={$r[']<font color=red>Decline</font>[/url] </td></tr>"; } print "</table> "; } function app_accept() { global $ir,$c,$h,$userid; $_GET['ID'] = abs((int) $_GET['ID']); mysql_query("DELETE FROM staffapps WHERE appID={$_GET['ID']}",$c); mysql_query("UPDATE users SET user_level='{$_GET['staff']}' WHERE userid='{$_GET['user']}'",$c); mysql_query("INSERT INTO mail VALUES('', 0, 'System', '{$_GET['user']}', unix_timestamp(),'Your application' ,'Congrats, your application has been reviwed and you are now a staff member. Please view our rules so you do not loose this job.')",$c); print "App Accepted [url='admin.php?action=appview']> Back[/url]"; } function app_deny() { global $ir,$c,$h,$userid; $_GET['ID'] = abs((int) $_GET['ID']); mysql_query("DELETE FROM staffapps WHERE appID={$_GET['ID']}",$c); mysql_query("INSERT INTO mail VALUES('', 0, 'System', '{$_GET['user']}', unix_timestamp(),'Your application' ,'Our staff has reviewed your staff application and unfortunately we feel you are not qualified to be a staff member. Feel free to fill in another application.')",$c); print "App Denied [url='admin.php?action=appview']> Back[/url]"; } and add this table in mysql CREATE TABLE `staffapps` ( `appID` int(11) NOT NULL auto_increment, `applicant` int(11) NOT NULL default '0', `position` varchar(255) NOT NULL default '', `application` longtext NOT NULL, PRIMARY KEY (`appID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; Modify smenu.php to look like this... > [url='staff.php?action=announce']Add Announcement[/url] > [url='staff.php?action=appview']Staff Apps[/url] "; make sure to change the user_level if they incorrect. currently its 3=Admin 5=Secretary 6=Assistant if your running on dabs codes it should be correct.
-
Re: Gang War --- Help Needed It looks like you may be missing an end ' after the '0') If that doesn't work, try this code. I'm not making any promises but it's a thought. Again, you use a different query than I do. mysql_query("INSERT INTO firmwars (f1id, f1name, f2id, f2name, wardays) VALUES ({$mf['fID']}, '{$mf['fNAME']}', {$wf['fID']}, '{$wf['fNAME']}', 0)",$c);
-
Re: v2 - Crons. See, I knew you could relate to errors in logic when it comes to what is ok and what is not. :roll:
-
Re: v2 - Crons. It means he's found some flaw in logic that makes him think ripping off someone's hard work is okay
-
Re: v2 - Crons. A legal copy of v 2.0 has very detailed cron instructions.
-
Re: Gang War --- Help Needed I dont know what error your getting but..... Maybe try removing the ` marks around numerical data fields in your VALUES section. I dont write my queries like you do, but that's my guess.
-
Re: java games for jailed people help Someone posted a Shout Box on here for the jail. My members really enjoy it. They'll sit in jail for hours.... :)
-
Re: MCCode V2 Problems. You're farking incredible. That's exactly what I told you to do except instead of renaming it item_removal, you changed it to itemm_remove. If you're going to ask questions, pay attention son.
-
Re: MCCode V2 Problems. Not a lot of people have 2.0 And to be honest, I didnt have the problems you're having so I dont know what you're doing. The only problem I had was the item_remove issue.
-
Re: MCCode V2 Problems. I'm a bit confused but try this instead INSERT INTO inventory (inv_id, inv_itemid, inv_userid, inv_qty) VALUES ('',7, 4, 1)