Gamemode crash at many players - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gamemode crash at many players (
/showthread.php?tid=589672)
Gamemode crash at many players -
Nucky - 21.09.2015
PHP код:
[15:39:44] [sampgdk:error] Too many callback arguments (at most 32 allowed)
I get spammed with this when I reach above 10 players. I read something about issues with strings, but I don't find any strings with a huge number. But I could find a query[500] in my script. Is this normal?
PHP код:
Header size: 20092 bytes
Code size: 1422068 bytes
Data size: 11110320 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:12568864 bytes
It's a very huge file and when I try to use crashdetect I'm just getting spammed 'out of boundaries' and other errors. No way I can identify, but something's wrong here. I have updated streamer plugin and removed crashdetect.
Is it a shortcut to fix this, or does anyone know what I have to look for? The gamemode runs fine until I reach a couple of players. EDIT: I have added #pragma dynamic
heap size value and is testing it now.
Re: Gamemode crash at many players -
Stanford - 21.09.2015
What plugins are you using?
Re: Gamemode crash at many players -
Vince - 21.09.2015
#pragma dynamic may be the solution if all other optimization efforts have been exhausted, but this is rarely the case. It is often a workaround to hide shoddy coding.
Re: Gamemode crash at many players -
Nucky - 21.09.2015
Streamer, newest version
MySQL (R5)
sscanf (it says copyrighted in 2009 when loading the server)
irc
These are the ones I use. Could sscanf have something to do with it?
I'm saving players, houses and other stuff into MySQL but businesses, factions and vehicles are saved using DINI.
Re: Gamemode crash at many players -
Gangster-rocks - 21.09.2015
your mysql plugin is outdated, as well as the sscanf plugin, try dling the latest versions and update us if this keeps happening.