I Keep Getting This Error Please Help?

Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\Bot.php on line 897

<?php
declare(ticks=1);
set_time_limit(0);//DO NOT REMOVE THIS IF YOU ARE GOING TO USE XAMPP!!!!!
class XatBot {
    var $creator = array('name'=>'MisterBlaze', 'id'=>'370058127');
    private $roomID = "152905091"; //152905091
    private $botName = "BlazeBOT";
    var $botID = "";
    private $avatar = "(bot)";
    var $access = array('purples (bot)'); //To give access to others, Go down to the bottom of the script and read instructions there!
    var $k = "";
        //Allowaccess command controls who can command the bot! (via ID)
    var $allowAccess = array('370058127','190920593');
    var $botOwner = array('370058127','190920593');
    var $userID = "";

    var $regName = "purpleawesome";//Fill this in for Default login
    var $regPassword = "imbotyeah";//Fill in for default login
    var $regInfo = array(homo); //will store the info from login  
    var $loggedIn = false;

    private $maxKicks = 3;
    var $banTime = 86400;//in seconds
    var $filterWords = true;
    var $md5;
    var $allowByRank;
    var $automember = true;
    private $autowelcome = "Bot Online.(GOO).";
    var $autokicknull = true;
    var $commands = array();
    private $minRank = 6;
    var $censor = array();

    var $gamesAllowed = true;
    var $gameRunning = false;
    var $gameVar = array();

    var $debug = true;
    var $sql = null;
    var $soc = null;
    var $packet = array();
    var $users = array();
    var $auser = array();
    var $doneReached = false;
    private $autoKick = array("");
    var $members = array();
    var $handler = array();

 ...

Recommended Answers

All 3 Replies

Member Avatar for Zagga

Look at the line suggested in the error message, then work backwards a few lines and you can normally spot the error.
In your case, look at line 895.

Line 895, something miss with $in or put the colon ';' to close the statement like $in; .

Member Avatar for diafol

Was it your intention to post all these naughty names on this nice clean forum? ;)
Shame on you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.