Y_Ini problem +rep if helped me
#1

Hi, I have a problem with this code
pawn Код:
public OnPlayerConnect(playerid)
{
    new playerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
    new userfile[40];
    format(userfile, sizeof(userfile), USER_FILE, playerName);
    INI_ParseFile(userfile, "LoadDrugData_%s", .bExtra = true, .extra = playerid);
    return 1;
}
When I compile the script, It makes the .amx file like 4,1mb, but without the code the .amx file is 76kb, please help me, I really need to fix this.

Reply
#2

That's just the size of the file.. nothing you can really do to be honest lol
Reply
#3

So there would'nt be any running problems? I mean there will be no lag on the server or whatsoever?
Reply
#4

No, lag in the server is never (don't quote me on never) caused by the size of the .pwn or .amx, it mostly consists of the server specs and the players internet connection.
Reply
#5

Thank you so much, I was really worried about that file size...I mean it's just a 350+ line script...but no problem now...+ rep you
Reply
#6

Quote:
Originally Posted by friezakinght
Посмотреть сообщение
Thank you so much, I was really worried about that file size...I mean it's just a 350+ line script...but no problem now...+ rep you
I've got a 3,300 line script that has a 628kb .amx so your code will effect the size of your .amx, and your code will effect the time it takes the server to process the code, but it shouldn't ever cause actual lag within the server.
Reply
#7

And you mean it would take more time to process a command ?
Reply
#8

Quote:
Originally Posted by friezakinght
Посмотреть сообщение
And you mean it would take more time to process a command ?
Technically yes, the time it takes to process a command depends on how you code it and what methods you use, but you can hardly tell when you're actually playing in-game.
Reply
#9

I'm using ZCMD, and the commands process really fast, as you stated, I can't really tell if it's slow. Anyway, thanks for taking the time to enlighten me. Have a good day, sir!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)