Y_Ini problem +rep if helped me -
friezakinght - 09.07.2014
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.
Re: Y_Ini problem +rep if helped me -
Jack_Leslie - 09.07.2014
That's just the size of the file.. nothing you can really do to be honest lol
Re: Y_Ini problem +rep if helped me -
friezakinght - 09.07.2014
So there would'nt be any running problems? I mean there will be no lag on the server or whatsoever?
Re: Y_Ini problem +rep if helped me -
Jack_Leslie - 09.07.2014
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.
Re: Y_Ini problem +rep if helped me -
friezakinght - 09.07.2014
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
Re: Y_Ini problem +rep if helped me -
Jack_Leslie - 09.07.2014
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.
Re: Y_Ini problem +rep if helped me -
friezakinght - 09.07.2014
And you mean it would take more time to process a command ?
Re: Y_Ini problem +rep if helped me -
Jack_Leslie - 09.07.2014
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.
Re: Y_Ini problem +rep if helped me -
friezakinght - 09.07.2014
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!