[Ajuda] Servidor lento
#14

Quote:
Originally Posted by TenhoUmaDuvida
View Post
hm, Obrigado.
Certo, mas caso tenha um timer por jogador, vocк deverб usar KillTimer quando ele desconectar-se.
Exemplo:
Code:
#include <a_samp>
new Timer1[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
	Timer1[playerid] = SetTimerEx("Timer", 5000, true, "i", playerid);
	return 1;
}

public OnPlayerDisconnect(playerid)
{
	KillTimer(Timer1[playerid]);
	return 1;
}
#Edit, como xCR7 mencionou, isto vale apenas se o timer tiver repetiзгo.
Reply


Messages In This Thread
Servidor lento - by #Luca[S]. - 28.02.2015, 00:59
Re: Servidor lento - by arakuta - 28.02.2015, 01:05
Re: Servidor lento - by #Luca[S]. - 28.02.2015, 01:06
Re: Servidor lento - by arakuta - 28.02.2015, 01:09
Re: Servidor lento - by Nenzittow - 28.02.2015, 01:09
Re: Servidor lento - by #Luca[S]. - 28.02.2015, 01:13
Re: Servidor lento - by PlayNob - 28.02.2015, 01:16
Re: Servidor lento - by #Luca[S]. - 28.02.2015, 01:21
Re: Servidor lento - by PlayNob - 28.02.2015, 01:21
Re: Servidor lento - by #Luca[S]. - 28.02.2015, 01:36
Re: Servidor lento - by awoo - 28.02.2015, 01:39
Re: Servidor lento - by #Luca[S]. - 28.02.2015, 01:42
Re: Servidor lento - by ipsLuan - 28.02.2015, 01:43
Re: Servidor lento - by awoo - 28.02.2015, 01:46
Re: Servidor lento - by #Luca[S]. - 28.02.2015, 02:10
Re: Servidor lento - by awoo - 28.02.2015, 02:14
Re: Servidor lento - by #Luca[S]. - 28.02.2015, 02:32
Re: Servidor lento - by Jimmmy - 28.02.2015, 03:18
Re: Servidor lento - by #Luca[S]. - 28.02.2015, 03:25
Re: Servidor lento - by Jimmmy - 28.02.2015, 03:33
Re: Servidor lento - by #Luca[S]. - 28.02.2015, 03:38
Re: Servidor lento - by ZeZin - 28.02.2015, 04:04
Re: Servidor lento - by #Luca[S]. - 28.02.2015, 04:46
Re: Servidor lento - by PT - 28.02.2015, 07:07
Re: Servidor lento - by ProKillerpa - 28.02.2015, 14:41

Forum Jump:


Users browsing this thread: 1 Guest(s)