Jump to content
MakeWebGames

on my game i have these errors can anyone help?


Recommended Posts

Posted

when i tRY tO BUY a house it says

Not Found

The requested URL /createhouses.php8 was not found on this server.

 

then when i try to get on my poker it says

Fatal error: Cannot redeclare checkincomingdata() (previously declared in /home/thenewre/public_html/header.php:8) in /home/thenewre/public_html/header.php on line 22

 

if anyone can help then please message me thanks.

Posted

just to clarify, you get this error when you try to buy a house ?....or when u try to make one in the staffpanel ?...lol

first off ..

/createhouses.php8 <<< that 8 on the end doesnt belong...

also

createhouses.php is not a standard page with the default mccodes...so not sure where u got that from...

to buy a house the page is called : estate.php

cheers

Posted

i thought that might have been the case so i checked the v1 files and i still dont see a createhouses.php...:P

not by default anyway...he might be using a mod...

Posted

RE: on my game i have these errors can anyone help?

 

when i tRY tO BUY a house it says

Not Found

The requested URL /createhouses.php8 was not found on this server.

 

then when i try to get on my poker it says

Fatal error: Cannot redeclare checkincomingdata() (previously declared in /home/thenewre/public_html/header.php:8) in /home/thenewre/public_html/header.php on line 22

 

if anyone can help then please message me thanks.

Wherever the createhouses page was linked (most like explore.php or header.php) you mis-typed the link. Check it, you'll have appended an 8 accidentally to the end of the url.

On your poker page, it looks like you included your headers twice somehow. If you post the first 30 lines of your poker page, I am nearly certain your error will be easily seen to some of the coders here.

Posted

[align=justify]i just posted them here is the poker

 

session_start();

require "globals.php";

if($_SESSION['loggedin']==0) { header("Location: login.php");exit; }

$userid=$_SESSION['userid'];

require "header.php";

$h = new headers;

$h->startheaders();

include "mysql.php";

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);

print "<h3>Poker</h3>";

//-Configuration

$ChipPrice=500; // Price Per Chip in Poker

$times=350; //-- how many rounds the poker game should last

if(!$_SESSION['chips']) { $chiptxt="no"; } else {$chiptext=$_SESSION['chips']; }

if(!$_GET['action'])

{

if($_SESSION['game'] == 1) { die("You cannot visit here while in a game!"); }

print "Welcome to the All-Stars Poker Room!

This Place is either where you have your day or you don't!

 

Warning: If you enter the game and decide to quit before finished, You lose all your chips

 

You currently have $_SESSION[chips] chips!

<table width=50% border=1 style=\"border:groove;\" bordercolor=orange>

<tr><td>

Buy Chips</td></tr>

<tr><td>Back to Game</td></tr>";

if($_SESSION['chips'] > 0)

{

[/align]

Posted

well as for the poker mod you simply need to convert it to v2 which is simple...

change this part :

session_start();
require "globals.php";
if($_SESSION['loggedin']==0) { header("Location: login.php");exit; }
$userid=$_SESSION['userid'];
require "header.php";
$h = new headers;
$h->startheaders();
include "mysql.php";
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);

 

into this :

 

include "globals.php";

 

now about the security there is two routes you could take...

1) Search through the forums and learn as much about security as you can...and secure it yourself

2) Pay someone to secure your game for you..

i guarantee you that no one will secure your game for free...and if someone offers to do so..be cautious be very cautious :P

cheers

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...