[Ajuda] Performance de todos os comandos
#6

Jб consegui fazer assim:

Код:
public OnPlayerCommandReceived(playerid,cmdtext[]) // This callback is called before the actual command function is called.
{
	if(DebugStatus[playerid] == true)
	{
 		tickbefore = GetTickCount();
	}
    
	return CMD_SUCCESS;
}
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) // This callback is called after the command function is executed.
{
	if(DebugStatus[playerid] == true)
	{
		new stringcmd[128];

		tickafter = GetTickCount();

		format(stringcmd, sizeof(stringcmd), "[DEBUG:] {FFFFFF}Comando executado em %d ms", tickafter-tickbefore);
		SendClientMessage(playerid, COLOR_RED, stringcmd);
	}

    return CMD_SUCCESS;
}
Reply


Messages In This Thread
Performance de todos os comandos - by bruxo00 - 27.03.2016, 02:36
Re: Performance de todos os comandos - by Lуs - 27.03.2016, 02:59
Re: Performance de todos os comandos - by Dayvison_ - 27.03.2016, 03:46
Re: Performance de todos os comandos - by bruxo00 - 27.03.2016, 10:19
Re: Performance de todos os comandos - by LiiPe - 27.03.2016, 17:32
Re: Performance de todos os comandos - by bruxo00 - 27.03.2016, 18:58

Forum Jump:


Users browsing this thread: 2 Guest(s)