error examining NPC

Ask Page...

Moderators: JettJackson, Infinity, Page

Post Reply
Ardbeg
Beginner Spam Artist
Posts: 2532
Joined: Thu Apr 11, 2002 2:23 pm
Contact:

error examining NPC

Post by Ardbeg »

Supreme Commander Azool [NPC] (Federal Government) Supreme Command Ship 0/0 45 Examine

On examine, i get:

Query failed: SELECT * FROM player WHERE game_id = 5 AND (alliance_id IN () OR account_id = 8 OR account_id = 1) AND sector_id = 452
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') OR account_id = 8 OR account_id = 1) AND sector_id = 452' at line 1
Read the rules, follow the rules, and stop complaining!
Image
Curufir

Post by Curufir »

To me that looks like one of those that thar error thingummys.

There should be a limit at the end of that statement. Costs nothing in a search less than the limit and plenty if the search exceeds the limit.
Azool
SMR Coder
Posts: 1736
Joined: Sat Feb 23, 2002 8:42 pm
Location: Colorado Springs, CO
Contact:

Post by Azool »

Fixed.

It is selecting both defenders and attackers. So if I set a 20 player limit it might get 15 defenders and 5 attackers (when there are 20 of each in the sector for example). It would filter out the extra defenders, but leave the attackers at 5.
Men are born to succeed, not fail.
-Henry David Thoreau
Curufir

Post by Curufir »

Yup.

Sadly yet another reason not to look at code drunk :)
Azool
SMR Coder
Posts: 1736
Joined: Sat Feb 23, 2002 8:42 pm
Location: Colorado Springs, CO
Contact:

Post by Azool »

Curufir wrote:Yup.

Sadly yet another reason not to look at code drunk :)
lol, also sadly I've done the same plenty :)
Men are born to succeed, not fail.
-Henry David Thoreau
Post Reply