POG1
Members-
Posts
1,419 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by POG1
-
Re: [beta] Looking for beta testers i will help testing it..
-
Can someone please explain how to do a total reset of my game?
POG1 replied to Harley's topic in Game Support
Re: Can someone please explain how to do a total reset of my game? TRUNCATE TABLE `users`;TRUNCATE TABLE `mail`;TRUNCATE TABLE `events`; -
Re: [mccode v2] Crystal Temple With the updated version you have made a mistake in the array. Each number 10 is being converted into a string, but if you didn't have it enclosed in quotes it would be an integer ;)
-
Re: [mccode v2] Crystal Temple For the config at the top you could put it all into an assoc array to save space, or at least take the single quotes away from around the number. array example array('EnergyRefill' => 10,'WillRefill' => 10, 'BraveRefill' => 10,'DonatorDays' => 10, 'Protection' => 10)
-
Re: [v2]Ctemple This just looks like a slight edit to a free crystal temple mod.
-
Re: [V2] Attack request The first two will be the hardest things to do, the others are only simple things..
-
Re: [mccodes]Make Items[$10] you got an example of this?
-
Re: [V2] New Small Accuracy Mod [V2] The second value on the fraction should of been total attacks (hits & misses)
-
Re: IP hack secure - fixed an IP address consists of chars 0-9 and . right, why not just strip/disallow anything not within what you want ;) instead of using mres..
-
Re: Layout Help i can help in a bit for free. Add me on msn "[email protected]"
-
Re: Monkey Wrench Have you got an online build for this? what you already have done seems like quite a lot. It would be a good idea to go for jQuery for any javascript. There are a few good data table plug-ins and my fav is http://www.datatables.net/ You can paginate, search and order with a single plugin.
-
Re: Monkey Wrench Have you started on this yet?
-
Re: Monkey Wrench Fairplay mate, what classes will you be using?
-
Re: [V2] New Small Accuracy Mod [V2] Tobats, to get a percent of a number you convert it into a fraction then multiply it by 100. Your method may work but it is not the best way to do it. The way you will do it is like this. That way you get a fraction which as a decimal is between 0 and 1 then multiply it by 100 to make in between 0 and 100 :)
-
Re: [Mccode v2] Slide Menu all you have done is made an html page and adapted a js accordion menu, it would make sense to post how to put it on a game..
-
Re: MySQL Procedures i will update my mysql version now, what is the newest release?
-
Re: MySQL Procedures 5.summin
-
Re: Legends of the Gods (Not My Game) I was on about the 1 before, it is just a normal login now :(
-
I read about procedures on the mysql website and tried to give it a go, I however cannot seem to create even a simple procedure. Any suggestions? this is what i have come up with so far.. CREATE PROCEDURE buyShopItem (item INT(11),shop INT(11),user INT(11),itemCost INT(11)) BEGIN DELETE FROM `userShopItems` WHERE `itemId` = item; UPDATE `userShops` SET `shopStock` = `shopStock` - '1' WHERE `shopId` = shop; UPDATE `users` SET `money` = `money` - itemCost WHERE `userid` = user; END;
-
Re: Promo Codes isset will return 1 or 0 (true or false) which in this case isn't very useful. try this: if(isset($_POST['promo']) AND ctype_alnum($_POST['promo']) AND $_POST['promo'] == 'Teh Promo Code')
-
Re: [mccodes]Secure demo account why not just have something that will log them in without the need of a password ;) I just copy and pasted this together.. <?php session_start(); 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(); $user = 100; // demo id $_SESSION['loggedin']=1; $_SESSION['userid'] = $user; $IP=($_SERVER['HTTP_X_FORWARDED_FOR'])?$_SERVER['HTTP_X_FORWARDED_FOR']:$_SERVER['REMOTE_ADDR']; mysql_query(sprintf("UPDATE `users` SET `lastip_login`='%u', `last_login` = unix_timestamp() WHERE `userid` = '%u'",$IP,$user)); header("Location: index.php"); ?>
-
Re: Questions about languages. 1. 18 2. UK (oxford) 3. English 4. :mrgreen:
-
Re: [Review] Criminal-wars - please review the login looks like a free template by 'arcsin' with his/her name removed and slightly changed.
-
How to make sure assistants won't ban the admin?
POG1 replied to legrolls's topic in General Discussion
Re: How to make sure assistants won't ban the admin? why 2 sprintfs? why 2 queries? if($_GET['ID'] == 1) { $result = sprintf("UPDATE `users` SET `fedjail` = '10', `user_level` = '1' WHERE `userid` = '%u';",$userid); echo mysql_query($result,$c) ? 'why would you fed the owner? you should not be staff' : 'Lucky!'; $h->endpage(); die(); } The owners ID is 1, if it finds anyone inputting the ID as one (owner), it will fed and adjust there user level to a member -.- my example did the same job with less code ;) -
Re: Legends of the Gods (Not My Game) The login is pretty sick man