[HELP] My weird running Gamemode.
#1

Hey Guys.

I Have a Problem.
During running my gamemode it works all for the first day. But after some uptime, everything gets weird mixed up. Some People just join and have admin powers, Textdraw gets mixed up, some commands dont work anymore, Checkpoint ids gets mixed up too, etc. If I restart everything works as usuall again.

I dont like to give out my source code of the gamemode cause its for my community only but who else does.
I know some of you guys only help, if I give the code.

But can't you tell me general things what I may done wrong?
Every tips can help me so please post what you can, all your ideas.
How can this even happen, it compiles without errors.

Maybe this is the Problem?:

Header size: 8292 bytes
Code size: 597672 bytes
Data size: 1571132 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4282 cells (17128 bytes)
Total requirements: 2193480 bytes

I also can give general dats on which systems i use.

for accountsaving i use: Dini
im using the irc plugin from: Icognito
im using the checkpoint streamer plugin from: Icognito
I also use the country IP detector, forgot the scriptername.
I use dutils for my housesystem. (btw is it bugfree to use dini and dutils on same time?)
Im using the JA_COUNT system for countdowns and countups.

Here my include list:

#include <a_samp>
#include <JA_Count>
#include <irc>
#include <Dini>
#include <dutils>
#include <dudb>
#include <gl_common>
#include <colors>
#include <dcmd>
#include <vehiclenames>
#include <ircsscanf>
#include <zones>
#include <a_npc> <<<<<<<<<<<<< is it ok to have a_npc in my gamemode?
#include <GeoIP_Plugin>
#include <streamer>
#include <utils>

Every filterscript is defined as filterscript, so it cant be a filterscript bug.

If you need more information, please let me know and what.
Please help me, iam grateful for every ideas. Thanks
Reply
#2

You cannot control NPCs from your gamemode. Providing you're not calling any of the NPC natives however, I don't think this would be the cause.

It sounds to me like there is a memory overflow. For example:

Код:
new array[20];

for(new i = 0; i != 22; i++)
{
  array[i] = 542;  // This would fuckup on the 20th+ iterate
}
Reply
#3

if you don't like this

pawn Код:
Header size:      8292 bytes
Code size:      597672 bytes
Data size:     1571132 bytes
Stack/heap size:   16384 bytes; estimated max. usage=4282 cells (17128 bytes)
Total requirements: 2193480 bytes
#pragma dynamic 8000 = if it said that head size again edit the 8000 to 10000? do you know or higher
Reply
#4

Quote:
Originally Posted by SiloX
if you don't like this

pawn Код:
Header size:     8292 bytes
Code size:     597672 bytes
Data size:     1571132 bytes
Stack/heap size:   16384 bytes; estimated max. usage=4282 cells (17128 bytes)
Total requirements: 2193480 bytes
#pragma dynamic 8000 = if it said that head size again edit the 8000 to 10000? do you know or higher
Or do the correct thing, and fix the code properly.

_Jay_ has provided quite an in-depth explanation on what's being done wrong, of course you will have to review the code yourself and see where you've gone wrong though.

Best of luck.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)