L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 12:56:39 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Coding and development discussion > Topic: something is wrong
Pages: [1]   Go Down
« previous next »
Print
Author Topic: something is wrong  (Read 287 times)
0 Members and 1 Guest are viewing this topic.
Temar
BeBot Developer
Grandmaster
********
Online Online

Gender: Male
Posts: 877



WWW
something is wrong
« on: August 16, 2007, 10:34:00 PM »

im working on this module and i have no idea why tts doing this

even when there is data in $this -> $id
Line 439
Code:
if(!empty($this -> $id))
{
doesnt work

as when there isnt data in this
Line 312
Code:
if (!empty($this -> online));
{
foreach($this -> online as $sort)
i still calls , and i end up with
Quote
Warning: Invalid argument supplied for foreach() in /home/Bots/all/Botetes/modules/OnlineOrg.php on line 314

Entire Code is here, but its abit messy at the moment :p
http://rafb.net/p/dixDUk56.html
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Temar
BeBot Developer
Grandmaster
********
Online Online

Gender: Male
Posts: 877



WWW
Re: something is wrong
« Reply #1 on: August 17, 2007, 08:03:00 AM »

Found 1st bug,
just dont know why  if (!empty($this -> online)); isnt skiped when empty
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Snarfblatt
Rookie
**
Offline Offline

Posts: 53


Re: something is wrong
« Reply #2 on: August 17, 2007, 09:43:14 AM »

Remove the semi-colon at the end of the "if" line

Code:
if (!empty($this -> online))
{
foreach($this...
« Last Edit: August 17, 2007, 09:48:27 AM by Snarfblatt » Logged
Temar
BeBot Developer
Grandmaster
********
Online Online

Gender: Male
Posts: 877



WWW
Re: something is wrong
« Reply #3 on: August 17, 2007, 11:48:47 AM »

bah cant believe i missed that!
thank you
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Coding and development discussion > Topic: something is wrong
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Alreadythere
[Today at 11:42:32 AM]

Shared DB online list
by Temar
[Today at 01:55:47 AM]

relay colors
by Temar
[Today at 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11143
Total Topics: 1505
Online Today: 21
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 2
Guests: 12
Total: 14
egrath
Temar

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.413 seconds with 28 queries. (Pretty URLs adds 0.025s, 4q)
Loading...