AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Scripting help ... (https://forums.alliedmods.net/showthread.php?t=55203)

Lyso 05-16-2007 07:58

Scripting help ...
 
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

Silencer123 05-16-2007 10:53

Re: Scripting help ...
 
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.

Lyso 05-16-2007 15:18

Re: Scripting help ...
 
tanks
i dont have warning yet bug debug trace see same error ... :(

Lyso 05-17-2007 03:26

Re: Scripting help ...
 
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.

Zenith77 05-17-2007 11:29

Re: Scripting help ...
 
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.


All times are GMT -4. The time now is 10:32.

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