Raised This Month: $ Target: $400
 0% 

stats /top15 replace error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sb123
Senior Member
Join Date: Jan 2007
Old 02-09-2007 , 13:20   stats /top15 replace error
Reply With Quote #1

L 02/09/2007 - 1973: replace() buffer not big enough (35>=32)
L 02/09/2007 - 1973: [AMXX] Run time error 10 (plugin "stats2.amxx") (native "replace") - debug not enabled!
L 02/09/2007 - 1973: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
http://w3arcade.net/stats.sma

ths... ths...
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-09-2007 , 13:28   Re: stats /top15 replace error
Reply With Quote #2

Code:
        while( contain ( name, "<" ) != -1 )             replace( name, 32, "<", "&lt;" )

change new name[32] to a higher value.
[ --<-@ ] Black Rose is offline
sb123
Senior Member
Join Date: Jan 2007
Old 02-09-2007 , 15:09   Re: stats /top15 replace error
Reply With Quote #3

change new name[32] to new name[33]

not..

L 02/10/2007 - 03:19:54: replace() buffer not big enough (33>=30)
L 02/10/2007 - 03:19:54: [AMXX] Run time error 10 (plugin "stats2.amxx") (native "replace") - debug not enabled!
L 02/10/2007 - 03:19:54: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-09-2007 , 16:03   Re: stats /top15 replace error
Reply With Quote #4

No. Not 33, 125.
then of course edit the "replace" buffer len to 124.
[ --<-@ ] Black Rose is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode