[Ajuda] Problema com adm
#1

Bom de um dia para o outro a minha GM ela esta com um bug
Quando eu dou adm para meu personagem, logo tudo ok, assim que digito a senha da administração o servidor desliga

Код:
[09:37:22] Servidor Ligado: [10/11/2016 09:37:22]
[09:37:22] =======================================================================
[09:37:23] Number of vehicle models: 98
[09:38:24] [connection]  requests connection cookie.
[09:38:25] [connection] incoming connection:  id: 0
[09:38:25] O player ID:0 com o ip:  está tentando conectar!
[09:38:28] [join] Fall_4i20 has joined the server (0:192.168.0.6)
[09:38:39] Nome do Arquivo: /SeifVehicle/PLAYER.cfg
[09:38:39] PLAYER logou no server.
[09:41:39] [part] PLAYER has left the server (0:1)
[09:42:31] [connection] 192.168.0.6:63857 requests connection cookie.
[09:42:32] [connection] incoming connection: 192.168.0.6:63857 id: 0
[09:42:32] O player ID:0 com o ip:  está tentando conectar!
[09:42:32] [join] PLAYER has joined the server (0:192.168.0.6)
[09:42:39] Nome do Arquivo: /SeifVehicle/PLAYER.cfg
[09:42:39] Fall_4i20 logou no server.
[09:42:52] [debug] Server crashed while executing BRL.amx
[09:42:52] [debug] AMX backtrace:
[09:42:52] [debug] #0 native SendClientMessage () from samp-server.exe
[09:42:52] [debug] #1 000ceb0c in public OnDialogResponse (0, 8913, 1, -1, 24032348) from GM.amx
[09:42:52] [debug] Native backtrace:
[09:42:52] [debug] #0 0049dc0c in ?? () from samp-server.exe
[09:42:52] [debug] Server crashed while executing BRL.amx
[09:42:52] [debug] AMX backtrace:
[09:42:52] [debug] #0 native SendClientMessage () from samp-server.exe
[09:42:52] [debug] #1 000ceb0c in public OnDialogResponse (0, 8913, 1, -1, 24032348) from GM.amx
[09:42:52] [debug] Native backtrace:
[09:42:52] [debug] #0 772b803d in ?? () from C:\WINDOWS\SYSTEM32\ntdll.dll
[09:42:52] [debug] #1 772b79ca in ?? () from C:\WINDOWS\SYSTEM32\ntdll.dll
[09:42:52] [debug] #2 00498e11 in ?? () from samp-server.exe
[09:42:52] [debug] #3 0044d9c9 in ?? () from samp-server.exe
[09:42:52] [debug] #4 0045856c in ?? () from samp-server.exe
[09:42:52] [debug] #5 0045ad2a in ?? () from samp-server.exe
[09:42:52] [debug] #6 72277c09 in ?? () from plugins\crashdetect.DLL
[09:42:52] [debug] #7 772ddd3c in ?? () from C:\WINDOWS\SYSTEM32\ntdll.dll
[09:42:52] [debug] #8 76deacb9 in ?? () from C:\WINDOWS\System32\KERNELBASE.dll
[09:42:52] [debug] #9 76deacd6 in ?? () from C:\WINDOWS\System32\KERNELBASE.dll
Agora a noite eu boto meu nick como ADM so que quando loga o ADM sai...
Já botei na props
Na GM etc...
Reply
#2

upppp
Reply
#3

Alguem ?
Reply
#4

Arquivo no diretуrio existe?
Quote:

/SeifVehicle/PLAYER.cfg

Reply
#5

Quote:
Originally Posted by F1N4L
Посмотреть сообщение
Arquivo no diretуrio existe?
Existe, esta em branco
Reply
#6

upppp
Reply
#7

Veja no OnDialogResponse se tem algum SendClientMessage como o exemplo abaixo!

Ex:
PHP код:
static
    
string[128]
format(stringsizeof(string) "Olб %s, tudo bem?");
SendClientMessage(playerid, -1string); 
obs: Mostre o cуdigo no OnDialogResponse em dialogid == 8913
Reply
#8

Quote:
Originally Posted by Glederson_dom
Посмотреть сообщение
Veja no OnDialogResponse se tem algum SendClientMessage como o exemplo abaixo!

Ex:
PHP код:
static
    
string[128]
format(stringsizeof(string) "Olб %s, tudo bem?");
SendClientMessage(playerid, -1string); 
obs: Mostre o cуdigo no OnDialogResponse em dialogid == 8913
Tem não

Код:
if(dialogid == 8913)
    {
    	if(response)
		{
     	    if(isnull(inputtext))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "Digite A Senha da Administração!");
				return ShowPlayerDialog(playerid,8913, DIALOG_STYLE_INPUT, "Senha Admin Real Live","Digite a Senha Corretamente da Administração Real Live","Confirmar","Cancelar");
			}
			if(Tentdono >= 3)
			{
			    Kick(playerid);
			}
			if(strcmp(Senhadono,inputtext, true) == 0)
  			{
			    SendClientMessage(playerid, VERDE2,"Senha Correta!! Bem Vindo %s !");
				return true;
			}
			else
			{
				SendClientMessage(playerid, COLOR_LIGHTRED, "A Senha está incorreta!");
				Tentdono++;
				return ShowPlayerDialog(playerid,8913, DIALOG_STYLE_INPUT, "Senha Admin Real Live","Digite a Senha Corretamente da Administração Real Live","Confirmar","Cancelar");
			}
        }
        else
        {
        	Kick(playerid);
         	return 1;
        }
    }
Reply
#9

Entгo veja se estб escrito como #define

ex:
PHP код:
#define LOGIN_ADMIN         (0)
if(dialogid == LOGIN_ADMIN)
{
    return 
true;

@edit

Mostre a parte onde verifica o login do administrador.
Reply
#10

Quote:
Originally Posted by GMVega
Посмотреть сообщение
Tem nгo

Код:
if(dialogid == 8913)
    {
    	if(response)
		{
     	    if(isnull(inputtext))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "Digite A Senha da Administraзгo!");
				return ShowPlayerDialog(playerid,8913, DIALOG_STYLE_INPUT, "Senha Admin Real Live","Digite a Senha Corretamente da Administraзгo Real Live","Confirmar","Cancelar");
			}
			if(Tentdono >= 3)
			{
			    Kick(playerid);
			}
			if(strcmp(Senhadono,inputtext, true) == 0)
  			{
			    SendClientMessage(playerid, VERDE2,"Senha Correta!! Bem Vindo %s !");
				return true;
			}
			else
			{
				SendClientMessage(playerid, COLOR_LIGHTRED, "A Senha estб incorreta!");
				Tentdono++;
				return ShowPlayerDialog(playerid,8913, DIALOG_STYLE_INPUT, "Senha Admin Real Live","Digite a Senha Corretamente da Administraзгo Real Live","Confirmar","Cancelar");
			}
        }
        else
        {
        	Kick(playerid);
         	return 1;
        }
    }
mude a parte destaca em vermelho por esta
PHP код:
static
                    
string[124], pName[MAX_PLAYER_NAME];
                
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
                
format(stringsizeof(string), "Senha Correta!! Bem Vindo %s !"pName);
                
SendClientMessage(playeridVERDE2string); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)