|
Dracutza
|
 |
« Reply #15 on: May 10, 2008, 09:06:05 PM » |
|
Close for quote... [2008-05-11 02:06:33] [TELL] [INC] Dracutza: !quote add hi hi hi Warning: mysql_insert_id(): supplied argument is not a valid MySQL-Link resource in P:\botsys\custom\core\0.4_Support.php(31) : eval()'d code on line 260 [2008-05-11 02:06:33] [TELL] [OUT] -> Dracutza: Thank you, your quo te has been added as id # Apf seems to work!  To [Pobot3]: !apf Pobot3: The Outzone gates will open in 0 hours, 52 minutes, and 54 seconds. To [Pobot3]: !apf set now Pobot3: APF Timestamp Updated. Automatic web updates are Disabled. The Outzone gates will open in 0 hours, 0 minutes, and 0 seconds.
|
|
|
|
|
Logged
|
|
|
|
|
Temar
|
 |
« Reply #16 on: May 15, 2008, 12:08:23 AM » |
|
Fixed Problem with gmsg commands not being registered correctly
|
|
|
|
|
Logged
|
|
|
|
shadowdamon
Freshman
Offline
Posts: 10
|
 |
« Reply #17 on: June 10, 2008, 02:23:45 PM » |
|
Im getting this error, no clue how or why.
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in C:\BeBot\custom\modules\0.4_Support.php(31) : eval()'d code on line 344
Any help would be appretiated.
|
|
|
|
|
Logged
|
|
|
|
|
Blueeagle
|
 |
« Reply #18 on: June 10, 2008, 07:35:57 PM » |
|
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in C:\BeBot\custom\modules\0.4_Support.php(31) : eval()'d code on line 344
A T_CONSTANT_ENCAPSED_STRING is a string constant that's encapsed with single or double quotes like 'hello' or "hello". The error is occuring on line 31 of the support module where it (the support module) is evaluating code with eval(). In the code being evalueated apperantly there is such a string on line 344 that the PHP parser did not expect. What it did expect, however, was a closing parenthesis. ')'. Now, the $48'000 question is which module the support-module is attempting to load and what lines 340-345 look like. Without knowing that it's impossible to debug the issue.
|
|
|
|
|
Logged
|
The only problem that can't be solved by adding another wrapper is having too many wrappers.
|
|
|
|
Temar
|
 |
« Reply #19 on: June 10, 2008, 08:42:40 PM » |
|
above that line should be the module it is loading i told my module to say its loading the module before for this exact reason
|
|
|
|
|
Logged
|
|
|
|
Trancillion
Freshman
Offline
Gender: 
Posts: 19
|
 |
« Reply #20 on: July 05, 2008, 01:33:56 PM » |
|
having this problem aswell:
Noctrish [2008-07-05 18:04:56] [GROUP] [MSG] [Nocturnal Fear] Dayshade: !quote add [Nocturnal Fear] Trancillion: !cheetos [Nocturnal Fear] Noctrish: /me cast s Materialize Greater Cheetos in Trancillion's mouth.
Warning: mysql_insert_id(): supplied argument is not a valid MySQL-Link resource in D:\0.5.2\custom\core\0.4_Support.php(31) : eval()'d code on line 260
in 0.4_support.php:
255: $contents = str_replace('function gc($', 'function gc($name, $msg) 256: { 257: if($msg[0] != $this -> bot -> commpre && !$this -> dontuseprefix) 258: { 259: $msg = $this -> bot -> commpre.$msg; 260: } 261: $this -> gc_support($name, $msg); 262: } 263: 264: function gc_support($', $contents);
in Quotes.php
275: $reply = "Unable to delete quote with ID of " . $qnum . ". You must be an admin or the contributor of the quote to delete it."; 258: } 259: } 260: else 261: { 262: $sql = "SELECT id FROM #___quotes ORDER BY id DESC LIMIT 1"; 263: $num = $this -> bot -> db -> select($sql); 264: $reply = "Quote with id of " . $qnum . " not found. (Highest quote ID is " . $num[0][0] . ".)"; 265: } 266: return $reply; 267: } // End function del_quote()
no ide if this is any help at all, but so far only this Quotes.php that has created any problems. and i'v added 1 by 1. tested them all after adding. (well xp.php has a smal problem of listing alien lvls on just !xp, but thats just a smal problem. works when you put a level behind).
|
|
|
|
|
Logged
|
|
|
|
|
Temar
|
 |
« Reply #21 on: July 06, 2008, 08:23:27 AM » |
|
the module should not affect that query, my guess is its somit todo with the quotes module or mysql
|
|
|
|
|
Logged
|
|
|
|
|
clashbot
|
 |
« Reply #22 on: July 18, 2008, 11:02:05 AM » |
|
ok, this seems to be the section I need. The nano, by temar, is not working with the current svn. It has to do with the arguments being passed on. Nano currently is not accepting any arguments so constantly displays the help page. I have the latest 0.4 support mod, I have the latest everything...but since upgrading to the 5.2 I have been unable to use nano at all.
|
|
|
|
|
Logged
|
|
|
|
|
Zweiblum
|
 |
« Reply #23 on: July 23, 2008, 09:50:54 AM » |
|
hmm.. i dont understand that: im using 0.5.2 now. the 0.5 modules r in c:\bot\custom\modules the 0.4 modules are in c:\bot\custom\modules\04
i got aiboss.php and swstimer.php in the .\modules dir and its working fine even the 0.4_support.php is inside .\modules sire i got trickle.php and apf.php (from glara) in .\modules\04 trickle.php is working fine, but apf.php isnt.. and i realy dont see why :/ the bot just doesnt know the command !apf ... maybe i just dont see the problem :/
|
|
|
|
|
Logged
|
|
|
|
|
Temar
|
 |
« Reply #24 on: July 23, 2008, 10:40:56 AM » |
|
0.4 modules: c:\bot\custom\04\
|
|
|
|
|
Logged
|
|
|
|
|
Zweiblum
|
 |
« Reply #25 on: July 23, 2008, 10:52:36 AM » |
|
thx for the reply! ok for the apf.php costum\modules works fine but the strange thing is, that the tickle.php must be in bot\custom\modules\04 else the bot wont start... thats strange, but now everything works fine. many thx for helping a noob like me 
|
|
|
|
|
Logged
|
|
|
|
|
Temar
|
 |
« Reply #26 on: July 23, 2008, 12:09:15 PM » |
|
anything in modules\04 isnt loaded
|
|
|
|
|
Logged
|
|
|
|
|
Zweiblum
|
 |
« Reply #27 on: July 23, 2008, 12:11:39 PM » |
|
actually m trickle.php is at C:\0.5.2\custom\modules\04 and its only working when its in that dir, else it wont.
|
|
|
|
|
Logged
|
|
|
|
|
Temar
|
 |
« Reply #28 on: July 23, 2008, 10:29:24 PM » |
|
like i said anythin in custom/modules/04 isnt loaded, Bebot doesnt load them, my Support module doesnt load them unless u changed it
what is the error you are getting?
|
|
|
|
|
Logged
|
|
|
|
|
Zweiblum
|
 |
« Reply #29 on: July 24, 2008, 01:18:17 AM » |
|
im a lil bit confused... when u say "anythin in custom/modules/04 isnt loaded" its sounds like that it shouldnt work in game, but it is. when the module (tickle.php) is NOT in that dir (custom/module/04) the bot istn loading with any error msg, hes just in a logon loop trying to logon again and again and again..
|
|
|
|
|
Logged
|
|
|
|
|