Jump to content
MakeWebGames

NonStopCoding

Members
  • Posts

    572
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by NonStopCoding

  1. As Coly said you are passing the variable $checks to the fetch array which is the variable your creating you need to pass the variable that holds the query which you used $check i think you have got yourself confused when adding it i would suggest if you are going to name variables like this then shorten the one on the fetch $check = mysql_query("some query"); $ch = mysql_fetch_array($check); if($ch['something']) { run code }
  2. open up phpmyadmin and run this code   UPDATE `users` SET `user_level` = 2 WHERE `userid` = ACCOUNT ID GOES HERE   will make you admin again
  3. PHP Warning: Missing argument 2 for farm::installed(), called in /home/public_html/staff.farm.php on line 67 and defined (2) from the error its saying you have missed a second requirement needed to run the installer Missing argument 2 for farm::installed() and from staff.farm.php on line 67
  4. its basicly saying that you using a variable before declaring it add this above the line 443   if(!isset($_GET['step'])) $_GET['step'] = "";   There are other ways to do this but this is easy enough :)
  5. its telling you that the old mysql_ extension is Deprecated (Outdated and wont work on later version of php) Your options 1. Hire a developer or do it yourself to update your code to mysqli or pdo 2. Use a host that uses a lower php version that still allows mysql to work hope this helps
  6. because the way the staff crimes file is coded it checks for empty fields and you inserting 0 into the box is classed as a empty so a fix would be to find the $_POST variable in the staff crimes file that handles the posting of the amount of crystals to the database and edit the empty statement to something like   if(empty($_POST['crystals']) && !is_numeric($_POST['crystals']))   this will allow it to accept 0 as a input
  7.   are you using v2.05b? if so then goto public_html/lib/basic_error_handler.php and change the define('DEBUG', false); to define('DEBUG', true); this will turn on your error reporting and show you what's going on
  8. have you tried adding $_SESSION['loggedin'] = 1; before the $_SESSION['userid'] = $_POST['userid'];
  9. the design is nice and clean and seems to go well nice job one thing i did notice is that the credits section is dropping out of the grey bit and lands on the white bit of the page causing it to be hard to read but other than that looks nice. If i hear of anyone looking to buy ill be sure to point them in your direction do have a couple questions for you. Does this use the old mysql extension or is it up to date using mysqli,pdo or oop? How does the template work is it using a framework like bootstrap?
  10. https://www.skrill.com there is another called Zong but website directs to paypal now http://www.zong.com
  11. adam is making a responsive design using same style colors but not same layout but in future i guess we would be hiring someone to get it responsive as a lot of people game from tablets/mobiles and the text is pretty small for devices
  12. Hello everyone just a quick message to let people know we have launched our game. Info Ok so the game is built of the mccodes v.2.05b (yeye i know :p) we have taken the basic features and stripped them out and added our own or added new stuff to the current mccodes system to make it more unique don't get me wrong there are still basic mccodes features in here that are going to be improved at later date (search players,luckyboxes,gym,etc). Anyone is welcome to signup and give feedback or criticism or play the game :) Thanks NonStopCoding
  13. Little update for this.   CREATE TABLE `lottery_winners` ( `lotID` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, `lotUSER` int(11) NOT NULL, `lotAMT` int(11) NOT NULL, `lotWHEN` int(20) NOT NULL ) ENGINE = MYISAM;   then add this function into global_funcs.php or in the cron file up to you.   function lottery($user,$amt) { global $db; $when = time(); $db->query("INSERT INTO `lottery_winners` (`lotUSER`,`lotAMT`,`lotWHEN`) VALUES({$user},{$amt},{$when})"); }   then open up the cron file and look for $db->query("UPDATE `users` SET `money` = `money` + {$gain} WHERE `userid` = {$rs['user']}");   and below this line add   lottery($rs['user'],$gain);
  14.   my bad change   $db->query("INSERT INTO `lottery_config` VALUES('{$_POST['tp']}','{$_POST['mut']}')");   to   $db->query("INSERT INTO `lottery_config` (`ticketprice`,`maxtickets`) VALUES('{$_POST['tp']}','{$_POST['mut']}')");
  15.   did you even read what i posted? it has the location and the filename
  16. the code for the config file i placed it in includes/style_top.php
  17.   nope just lottery.php
  18. Fixed up some issues http://pastebin.com/HTrzqEDB   Full Working Version with some code edits: http://pastebin.com/RQfSKJmp
  19.   errors i got when running it on rc Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /home/nonstopc/public_html/rc/lottery.php on line 25 Warning: number_format() expects parameter 2 to be long, string given in /home/nonstopc/public_html/rc/lottery.php on line 31 Warning: number_format() expects parameter 2 to be long, string given in /home/nonstopc/public_html/rc/lottery.php on line 35 Warning: number_format() expects parameter 2 to be long, string given in /home/nonstopc/public_html/rc/lottery.php on line 36
  20.   $count = mysql_query("SELECT COUNT(`user`) FROM `lottery_players` AS `players`"); $amt = mysql_fetch_row($count); // then change the money_formatter function to the one below. Tickets Purchased: ".number_format($amt['players'], '')."   There is also another one like this in the other functions.
  21.   its nothing to do with the way the query's are you made a mistake when converting   mysql_fetch_single // would need to be changed to mysql_fetch_assoc // or you can use mysql_fetch_row  
  22. it should be capped at 2.odd billion as its just a int change the int to a big int and you can have more. Edit: Surely you wont need to be changing this for a long time as you don't want inflation in your game.
  23.   while you work up the funds you can contact the owner i am sure he will issue you a developers version that way you get to play around with it while you save up :)
  24. nice idea but you could mix it up a little and make random images of different animals i know this doesn't help you but makes it much more better for the players
  25.   the game.css uses different classes and ids as the register page could be wrong i have a custom design on mine
×
×
  • Create New...