[Ajuda] Server caindo
#1

Ola galera meu server esta caindo me recomendaram o crash detect asssim que caiu fui ver os logs tinha o seguinte resultando
Код:
 
[23:40:09] [debug] Server crashed while executing FV.amx
[23:40:09] [debug] AMX backtrace:
[23:40:09] [debug] #0 0000004b in ?? (32, 65, 84, 69, 32, 65, 77, 65, 78, 72, ... <8 arguments>) from FV.amx
[23:40:09] [debug] #1 0000004b in public cmd_kick () from FV.amx
[23:40:09] [debug] #2 native CallLocalFunction () from samp03svr
[23:40:09] [debug] #3 00005960 in public OnPlayerCommandText (5, 2722520) from FV.amx
alguem pode me ajudar?
Reply
#2

Talvez seja algo no seu comando kick ou na callback OnPlayerCommandText.
Reply
#3

Eu nao tenho a public OnPlayerCommandText no meu gm, todos os comandos estao em zcmd.

/kick

Код:
CMD:kick(playerid, params[])
{
	new id,motivo[20];
	if(!(Player[playerid][pAdmin] >= 1) && !(Player[playerid][pvip] >= 999)) return SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк nгo tem permissгo para usar este comando.");
   	if(sscanf(params,"us[128]",id,motivo)) return SendClientMessage(playerid, COR_ERRO,"Uso Correto: /kick [id]  [motivo]");
	if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COR_ERRO, "ERRO: Este jogador nгo estб conectado.");
	SendFormattedMessageToAll(COR_NEGATIVO, "INFO: %s foi kickado pelo %s %s | Motivo: %s", getPName(id), AccountName(playerid), getPName(playerid), motivo);
	Kick(id);
	SetTimerEx("TimerKick", 1000, 0, "i", playerid);
	return 1;
}
Reply
#4

Quote:

[23:40:09] [debug] #1 0000004b in public cmd_kick () from FV.amx

[23:40:09] [debug] #3 00005960 in public OnPlayerCommandText (5, 2722520) from FV.amx
posta o comando kick e a public OnPlayerCommandText desse filter FV

pq desse TimerKick ??
Reply
#5

o FV.amx e o gamemode e la nao tem a public OnPlayerCommandText porque eu tirei para usar so zcmd e esse timer kick era pra da um delay mais eu tirei por enquanto a verificacao de ja passou o tempo do delat
Reply
#6

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Reply
#7

Vocк criou a variбvel motivo com 20 caracteres, por quк estб usando como se estiver 128 na sscanf?
Reply
#8

agora ta caindo e aparecendo isso

quando caiu
Код:
[18:14:36] [debug] Server crashed while executing FV.amx
[18:14:36] [debug] AMX backtrace:
[18:14:36] [debug] #0 0000006e in ?? (32, 100, 101, 32, 116, 117, 100, 111, 0, 100, ... <17 arguments>) from FV.amx
[18:14:36] [debug] #1 0000006e in public cmd_prender () from FV.amx
[18:14:36] [debug] #2 native CallLocalFunction () from samp03svr
[18:14:36] [debug] #3 00005960 in public OnPlayerCommandText (3, 2722520) from FV.amx
// quando liguei
Код:
[18:17:31] [debug] Run time error 4: "Array index out of bounds"
[18:17:31] [debug]  Accessing element at index 1000 past array upper bound 999
[18:17:31] [debug] AMX backtrace:
[18:17:31] [debug] #0 00084a40 in ?? (3) from FV.amx
[18:17:31] [debug] #1 00019678 in public Streamer_OnPlayerDisconnect (3, 0) from FV.amx
[18:17:31] [debug] #2 0000b790 in public SSCANF_OnPlayerDisconnect (3, 0) from FV.amx
[18:17:31] [debug] #3 00005c2c in public OnPlayerDisconnect (3, 0) from FV.amx
[18:17:31] [debug] Run time error 4: "Array index out of bounds"
[18:17:31] [debug]  Accessing element at index 1000 past array upper bound 999
[18:17:31] [debug] AMX backtrace:
[18:17:31] [debug] #0 00084a40 in ?? (3) from FV.amx
[18:17:31] [debug] #1 00019678 in public Streamer_OnPlayerDisconnect (3, 0) from FV.amx
[18:17:31] [debug] #2 0000b790 in public SSCANF_OnPlayerDisconnect (3, 0) from FV.amx
[18:17:31] [debug] #3 00005c2c in public OnPlayerDisconnect (3, 0) from FV.amx
//to tentando resolver aqui acho que tem a ver com as celulas
Reply
#9

Deve ser as cйlulas, altere como eu falei acima, no comando de prender deve ter o mesmo erro.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)