Quote:
Originally Posted by Dolpin
Jonathan Faзa teus prуprios testes.
pawn Код:
// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT
#include <a_samp>
public OnGameModeInit() { new Contador = GetTickCount(); for(new a; a < 10000; a++) { for(new i = 0; i < MAX_PLAYERS; i++) {
} } printf("[MAX_PLAYERS]: Vezes 10000 || Tempo: %d ms", (GetTickCount() - Contador)); new ContadorB = GetTickCount(); for(new b; b < 10000; b++) { for(new f = 0, j = GetMaxPlayers(); f < j; f++) { } } printf("[GetMaxPlayers]: Vezes 10000 || Tempo: %d ms", (GetTickCount() - ContadorB)); return 1; }
public OnGameModeExit() { return 1; }
192 MS - MAX PLAYERS
26 MS - GetMaxPlayers
Teste e comprove.
Sу lembrando Jonathan aquele tуpico й de 2011 a 3 Anos atrбs.
|
Ta a testar com quantos slots
se forem 50 faзa dps da include a_samp
pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS 50
porque fazer uma comparacao que o GetMaxPlayers se tiver a usar como valor 50 slot e o MAX_PLAYERS 500 e normal ter esses valores.
Quote:
Originally Posted by Dolpin
aquele tуpico й de 2011 a 3 Anos atrбs.
|
ja a 3 anos que o povo continua a insistir com coisas erradas. Ve se para de uma vez que voce esta totalmente errado.