Posts: 603
Threads: 56
Joined: Jan 2018
Quote:
Originally Posted by SpikeCompiler
Mano, nгo й questгo de o cуdigo funcionar, porйm a otimizaзгo й essencial, oque vocк estб falando й a mesma coisa que eu fazer:
1-
PHP Code:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
return 1;
}
2 -
PHP Code:
LimparChat(playerid, linhas){for(new b = 0; b <= linhas; b++) SendClientMessage(playerid,-1, " ");}
public OnPlayerConnect(playerid)
{
LimparChat(playerid, 100) //100 = nъmeros de linhas a ser limpas no chat.
return 1;
}
Qual й mais otimizado? os dois cуdigos tem as mesmas funзхes.
@TOPIC:
Bom Filterscript, +REP.
|
Ainda nao percebi essa Noia de Otimizaзao e fazer os bagulho desde que compile e nao bugue e dei-a erros jб estб '-' essa coisa de otimizaзao me irrita ksks #EterNuEspaikeMorreuNoEdenScavenge'-'TeamIsWinner