
Haunted Dawg
Members-
Posts
2,933 -
Joined
-
Last visited
Never -
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by Haunted Dawg
-
Re: Vallheru created before Mcc ? Im very suprised at the age of 14 he could create a game engine. Hell alot of 14 year old's here cant do jack shit for them self's. I just guess dab's never had no good game to play and no forum's to leanr how to secure that's why its so insecure.
-
Re: Bank Cap (Not Remove The Cap) I would say use mine rather. Your member's will be more happier to get the money to there hand than to go no where.
-
[Other] New Login Page, Great look!!! [$20.00]
Haunted Dawg replied to KingRise's topic in Paid Modifications
Re: New Login Page, Great look!!! He most prob's never paid for a single program there :P Googled it and got a patch :lol: -
Re: Bank Cap (Not Remove The Cap) Interest will go in but once they click on the bank it will take there money and put it on hand.
-
Re: EXP% Cap why not just use a rand rand(0,20); I mite be wrong here but woud be best idea for you.
-
Re: Bank Cap (Not Remove The Cap) Going to need to ask some one else about that, its more mysql side. Add a thing at the top: if($ir['bank_money'] > 2000000) { $bank = $ir['bank_money']-2000000; mysql_query("UPDATE users SET bank_money=2000000,money=money+".$bank." WHERE userid=".$ir['userid']); echo 'You may only hold up to '.money_formatter(2000000).' in your bank account. '.money_formatter($bank).' has been put in your hand.'; } That should work.
-
Re: Bank Cap (Not Remove The Cap) if($_POST['amount'] > 2000000) { echo 'Sorry but you can only post an amount below \$2,000,000'; $h->endpage(); exit; } Or if($_POST['amount'] < 2000000) { echo 'Sorry but you can only post an amount below \$2,000,000'; $h->endpage(); exit; } Might need to check up on the $_POST['amount'] i dont remember what it is. Im not familiar with the ( < > ) lol i keep getting confused.
-
Re: gang price based on ammount of gangs Lost one that wont be a good idea ;). If the gang is id 460 and there used to be gangs created but deleted well thats going to mess up big time!
-
Re: user change layout help? Did it show what layout u got?
-
Re: user change layout help? ok replace my little code then if($ir['layout']) { echo 'Your layout is ('.$ir['layout'].')'; } include($ir['layout'].".php"); It will show you what number layout u got.
-
Re: user change layout help? bet you dont have it set as default 1?
-
Re: user change layout help? <?php session_start(); ob_start(); if (get_magic_quotes_gpc() == 0) { foreach($_POST as $k => $v) { $_POST[$k]=addslashes($v); } foreach($_GET as $k => $v) { $_GET[$k]=addslashes($v); } } require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; global $ir; if($ir['layout'] == 0) { echo 'Dumbass, you have no layout selected.'; exit; } include($ir['layout'].".php"); include "config.php"; global $_CONFIG; 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']; } $domain=$_SERVER['HTTP_HOST']; global $jobquery, $housequery; if($jobquery) { $is=$db->query("SELECT u.*,us.*,j.*,jr.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN jobs j ON j.jID=u.job LEFT JOIN jobranks jr ON jr.jrID=u.jobrank WHERE u.userid=$userid"); } else if($housequery) { $is=$db->query("SELECT u.*,us.*,h.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN houses h ON h.hWILL=u.maxwill WHERE u.userid=$userid"); } else { $is=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid"); } $ir=$db->fetch_row($is); if($ir['force_logout']) { $db->query("UPDATE users SET force_logout=0 WHERE userid=$userid"); session_unset(); session_destroy(); header("Location: login.php"); exit; } global $macropage; if($macropage && !$ir['verified'] && $set['validate_on']==1) { header("Location: macro1.php?refer=$macropage"); exit; } check_level(); $h = new headers; $h->startheaders(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); global $atkpage; if($atkpage) { $h->userdata ($ir,$lv,$fm,$cm,0); } else { $h- >userdata($ir,$lv,$fm,$cm); } global $menuhide; if(!$menuhide) { $h->menuarea(); } ?> Do you even have the code in the users table: ALTER TABLE users ADD layout INT(11) NOT NULL DEFAULT 1;
-
Re: user change layout help? If that does not work post your globals.php here.
-
Re: user change layout help? Dude seriously get your coding right. I keep posting stuff but never work's for you. global $ir; if($ir['layout'] == 0) { echo 'Dumbass, you have no layout selected.'; exit; } include($ir['layout'].".php");
-
Re: user change layout help? Why not just use: include($ir['layout'].".php");
-
Re: user change layout help? yh on line 74. if($ir['layout'] == 1) { include("1.php"); } else if($ir['layout'] == 2) { include("2.php"); }
-
Re: user change layout help? if($ir['layout'] == 1) { include("1.php"); } else if($ir['layout'] == 2) { include("2.php"); }
-
Re: v3 game engine I doubt v3 will ever be as fluctuated as v1 / v2. Coldblooded has sure improved on his coding. And i dont think dabomstew is even on the v3 scene of coding. Hell, im sure coldblooded wont be so stupid, he is 19 and able to copy right v3. I suggested a method to him. That a .ini file installed among the codes that will request a code from mccodes.com database and if coldblooded does not aprove it automaticly shuts down the website like shoutcast has but shoutcast uses zend encoder. I for sure already offered my help to help v3. I think its been coded but people are testing the game out etc.
-
Re: v3 game engine Explain why will nyna use if and hell she is the person who always coments about security. I for one will keep to my way: mysql_real_escape_string(htmlentities(blah));
-
Re: bug report mod Finaly a new post after a year & 8 ,months
-
Re: v3 game engine It will make it secure to sql exploits!
-
New Unified Staff Panel w/ Staff Logs [v1]
Haunted Dawg replied to Cyanide's topic in General Discussion
Re: New Unified Staff Panel w/ Staff Logs [v1] Well duh, you bought the mod, you may edit any thing you want out of it :P just dont resell or give it away. -
Re: Random money amounts (big numbers) My eye is very cachy :P
-
Re: help Have had this problem many time's CSS make's the page reload twice. I had problem with my crimes & gym.
-
Re: Random money amounts (big numbers) Floydian in your first post your missing a ) function range_to_value($low, $high, $percent) { $range = $high - $low; $target = $range * $percent * 0.01 + $low; return $target; } $min = 100; $max = 200; $amount = range_to_value($min, $max, rand(1,100));