AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   stats /top15 replace error (https://forums.alliedmods.net/showthread.php?t=51022)

sb123 02-09-2007 13:20

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

ths... ths...

[ --<-@ ] Black Rose 02-09-2007 13:28

Re: stats /top15 replace error
 
Code:
        while( contain ( name, "<" ) != -1 )             replace( name, 32, "<", "&lt;" )

change new name[32] to a higher value.

sb123 02-09-2007 15:09

Re: stats /top15 replace error
 
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).

[ --<-@ ] Black Rose 02-09-2007 16:03

Re: stats /top15 replace error
 
No. Not 33, 125.
then of course edit the "replace" buffer len to 124.


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

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