Jump to content
  • 0

compilare


caltabos

Question

ba am un gm burned si nu am bagat chiar multe chestii in el, dar din ce in ce se compileaza mai greu!

Ultima data mi s-a compilat in 194 secunde, dar inainte mi se compila in cam 80-90 secunde si tot a crescut, am mai incercat sa sterg din linii dar degeaba!

Ce pot sa fac?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

 

Există multe variabile / matrice globale și toate valorile inițiale ale acestor variabile globale / celule în matrice sunt scrise la AMX atunci când sunt compilate.Pentru a optimiza sau a scurta în mod rezonabil matricele în funcție de nevoile reale ale serverului. De exemplu, dacă nu există 200 de jucători online (împreună cu bots), toate matricele care utilizează MAX_PLAYERS (egale cu 500) sunt folosite ca număr de elemente - înlocuiți cu 200,uite un exemplu
 

#if defined MAX_PLAYERS
  #undef MAX_PLAYERS
  #define MAX_PLAYERS 200
#endif

Poti sa mai incerci sa pui si pragme
 

#pragma compress 1

 

  • Like 2
Link to comment
Share on other sites

  • 0

Folosesti functii care stockeaza multe informatii de exemplu... sscanf foloseste foarte mult , eu folosesc mult sscanf deaceea imi urca pana la 15-16s compilarea (cu Sublime Text care este foarte rapid). La compilerul "original" dureaza mai mult de 20s. Pur si simplu ai prea multe chestii adaugate in GM care nu le-ai ordonat sau .. cum spuneam foloseste functii mult prea mari in prea multe parti.

Dimensiunile mele:

Untitled1.png

Untitled.png

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.