[Ajuda] Lag em interiores!
#1

Bom, este code estб errado? mal identado? Porque quando seta a cadeia pro player e a posiзгo, fica travando muito.. Se alguem quiser dar dicar ou informar o motivo do lag (Nгo acho que seja o pc xD)


OBS: o mesmo acontece as vezes em pickup, nгo sei o que poder ser!


PHP код:
CMD:prender(playeridparams[])
{
    new 
TempoMotivo[70];
    if(
PlayerDados[playerid][Admin] < 3) return SendClientMessage(playeridBRANCO"Vocк precisa ser admin nivel 3 para usar este comando!");
    if(
sscanf(params"uis"IDTempoMotivo)) return SendClientMessage(playeridCINZA"[LL ADMIN] Use /prender [ID] [Tempo] [Motivo]"), SendClientMessage(playeridCINZA"Use o comando para prender um jogador na cadeia");
    if(!
IsPlayerConnected(ID)) return SendClientMessage(playeridBRANCO"[ERRO] ID invalido");
    
format(Stringsizeof(String), "[INFO] O Admin {1B95E0}%s{00C2EC} Prendeu {1B95E0}%s{00C2EC} por %d Minutos.Motivo: %s\r"Nome(playerid), Nome(ID), TempoMotivo);
    
SendClientMessageToAll(AZUL_CLAROString);
    
EscreverLog("LLADMIN/Logs/Presos.log"String);
    
SetPlayerPos(playerid,  264.6288,77.5742,1001.0391);
    
SetPlayerInterior(playerid6);
    
PlayerDados[ID][Preso] = Tempo*60;
    
TimerPreso SetTimerEx("TempoPreso"1000true"i"playerid);
    return 
1;

Reply


Messages In This Thread
Lag em interiores! - by DarkZin - 25.01.2017, 01:08
Re: Lag em interiores! - by TheBob - 25.01.2017, 02:06
Re: Lag em interiores! - by DarkZin - 25.01.2017, 02:25
Re: Lag em interiores! - by TheBob - 25.01.2017, 02:27
Re: Lag em interiores! - by DarkZin - 25.01.2017, 11:26
Programando e Relaxando - by RazorGuigo - 25.01.2017, 11:31
Re: Programando e Relaxando - by TheBob - 25.01.2017, 11:42
Re: Lag em interiores! - by G4M30V3R - 25.01.2017, 11:47
Re to BOB - by RazorGuigo - 25.01.2017, 12:06
Re: Re to BOB - by DarkZin - 25.01.2017, 12:52

Forum Jump:


Users browsing this thread: 1 Guest(s)