AMX size is very high for some unknown reason..
#1

Hi, sorry for posting this, I'm new at scripting and I have this question.
I added this:
PHP код:
public OnPlayerConnect(playerid)
{
    new 
string[150];
    if(
fexist(Path(playerid)))
    {
        
INI_ParseFile(Path(playerid), "loadaccount_%s", .bExtra true, .extra playerid);
        
format(stringsizeof(string), "{80999B}Welcome back!{28F2F2}%s{80999B}.Please insert your password to log into your account"Name(playerid));
        
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_INPUT,"Login",string,"Login","Quit");
    }
    else
    {
        
format(stringsizeof(string), "{80999B}Welcome {28F2F2}%s{80999B}.Please insert a password to register your account."Name(playerid));
        
ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUT,"Register",string,"Register","Quit");
    }
    return 
1;

When I compile the size is: 4223KB

Without it:

101KB.

Anyone have a clue of why it's happening?


Sorry for my bad english.
Reply
#2

It's the inclusion of the y_ini library. You shouldn't worry about AMX size.
Reply
#3

Isn't it going to be affect my gamemode?
Reply
#4

The AMX file size has nothing to do with how the game-mode performs. Like I said, you shouldn't worry about it. YSI includes add a lot to the file size because they are such large libraries.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)