[QUESTION] About Compiler in 0.3
#7

Quote:
Originally Posted by Dabombber
Unfortunately, it seems like large amx files can cause crashes.

pawn Код:
#include <a_samp>

new Data[500000];

public OnFilterScriptInit()
{
    Data[0] = 0;
    return 1;
}
Loading that, then using reloadfs from the console a few times will crash the server. Using "/rcon reloadfs" ingame doesn't seem to cause the crash for some reason.
Continuing on what ****** said, there is a way to fix filesize crashes, and that is to use something like this:

pawn Код:
#pragma dynamic 8192
Change the 8192 to the smallest amount possible. As long as you don't get this:

Код:
Header size:      216 bytes
Code size:       776 bytes
Data size:       528 bytes
Stack/heap size:   16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:  17904 bytes
you will be fine.

Also, as said in many other topics, either make your own MAX_PLAYERS variable with the amount of players in your server, or redefine SA:MP's MAX_PLAYERS. Don't just use MAX_PLAYERS.
Reply


Messages In This Thread
[QUESTION] About Compiler in 0.3 - by Mr.Z - 29.09.2009, 22:06
Re: [QUESTION] About Compiler in 0.3 - by Rizard - 29.09.2009, 22:35
Re: [QUESTION] About Compiler in 0.3 - by V1ceC1ty - 30.09.2009, 00:07
Re: [QUESTION] About Compiler in 0.3 - by ev0lution - 30.09.2009, 01:11
Re: [QUESTION] About Compiler in 0.3 - by Blacklite - 30.09.2009, 04:37
Re: [QUESTION] About Compiler in 0.3 - by Dabombber - 30.09.2009, 09:58
Re: [QUESTION] About Compiler in 0.3 - by Blacklite - 30.09.2009, 21:47

Forum Jump:


Users browsing this thread: 1 Guest(s)