Jump to content

Help needed.


seany123

Recommended Posts

Okay for you to understand how to help me i need to explain what i am trying to do -

 

I am making a game and part of the game is Doing Crimes which has a success rate based on the amount of nerve the player has etc etc etc.

 

Now i think i have got this all written up to work however im constantly getting a 'Not enough nerve' error.

 

Maybe there is something im not quite doing right.

 

here it is:

 

<?
if ($_GET['act'] == "1" && $player->nerve > 0)
{
if($perc2 > 74 && $crime < 9) 
{
if (25 + $player->exp >= $player->maxexp) //Player gained a level!
    {
     //Update player
	 echo "You gained 25 EXP and $10";
	 $query = $db->execute("update `players` set `exp`=?, `money`=?, `nerve`=? where `id`=?", array($player->exp + 25, $player->money + 10, $player->nerve - 1, $player->id));
}
}
else if($crime > 8 && $jail < 3)
{
//Update player
	 echo "You Failed the Crime and was sent to Prison!";
	 $query = $db->execute("update `players` set `nerve`=?, `prison`=?  where `id`=?", array($player->nerve - 1, $player->prison + 1, $player->id));
}
else if($crime > 
{
//Update player
	 echo "You Failed the Crime!";
	 $query = $db->execute("update `players` set `nerve`=? where `id`=?", array($player->nerve - 1, $player->id));

}
else if($perc2 > 48 && $perc2 < 75 && $crime < 7) 
{
if (25 + $player->exp >= $player->maxexp) //Player gained a level!
    {
     //Update player, gained a level
	 echo "You gained 25 EXP";
	 $query = $db->execute("update `players` set `points`=?, `level`=?, `maxexp`=?, `maxhp`=?, `exp`=?, `money`=?, `hp`=?, `nerve`=? where `id`=?", array($player->points + 3, $player->level + 1, ($player->level+1) * 70 - 20, $player->maxhp + 30, $player->money + 10, $newexp, $player->nerve - 1, $player->id));
}
else
     //Update player
	 echo "You gained 25 EXP";
	 $query = $db->execute("update `players` set `exp`=?, `nerve`=? where `id`=?", array($player->exp + 25, $player->nerve - 1, $player->id));
}
}
else if($crime > 6 && $jail < 3)
{
//Update player
	 echo "You Failed the Crime and was sent to Prison!";
	 $query = $db->execute("update `players` set `nerve`=?, `prison`=?  where `id`=?", array($player->nerve - 1, $player->prison + 1, $player->id));
}
else if($crime > 6)
{
//Update player
	 echo "You Failed the Crime!";
	 $query = $db->execute("update `players` set `nerve`=? where `id`=?", array($player->nerve - 1, $player->id));
}
else
{
if($perc2 > 24 && $perc2 < 49 && $crime < 5) 
{
if (25 + $player->exp >= $player->maxexp) //Player gained a level!
    {
     //Update player, gained a level
	 echo "You gained 25 EXP";
	 $query = $db->execute("update `players` set `points`=?, `level`=?, `maxexp`=?, `maxhp`=?, `exp`=?, `money`=?, `hp`=?, `nerve`=? where `id`=?", array($player->points + 3, $player->level + 1, ($player->level+1) * 70 - 20, $player->maxhp + 30, $player->money + 10, $newexp, $player->nerve - 1, $player->id));
}
else
     //Update player
	 echo "You gained 25 EXP";
	 $query = $db->execute("update `players` set `exp`=?, `nerve`=? where `id`=?", array($player->exp + 25, $player->nerve - 1, $player->id));
}
else if($crime > 4 && $jail < 3)
{
//Update player
	 echo "You Failed the Crime and was sent to Prison!";
	 $query = $db->execute("update `players` set `nerve`=?, `prison`=?  where `id`=?", array($player->nerve - 1, $player->prison + 1, $player->id));
}
else if($crime > 4)
{
//Update player
	 echo "You Failed the Crime!";
	 $query = $db->execute("update `players` set `nerve`=? where `id`=?", array($player->nerve - 1, $player->id));
}
else
{
if($perc2 > 0 && $perc2 < 25 && $crime < 3) 
{
if (25 + $player->exp >= $player->maxexp) //Player gained a level!
    {
     //Update player, gained a level
	 echo "You gained 25 EXP";
	 $query = $db->execute("update `players` set `points`=?, `level`=?, `maxexp`=?, `maxhp`=?, `exp`=?, `money`=?, `hp`=?, `nerve`=? where `id`=?", array($player->points + 3, $player->level + 1, ($player->level+1) * 70 - 20, $player->maxhp + 30, $player->money + 10, $newexp, $player->nerve - 1, $player->id));
}
else
     //Update player
	 echo "You gained 25 EXP";
	 $query = $db->execute("update `players` set `exp`=?, `nerve`=? where `id`=?", array($player->exp + 25, $player->nerve - 1, $player->id));
}
else if($crime > 2 && $jail < 3)
{
//Update player
	 echo "You Failed the Crime and was sent to Prison!";
	 $query = $db->execute("update `players` set `nerve`=?, `prison`=?  where `id`=?", array($player->nerve - 1, $player->prison + 1, $player->id));
}
else if($crime > 2)
{
//Update player
	 echo "You Failed the Crime!";
	 $query = $db->execute("update `players` set `nerve`=? where `id`=?", array($player->nerve - 1, $player->id));
}

else
{
echo "Not enough Nerve";
}
}
}
?>

Link to comment
Share on other sites

have you checked what $_GET['act'] and $player->nerve actually are?  i assume your braces are all in order; you may want to look them over and be sure of this.

 

EDIT:  you may want to do just a generic variable dump.  you can do this quickly and efficiently like so:

 

echo '<pre>'.print_r(get_defined_vars(), TRUE);

Link to comment
Share on other sites

I dont know if not having the {}s in the right places is the problem because im getting a "not enough nerve" echo.

 

ALSO

 

I dont really know too much about php, im writing these codes in Dreamweaver or Notepad++... and testing them out on a online website.

 

How would i use that code?

 

echo '<pre>'.print_r(get_defined_vars(), TRUE);

Link to comment
Share on other sites

put that line at the top of the script (or just above this block that you've shown us).  misplaced and miscounted braces can lead to the execution of incorrect statements, which in this case could be the "Not enough nerve" echo at the end.  good practice is to indent every set of statements to avoid just this sort of confusion.

Link to comment
Share on other sites

I dont know if this is right but yeah.

 

Array
(
    [PATH] => /usr/local/bin:/usr/bin:/bin
    [DOCUMENT_ROOT] => /home/www/rs2-shopping.com
    [HTTP_ACCEPT] => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
    [HTTP_ACCEPT_ENCODING] => gzip,deflate
    [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
    [HTTP_CACHE_CONTROL] => max-age=0
    [HTTP_CONNECTION] => keep-alive
    [HTTP_KEEP_ALIVE] => 300
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16
    [REMOTE_ADDR] => 90.219.121.32
    [REMOTE_PORT] => 59937
    [sCRIPT_FILENAME] => /home/www/rs2-shopping.com/crime.php
    [sERVER_ADDR] => 66.40.52.71
    [sERVER_ADMIN] => support@freehostia.com
    [sERVER_NAME] => rs2-shopping.com
    [sERVER_PORT] => 80
    [sERVER_SOFTWARE] => Apache/1.3.33 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.7d SE/0.5.3
    [AUTH_TYPE] => Basic
    [REMOTE_USER] => 
    [GATEWAY_INTERFACE] => CGI/1.1
    [sERVER_PROTOCOL] => HTTP/1.0
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => act=1
    [REQUEST_URI] => /crime.php?act=1
    [sCRIPT_NAME] => /crime.php
    [php_DOCUMENT_ROOT] => /home/www/rs2-shopping.com
    [REDIRECT_STATUS] => 200
    [ORIG_SCRIPT_NAME] => /crime.php
    [ORIG_SCRIPT_FILENAME] => /home/www/rs2-shopping.com/crime.php
    [PATH_INFO] => 
    [PATH_TRANSLATED] => 
    [act] => 1
    [phpSESSID] => 12be3c37d62dd00d4eca92ed3ec3142f
    [php_SELF] => /crime.php
    [argv] => Array
        (
            [0] => act=1
        )

    [argc] => 1
    [HTTP_POST_VARS] => Array
        (
        )

    [_POST] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
            [act] => 1
        )

    [_GET] => Array
        (
            [act] => 1
        )

    [HTTP_COOKIE_VARS] => Array
        (
            [phpSESSID] => 12be3c37d62dd00d4eca92ed3ec3142f
        )

    [_COOKIE] => Array
        (
            [phpSESSID] => 12be3c37d62dd00d4eca92ed3ec3142f
        )

    [HTTP_SERVER_VARS] => Array
        (
            [PATH] => /usr/local/bin:/usr/bin:/bin
            [DOCUMENT_ROOT] => /home/www/rs2-shopping.com
            [HTTP_ACCEPT] => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip,deflate
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => max-age=0
            [HTTP_CONNECTION] => keep-alive
            [HTTP_COOKIE] => PHPSESSID=12be3c37d62dd00d4eca92ed3ec3142f
            [HTTP_HOST] => www.rs2-shopping.com
            [HTTP_KEEP_ALIVE] => 300
            [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16
            [REMOTE_ADDR] => 90.219.121.32
            [REMOTE_PORT] => 59937
            [sCRIPT_FILENAME] => /home/www/rs2-shopping.com/crime.php
            [sERVER_ADDR] => 66.40.52.71
            [sERVER_ADMIN] => support@freehostia.com
            [sERVER_NAME] => rs2-shopping.com
            [sERVER_PORT] => 80
            [sERVER_SOFTWARE] => Apache/1.3.33 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.7d SE/0.5.3
            [AUTH_TYPE] => Basic
            [REMOTE_USER] => 
            [GATEWAY_INTERFACE] => CGI/1.1
            [sERVER_PROTOCOL] => HTTP/1.0
            [REQUEST_METHOD] => GET
            [QUERY_STRING] => act=1
            [REQUEST_URI] => /crime.php?act=1
            [sCRIPT_NAME] => /crime.php
            [php_DOCUMENT_ROOT] => /home/www/rs2-shopping.com
            [REDIRECT_STATUS] => 200
            [ORIG_SCRIPT_NAME] => /crime.php
            [ORIG_SCRIPT_FILENAME] => /home/www/rs2-shopping.com/crime.php
            [PATH_INFO] => 
            [PATH_TRANSLATED] => 
            [php_SELF] => /crime.php
            [argv] => Array
                (
                    [0] => act=1
                )

            [argc] => 1
        )

    [_SERVER] => Array
        (
            [PATH] => /usr/local/bin:/usr/bin:/bin
            [DOCUMENT_ROOT] => /home/www/rs2-shopping.com
            [HTTP_ACCEPT] => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip,deflate
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => max-age=0
            [HTTP_CONNECTION] => keep-alive
            [HTTP_COOKIE] => PHPSESSID=12be3c37d62dd00d4eca92ed3ec3142f
            [HTTP_HOST] => www.rs2-shopping.com
            [HTTP_KEEP_ALIVE] => 300
            [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16
            [REMOTE_ADDR] => 90.219.121.32
            [REMOTE_PORT] => 59937
            [sCRIPT_FILENAME] => /home/www/rs2-shopping.com/crime.php
            [sERVER_ADDR] => 66.40.52.71
            [sERVER_ADMIN] => support@freehostia.com
            [sERVER_NAME] => rs2-shopping.com
            [sERVER_PORT] => 80
            [sERVER_SOFTWARE] => Apache/1.3.33 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.7d SE/0.5.3
            [AUTH_TYPE] => Basic
            [REMOTE_USER] => 
            [GATEWAY_INTERFACE] => CGI/1.1
            [sERVER_PROTOCOL] => HTTP/1.0
            [REQUEST_METHOD] => GET
            [QUERY_STRING] => act=1
            [REQUEST_URI] => /crime.php?act=1
            [sCRIPT_NAME] => /crime.php
            [php_DOCUMENT_ROOT] => /home/www/rs2-shopping.com
            [REDIRECT_STATUS] => 200
            [ORIG_SCRIPT_NAME] => /crime.php
            [ORIG_SCRIPT_FILENAME] => /home/www/rs2-shopping.com/crime.php
            [PATH_INFO] => 
            [PATH_TRANSLATED] => 
            [php_SELF] => /crime.php
            [argv] => Array
                (
                    [0] => act=1
                )

            [argc] => 1
        )

    [HTTP_ENV_VARS] => Array
        (
            [PATH] => /usr/local/bin:/usr/bin:/bin
            [DOCUMENT_ROOT] => /home/www/rs2-shopping.com
            [HTTP_ACCEPT] => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip,deflate
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => max-age=0
            [HTTP_CONNECTION] => keep-alive
            [HTTP_COOKIE] => PHPSESSID=12be3c37d62dd00d4eca92ed3ec3142f
            [HTTP_HOST] => www.rs2-shopping.com
            [HTTP_KEEP_ALIVE] => 300
            [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16
            [REMOTE_ADDR] => 90.219.121.32
            [REMOTE_PORT] => 59937
            [sCRIPT_FILENAME] => /home/www/rs2-shopping.com/crime.php
            [sERVER_ADDR] => 66.40.52.71
            [sERVER_ADMIN] => support@freehostia.com
            [sERVER_NAME] => rs2-shopping.com
            [sERVER_PORT] => 80
            [sERVER_SOFTWARE] => Apache/1.3.33 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.7d SE/0.5.3
            [AUTH_TYPE] => Basic
            [REMOTE_USER] => 
            [GATEWAY_INTERFACE] => CGI/1.1
            [sERVER_PROTOCOL] => HTTP/1.0
            [REQUEST_METHOD] => GET
            [QUERY_STRING] => act=1
            [REQUEST_URI] => /crime.php?act=1
            [sCRIPT_NAME] => /crime.php
            [php_DOCUMENT_ROOT] => /home/www/rs2-shopping.com
            [REDIRECT_STATUS] => 200
            [ORIG_SCRIPT_NAME] => /crime.php
            [ORIG_SCRIPT_FILENAME] => /home/www/rs2-shopping.com/crime.php
            [PATH_INFO] => 
            [PATH_TRANSLATED] => 
        )

    [_ENV] => Array
        (
            [PATH] => /usr/local/bin:/usr/bin:/bin
            [DOCUMENT_ROOT] => /home/www/rs2-shopping.com
            [HTTP_ACCEPT] => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_ACCEPT_ENCODING] => gzip,deflate
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_CACHE_CONTROL] => max-age=0
            [HTTP_CONNECTION] => keep-alive
            [HTTP_COOKIE] => PHPSESSID=12be3c37d62dd00d4eca92ed3ec3142f
            [HTTP_HOST] => www.rs2-shopping.com
            [HTTP_KEEP_ALIVE] => 300
            [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16
            [REMOTE_ADDR] => 90.219.121.32
            [REMOTE_PORT] => 59937
            [sCRIPT_FILENAME] => /home/www/rs2-shopping.com/crime.php
            [sERVER_ADDR] => 66.40.52.71
            [sERVER_ADMIN] => support@freehostia.com
            [sERVER_NAME] => rs2-shopping.com
            [sERVER_PORT] => 80
            [sERVER_SOFTWARE] => Apache/1.3.33 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.7d SE/0.5.3
            [AUTH_TYPE] => Basic
            [REMOTE_USER] => 
            [GATEWAY_INTERFACE] => CGI/1.1
            [sERVER_PROTOCOL] => HTTP/1.0
            [REQUEST_METHOD] => GET
            [QUERY_STRING] => act=1
            [REQUEST_URI] => /crime.php?act=1
            [sCRIPT_NAME] => /crime.php
            [php_DOCUMENT_ROOT] => /home/www/rs2-shopping.com
            [REDIRECT_STATUS] => 200
            [ORIG_SCRIPT_NAME] => /crime.php
            [ORIG_SCRIPT_FILENAME] => /home/www/rs2-shopping.com/crime.php
            [PATH_INFO] => 
            [PATH_TRANSLATED] => 
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
            [act] => 1
            [phpSESSID] => 12be3c37d62dd00d4eca92ed3ec3142f
        )

    [HTTP_SESSION_VARS] => Array
        (
            [userid] => 1
            [hash] => 2d9692f387d87417e46e3914e41c606843384078
        )

    [_SESSION] => Array
        (
            [userid] => 1
            [hash] => 2d9692f387d87417e46e3914e41c606843384078
        )

    [userid] => 1
    [hash] => 2d9692f387d87417e46e3914e41c606843384078
    [xgameversion] => 0.12 X




    [secret_key] => seany123
    [version] => 0.12
    [ADODB_vers] => V4.94 23 Jan 2007 (c) 2000-2007 John Lim (jlim#natsoft.com.my). All rights reserved. Released BSD & LGPL.
    [ADODB_COUNTRECS] => 1
    [ADODB_CACHE_DIR] => /tmp
    [ADODB_EXTENSION] => 
    [ADODB_COMPAT_FETCH] => 
    [ADODB_FETCH_MODE] => 2
    [ADODB_QUOTE_FIELDNAMES] => 
    [_adodb_ver] => 4.4
    [ADODB_FORCE_TYPE] => 3
    [_month_table_normal] => Array
        (
            [0] => 
            [1] => 31
            [2] => 28
            [3] => 31
            [4] => 30
            [5] => 31
            [6] => 30
            [7] => 31
            [8] => 31
            [9] => 30
            [10] => 31
            [11] => 30
            [12] => 31
        )

    [_month_table_leaf] => Array
        (
            [0] => 
            [1] => 31
            [2] => 29
            [3] => 31
            [4] => 30
            [5] => 31
            [6] => 30
            [7] => 31
            [8] => 31
            [9] => 30
            [10] => 31
            [11] => 30
            [12] => 31
        )

    [ADODB_NEWCONNECTION] => 
    [ADODB_LASTDB] => mysql
    [db] => adodb_mysql Object
        (
            [dataProvider] => mysql
            [databaseType] => mysql
    
            [debug] => 
            [maxblobsize] => 262144
            [concat_operator] => +
            [substr] => substring
            [length] => length
            [random] => rand()
            [upperCase] => upper
            [fmtDate] => 'Y-m-d'
            [fmtTimeStamp] => 'Y-m-d H:i:s'
            [true] => 1
            [false] => 0
            [replaceQuote] => \'
            [nameQuote] => `
            [charSet] => 
            [metaDatabasesSQL] => 
            [metaTablesSQL] => SHOW TABLES
            [uniqueOrderBy] => 
            [emptyDate] =>  
            [emptyTimeStamp] =>  
            [lastInsID] => 
            [hasInsertID] => 1
            [hasAffectedRows] => 1
            [hasTop] => 
            [hasLimit] => 1
            [readOnly] => 
            [hasMoveFirst] => 1
            [hasGenID] => 1
            [hasTransactions] => 
            [genID] => 0
            [raiseErrorFn] => 
            [isoDates] => 1
            [cacheSecs] => 3600
            [memCache] => 
            [memCacheHost] => 
            [memCachePort] => 11211
            [memCacheCompress] => 
            [sysDate] => CURDATE()
            [sysTimeStamp] => NOW()
            [arrayClass] => ADORecordSet_array
            [noNullStrings] => 
            [numCacheHits] => 0
            [numCacheMisses] => 0
            [pageExecuteCountRows] => 1
            [uniqueSort] => 
            [leftOuter] => 
            [rightOuter] => 
            [ansiOuter] => 
            [autoRollback] => 
            [poorAffectedRows] => 1
            [fnExecute] => 
            [fnCacheExecute] => 
            [blobEncodeType] => 
            [rsPrefix] => ADORecordSet_
            [autoCommit] => 1
            [transOff] => 0
            [transCnt] => 0
            [fetchMode] => 2
            [null2null] => null
            [_oldRaiseFn] => 
            [_transOK] => 
            [_connectionID] => Resource id #7
            [_errorMsg] => 
            [_errorCode] => 
            [_queryID] => Resource id #12
            [_isPersistentConnection] => 
            [_bindInputArray] => 
            [_evalAll] => 
            [_affected] => 
            [_logsql] => 
            [_transmode] => 
            [metaColumnsSQL] => SHOW COLUMNS FROM `%s`
            [forceNewConnect] => 
            [clientFlags] => 0
            [compat323] => 
            [_genIDSQL] => update %s set id=LAST_INSERT_ID(id+1);
            [_genSeqSQL] => create table %s (id int not null)
            [_genSeqCountSQL] => select count(*) from %s
            [_genSeq2SQL] => insert into %s values (%s)
            [_dropSeqSQL] => drop table %s
            [databaseName] => sealin62_mafia
        )

    [query] => adorecordset_mysql Object
        (
            [dataProvider] => native
            [fields] => 
            [blobSize] => 100
            [canSeek] => 1
            [sql] => select * from `cron`
            [EOF] => 1
            [emptyTimeStamp] =>  
            [emptyDate] =>  
            [debug] => 
            [timeCreated] => 0
            [bind] => 
            [fetchMode] => 1
            [connection] => adodb_mysql Object
                (
                    [dataProvider] => mysql
                    [databaseType] => mysql
         
                    [debug] => 
                    [maxblobsize] => 262144
                    [concat_operator] => +
                    [substr] => substring
                    [length] => length
                    [random] => rand()
                    [upperCase] => upper
                    [fmtDate] => 'Y-m-d'
                    [fmtTimeStamp] => 'Y-m-d H:i:s'
                    [true] => 1
                    [false] => 0
                    [replaceQuote] => \'
                    [nameQuote] => `
                    [charSet] => 
                    [metaDatabasesSQL] => 
                    [metaTablesSQL] => SHOW TABLES
                    [uniqueOrderBy] => 
                    [emptyDate] =>  
                    [emptyTimeStamp] =>  
                    [lastInsID] => 
                    [hasInsertID] => 1
                    [hasAffectedRows] => 1
                    [hasTop] => 
                    [hasLimit] => 1
                    [readOnly] => 
                    [hasMoveFirst] => 1
                    [hasGenID] => 1
                    [hasTransactions] => 
                    [genID] => 0
                    [raiseErrorFn] => 
                    [isoDates] => 1
                    [cacheSecs] => 3600
                    [memCache] => 
                    [memCacheHost] => 
                    [memCachePort] => 11211
                    [memCacheCompress] => 
                    [sysDate] => CURDATE()
                    [sysTimeStamp] => NOW()
                    [arrayClass] => ADORecordSet_array
                    [noNullStrings] => 
                    [numCacheHits] => 0
                    [numCacheMisses] => 0
                    [pageExecuteCountRows] => 1
                    [uniqueSort] => 
                    [leftOuter] => 
                    [rightOuter] => 
                    [ansiOuter] => 
                    [autoRollback] => 
                    [poorAffectedRows] => 1
                    [fnExecute] => 
                    [fnCacheExecute] => 
                    [blobEncodeType] => 
                    [rsPrefix] => ADORecordSet_
                    [autoCommit] => 1
                    [transOff] => 0
                    [transCnt] => 0
                    [fetchMode] => 2
                    [null2null] => null
                    [_oldRaiseFn] => 
                    [_transOK] => 
                    [_connectionID] => Resource id #7
                    [_errorMsg] => 
                    [_errorCode] => 
                    [_queryID] => Resource id #12
                    [_isPersistentConnection] => 
                    [_bindInputArray] => 
                    [_evalAll] => 
                    [_affected] => 
                    [_logsql] => 
                    [_transmode] => 
                    [metaColumnsSQL] => SHOW COLUMNS FROM `%s`
                    [forceNewConnect] => 
                    [clientFlags] => 0
                    [compat323] => 
                    [_genIDSQL] => update %s set id=LAST_INSERT_ID(id+1);
                    [_genSeqSQL] => create table %s (id int not null)
                    [_genSeqCountSQL] => select count(*) from %s
                    [_genSeq2SQL] => insert into %s values (%s)
                    [_dropSeqSQL] => drop table %s
                    [databaseName] => sealin62_mafia
                )

            [_numOfRows] => 4
            [_numOfFields] => 2
            [_queryID] => Resource id #11
            [_currentRow] => 4
            [_closed] => 
            [_inited] => 1
            [_obj] => 
            [_names] => 
            [_currentPage] => -1
            [_atFirstPage] => 
            [_atLastPage] => 
            [_lastPageNo] => -1
            [_maxRecordCount] => 0
            [datetime] => 
            [databaseType] => mysql
            [adodbFetchMode] => 2
        )

    [row] => 
    [cron] => Array
        (
            [reset_last] => 1225132610
            [reset_time] => 86400
            [revive_last] => 1225142380
            [revive_time] => 300
        )

    [now] => 1225142536
    [diff] => 156
    [player] => stdClass Object
        (
            [id] => 1
            [rm] => 1
   
            [email] => 
            [rank] => Member
            [xaccess] => 100
            [registered] => 1220148866
            [last_active] => 1225140081
            [ip] => 90.218.116.186
            [level] => 1
            [points] => 8500
            [money] => 627882
            [bank] => 25000000
            [hp] => 1000
            [maxhp] => 1000
            [exp] => 1995
            [maxexp] => 3760
            [energy] => 20
            [maxenergy] => 20
            [nerve] => 10
            [maxnerve] => 10
            [awake] => 100
            [maxawake] => 100
            [strength] => 50
            [vitality] => 50
            [agility] => 50
            [interest] => 1
            [kills] => 8
            [deaths] => 0
            [searchdowntown1] => 1
            [searchdowntown2] => 1
            [templecount] => 3
            [fish_level] => 3
            [fish_exp] => 3
            [fish_maxexp] => 12
            [pole] => 1
            [fish] => 20
            [metal] => 10
            [mine_level] => 1
            [mine_exp] => 1
            [mine_maxexp] => 10
            [minecount] => 10
            [Players_Job_ID] => 1
            [P_Job_Skill] => 0
            [ref] => 0
            [dead_time_remaining] => 0
            [weapon_used_id] => 0
            [killed_by_id] => 0
            [city_id] => 1
            [gender] => male
            [house_id] => 0
            [style] => 
        )

)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.