Raised This Month: $ Target: $400
 0% 

Scripting help ...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lyso
Junior Member
Join Date: Jan 2007
Old 05-16-2007 , 07:58   Scripting help ...
Reply With Quote #1

Hi i have some problem with plugin... i put him on ampaste link: http://www.ampaste.net/12096

Plugin is working corectly but crashing sometimes amxmodx, when i debug this plugin i see

Quote:
L 05/16/2007 - 11:48:49: [AMXX] Run time error 3: stack error
L 05/16/2007 - 11:48:49: [AMXX] [0] textm3HDY8.sma::connect_web (line 72)
L 05/16/2007 - 11:48:49: [AMXX] [1] textm3HDY8.sma::format_fce (line 116)
L 05/16/2007 - 11:48:49: [AMXX] [2] textm3HDY8.sma::client_putinserver (line 49)

when i today want to compile plugin on amxmodx webcompiler i see warning which i see first:

Quote:
/home/groups/amxmodx/tmp3/textNjDqvF.sma(31) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(43) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(77) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(114) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(114) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(114) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(144) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(163) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(183) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(207) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(207) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(207) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(224) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(256) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(256) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(263) : warning 213: tag mismatch
/home/groups/amxmodx/tmp3/textNjDqvF.sma(263) : warning 213: tag mismatch
plugin is for this http://bside.sk/lyso/eye/server.php?...00&filter=none

we must stop this becouse its crassing amx , so is somebody who can help me ?

sory for bad english
Lyso is offline
Silencer123
Veteran Member
Join Date: Jul 2006
Old 05-16-2007 , 10:53   Re: Scripting help ...
Reply With Quote #2

I believe that that is not the whole code, because the lines coming with those by you
posted error messages do not match to what function caused the problem.
However, stack errors are usually caused when too much stuff is being done at
the same time. Also I do not know what format_fce is since it does not appear to be
a usual function so I can not look up what it does. The Tag mismatch is being caused
because you are comparing an integer with a string, which can not work. In that
case you should check if the integer is 1, not "permanently", as equal(i) returns
either 0 or 1. Also, you often create unneccessarily big variables. For example a
message that a player sends using "say" is never being registered longer than 127 chars,
including his/her name.
__________________
EAT YOUR VEGGIES

Last edited by Silencer123; 05-16-2007 at 10:56.
Silencer123 is offline
Lyso
Junior Member
Join Date: Jan 2007
Old 05-16-2007 , 15:18   Re: Scripting help ...
Reply With Quote #3

tanks
i dont have warning yet bug debug trace see same error ...

Last edited by Lyso; 05-17-2007 at 02:19.
Lyso is offline
Lyso
Junior Member
Join Date: Jan 2007
Old 05-17-2007 , 03:26   Re: Scripting help ...
Reply With Quote #4

oh i forgot... i see this too

Quote:
[AMXX] Unexpected fatal logging error (couldn't open cstrike/addons/amxmodx/logs/L0509.log for a+). AMXX Logging disabled for this map.
Lyso is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 05-17-2007 , 11:29   Re: Scripting help ...
Reply With Quote #5

Stack errors, in my experience, are caused by when you use too much memory (default memory size is 16kb). You can use

Code:
#pragma dynamic <size in bytes>
To increase the amount of memory your plugin has to work with.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 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 10:32.


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