collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: member not working  (Read 2170 times)

0 Members and 1 Guest are viewing this topic.

Offline womp

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
member not working
« on: February 09, 2006, 11:16:34 pm »
I am unable to !member anyone that is not in an org

the error the I get is
Code: [Select]
[2006-02-09 21:56:37]   [TELL]  [INC]   Womp: !member stue


 (Incorrect integer value: '' for column 'rank' at row 1)





 (Duplicate entry '1630966561' for key 1)





 (Duplicate entry '1630966561' for key 1)



[2006-02-09 21:56:38]   [TELL]  [OUT]   -> Womp: Player stue has been added to t
he bot.
[2006-02-09 21:56:38]   [TELL]  [OUT]   -> stue: Womp has added you to the bot.


the member is never added to the table. I have read the post about "Whats the Data type your Rank column in the members table set to? It should be TINYINT." I have checked and that doesnt seem to be the problem either

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Re: member not working
« Reply #1 on: February 10, 2006, 08:47:59 pm »
Is the Rank field in your database set to NOT NULL? I suspect it is, as that error is generally only returned when a Null value is being insterted. In the case of a character that are not Org'd the Org Rank and Org Rank Name would be Null values.

I would check to see what fields you have set to NOT NULL. Or you can have mySQL insert a Default value of 0.
Here's a SQL Query you could use to set all that.
Code: [Select]
alter table `members` ,change `rank` `rank` tinyint (4)  DEFAULT '0' NULL
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline skeezix

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
Re: member not working
« Reply #2 on: February 11, 2006, 03:01:14 am »
I looked through Womp's machine, the only field under the table 'Rank' that is set to NOT NULL is the 'id' field, which I assume contains the numerical FC character ID

I removed the row that contained this character's ID number from the tables 'member_settings' and 'raid_points' since it at least adds those (thus the duplicate error from Womp when we tried adding this user the second time)
I'll look through the php code that does this, maybe I'll find something there :)

Offline skeezix

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
Re: member not working
« Reply #3 on: February 20, 2006, 07:05:15 pm »
In the rooter_raid.php I added this right before it added a new member to the DB
Code: [Select]
if($members["rank"] == NULL)
$members["rank"] = 0;

Seems to work ok for non-guilded people

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 84
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal