[Ajuda] Quando eu matar o jogador, o servidor desliga.
#1

Pessoal estou com um problema, quando um jogador morre no meu servidor, o sv ele desliga!.


Apareceu esses crash quando o jogador morre.

Quote:

--------------------------

SA-MP Server: 0.3.7-R2



Exception At Address: 0x0048DAD6 Module: (samp-server.exe)



Registers:

EAX: 0x0019F6FC EBX: 0x0388BDC4 ECX: 0x0019F70D EDX: 0x00470000

ESI: 0x00000000 EDI: 0x00470000 EBP: 0x038ED71C ESP: 0x0019F6F0

EFLAGS: 0x00010297



Stack:

+0000: 0x0264F170 0x03CFF198 0x0047AD48 0x00000000

+0010: 0x00000800 0x00000000 0x0019F70D 0x00000801

+0020: 0x00000000 0x0019F719 0x00FFFF01 0x0000FF00

+0030: 0x0072ECB0 0x00000000 0xF90005FC 0x00000020

+0040: 0x006508D0 0x0A802700 0x02000002 0x76F15C0C

+0050: 0xF90005FC 0x00000000 0x0019F870 0xFFFFFA10

+0060: 0x0019F7E4 0x00000004 0x0264F170 0x00000000

+0070: 0x0046D5D3 0x76EF92E9 0xA0313443 0x0000FFFF

+0080: 0x00000000 0x76EF92E9 0xA0313473 0x0000FFFF

+0090: 0x00000000 0x76EF92E9 0x76F467B0 0x0019F778

+00A0: 0x0019F7AC 0x0019FA18 0x76F467B0 0xA031345F

+00B0: 0xFFFFFFFE 0x0019F7CC 0x75A39E03 0x0000007F

+00C0: 0x00000000 0x75A2DE8F 0x0072F040 0x0264F170

+00D0: 0x000E000D 0x0072E1C0 0x00000000 0x0019F7E0

+00E0: 0x767BA214 0x6F6E0000 0x0072E1C0 0x6F6E36DE

+00F0: 0x0019F88C 0x6F6E36DE 0x6F6E0000 0x0072E1C0

+0100: 0x0264F170 0x0000002E 0x00000003 0x0000000C

+0110: 0x00000000 0x0000FFFF 0x000000FF 0x00000003

+0120: 0x0019FA18 0x004AB0FB 0xFFFFFFFF 0x00475956

+0130: 0x00470000 0x0264F170 0x004010B6 0x0264F170



--------------------------



Loaded Modules:

samp-server.exe A: 0x00400000 - 0x00519000 (C:\Users\petri\Desktop\Servidor\samp-server.exe)

ntdll.dll A: 0x76ED0000 - 0x77053000 (C:\WINDOWS\SYSTEM32\ntdll.dll)

KERNEL32.DLL A: 0x767A0000 - 0x76880000 (C:\WINDOWS\System32\KERNEL32.DLL)

KERNELBASE.dll A: 0x75970000 - 0x75B11000 (C:\WINDOWS\System32\KERNELBASE.dll)

SHELL32.dll A: 0x744B0000 - 0x75889000 (C:\WINDOWS\System32\SHELL32.dll)

msvcrt.dll A: 0x76430000 - 0x764EE000 (C:\WINDOWS\System32\msvcrt.dll)

cfgmgr32.dll A: 0x76270000 - 0x762A6000 (C:\WINDOWS\System32\cfgmgr32.dll)

windows.storage.dll A: 0x76880000 - 0x76DEE000 (C:\WINDOWS\System32\windows.storage.dll)

combase.dll A: 0x74040000 - 0x74251000 (C:\WINDOWS\System32\combase.dll)

ucrtbase.dll A: 0x75890000 - 0x75970000 (C:\WINDOWS\System32\ucrtbase.dll)

RPCRT4.dll A: 0x75B20000 - 0x75BE1000 (C:\WINDOWS\System32\RPCRT4.dll)

SspiCli.dll A: 0x738A0000 - 0x738BE000 (C:\WINDOWS\System32\SspiCli.dll)

CRYPTBASE.dll A: 0x73890000 - 0x7389A000 (C:\WINDOWS\System32\CRYPTBASE.dll)

bcryptPrimitives.dll A: 0x763A0000 - 0x763FA000 (C:\WINDOWS\System32\bcryptPrimitives.dll)

sechost.dll A: 0x74460000 - 0x744A1000 (C:\WINDOWS\System32\sechost.dll)

powrprof.dll A: 0x76E00000 - 0x76E45000 (C:\WINDOWS\System32\powrprof.dll)

advapi32.dll A: 0x74260000 - 0x742D7000 (C:\WINDOWS\System32\advapi32.dll)

shlwapi.dll A: 0x765B0000 - 0x765F6000 (C:\WINDOWS\System32\shlwapi.dll)

GDI32.dll A: 0x76400000 - 0x7642B000 (C:\WINDOWS\System32\GDI32.dll)

gdi32full.dll A: 0x75BF0000 - 0x75D4B000 (C:\WINDOWS\System32\gdi32full.dll)

USER32.dll A: 0x76640000 - 0x7679F000 (C:\WINDOWS\System32\USER32.dll)

win32u.dll A: 0x73A70000 - 0x73A85000 (C:\WINDOWS\System32\win32u.dll)

kernel.appcore.dll A: 0x742E0000 - 0x742ED000 (C:\WINDOWS\System32\kernel.appcore.dll)

shcore.dll A: 0x73E20000 - 0x73EA8000 (C:\WINDOWS\System32\shcore.dll)

profapi.dll A: 0x765A0000 - 0x765AF000 (C:\WINDOWS\System32\profapi.dll)

WSOCK32.dll A: 0x73860000 - 0x73868000 (C:\WINDOWS\SYSTEM32\WSOCK32.dll)

WS2_32.dll A: 0x738C0000 - 0x73923000 (C:\WINDOWS\System32\WS2_32.dll)

WINMM.dll A: 0x71240000 - 0x71264000 (C:\WINDOWS\SYSTEM32\WINMM.dll)

WINMMBASE.dll A: 0x71210000 - 0x71233000 (C:\WINDOWS\SYSTEM32\WINMMBASE.dll)

IMM32.DLL A: 0x76610000 - 0x76635000 (C:\WINDOWS\System32\IMM32.DLL)

streamer.DLL A: 0x6F6E0000 - 0x6F72C000 (C:\Users\petri\Desktop\Servidor\plugins\streamer. DLL)

MSVCP140.dll A: 0x6D920000 - 0x6D98D000 (C:\WINDOWS\SYSTEM32\MSVCP140.dll)

VCRUNTIME140.dll A: 0x6F6C0000 - 0x6F6D5000 (C:\WINDOWS\SYSTEM32\VCRUNTIME140.dll)

sscanf.DLL A: 0x10000000 - 0x1000F000 (C:\Users\petri\Desktop\Servidor\plugins\sscanf.DL L)

mswsock.dll A: 0x721C0000 - 0x7220E000 (C:\WINDOWS\system32\mswsock.dll)

napinsp.dll A: 0x6F460000 - 0x6F472000 (C:\WINDOWS\system32\napinsp.dll)

pnrpnsp.dll A: 0x6F440000 - 0x6F456000 (C:\WINDOWS\system32\pnrpnsp.dll)

NLAapi.dll A: 0x6F420000 - 0x6F434000 (C:\WINDOWS\system32\NLAapi.dll)

DNSAPI.dll A: 0x71270000 - 0x712EC000 (C:\WINDOWS\SYSTEM32\DNSAPI.dll)

NSI.dll A: 0x76600000 - 0x76607000 (C:\WINDOWS\System32\NSI.dll)

IPHLPAPI.DLL A: 0x72100000 - 0x7212F000 (C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL)

winrnr.dll A: 0x6F410000 - 0x6F41C000 (C:\WINDOWS\System32\winrnr.dll)

bcrypt.dll A: 0x736B0000 - 0x736CB000 (C:\WINDOWS\SYSTEM32\bcrypt.dll)

rasadhlp.dll A: 0x70120000 - 0x70128000 (C:\Windows\System32\rasadhlp.dll)

uxtheme.dll A: 0x73170000 - 0x731E5000 (C:\WINDOWS\system32\uxtheme.dll)

PROPSYS.dll A: 0x73020000 - 0x7316F000 (C:\WINDOWS\SYSTEM32\PROPSYS.dll)

OLEAUT32.dll A: 0x76500000 - 0x76594000 (C:\WINDOWS\System32\OLEAUT32.dll)

msvcp_win.dll A: 0x76E50000 - 0x76ECB000 (C:\WINDOWS\System32\msvcp_win.dll)

edputil.dll A: 0x6F680000 - 0x6F6BD000 (C:\WINDOWS\SYSTEM32\edputil.dll)

urlmon.dll A: 0x728F0000 - 0x72A84000 (C:\WINDOWS\SYSTEM32\urlmon.dll)

iertutil.dll A: 0x71E10000 - 0x72039000 (C:\WINDOWS\SYSTEM32\iertutil.dll)
Logs:

Quote:

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[21:06:17] filterscripts = "" (string)
[21:06:17]
[21:06:17] Server Plugins
[21:06:17] --------------
[21:06:17] Loading plugin: streamer
[21:06:17]

*** Streamer Plugin v2.8.2 by Incognito loaded ***

[21:06:17] Loaded.
[21:06:17] Loading plugin: sscanf
[21:06:17]

[21:06:17] ===============================

[21:06:17] sscanf plugin loaded.

[21:06:17] Version: 2.8.2

[21:06:17] © 2012 Alex "******" Cole

[21:06:17] ===============================

[21:06:17] Loaded.
[21:06:17] Loaded 2 plugins.

[21:06:17]
[21:06:17] Filterscripts
[21:06:17] ---------------
[21:06:17] Loaded 0 filterscripts.

[21:06:17]
[21:06:17]
[21:06:17]
[21:06:17] =======================================
[21:06:17] | |
[21:06:17] | YSI version 1.06.0002 |
[21:06:17] | By Alex "******" Cole |
[21:06:17] | |
[21:06:17] =======================================
[21:06:17]
[21:06:17]
---------------------------------------------------
[21:06:17] Gamemode Best Union Criado por Petrick Schoba - [Data 07/11/2013]
[21:06:17] ---------------------------------------------------

[21:06:17] Number of vehicle models: 25
[21:06:17] [connection] 127.0.0.1:49397 requests connection cookie.
[21:06:20]
[21:06:20] ==========================================
[21:06:20] | |
[21:06:20] | A new version (v3.09.0684) of YSI is |
[21:06:20] | available from: |
[21:06:20] | |
[21:06:20] | www.y-less.com/YSI/YSI_1.0.zip |
[21:06:20] | |
[21:06:20] | Changelog: |
[21:06:20] | |
[21:06:20] | 3.00.0000: |
[21:06:20] | |
[21:06:20] | YSI 3.0 released! Now includes the |
[21:06:20] | "y_text" library for better messages, |
[21:06:20] | and a reworked "y_classes" library. |
[21:06:20] | Largely documented here |
[21:06:20] | "http://forum.sa-mp.com/showthread.php |
[21:06:20] | ?t=321092". |
[21:06:20] | |
[21:06:20] | 3.01.0002: |
[21:06:20] | |
[21:06:20] | Small fixes to "y_text" and |
[21:06:20] | "y_classes". |
[21:06:20] | |
[21:06:20] | 3.09.0684: |
[21:06:20] | |
[21:06:20] | Reverted to old download location. |
[21:06:20] | Improved (and fixed) version checks; |
[21:06:20] | added y_bitmap, y_areas, y_races, |
[21:06:20] | y_zonenames, better documentation; |
[21:06:20] | MANY other bug fixes - see the github |
[21:06:20] | repository for more details: |
[21:06:20] | |
[21:06:20] ==========================================
[21:06:20]
[21:06:21] [connection] incoming connection: 127.0.0.1:59458 id: 0
[21:06:21] [join] PetrickPS has joined the server (0:127.0.0.1)
[21:06:34] - [13/3/2017] - EQUIPE: PetrickPS matou PetrickPS .

Onplayerdeath:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid,playerid,reason);
    if(JogadorLogado[playerid] == true)
    {  
        new Menu:Current = GetPlayerMenu(playerid);
        HideMenuForPlayer(Current, playerid);
        TogglePlayerControllable(playerid, true);      
        SendDeathMessage(killerid, playerid, reason);
        JogadorQMorreu[playerid] = true;
        if(Teste_Aerea[playerid] == 1 || Teste_Nautica[playerid] == 1 || Teste_Moto[playerid] == 1 || Teste_Carro[playerid] == 1 || Teste_Veiculos_De_Carga[playerid] == 1 || Teste_Veiculos_De_Passageiros[playerid] == 1)
        {
            SendClientMessage(playerid, 0x23B74FFF, ": AUTO ESCOLA : Vocк foi reprovado(a) do teste por morrer durante o percurso da auto escola.");
            DestroyVehicle(VAutoEscolaTeste[playerid]);
            DisablePlayerRaceCheckpoint(playerid)
            EtapaCNH[playerid] = 0;
            PontosCNH[playerid] = 0;
            Teste_Aerea[playerid] = 0;
            Teste_Nautica[playerid] = 0;
            Teste_Moto[playerid] = 0;
            Teste_Carro[playerid] = 0;
            Teste_Veiculos_De_Carga[playerid] = 0;
            Teste_Veiculos_De_Passageiros[playerid] = 0;
            Minutos_AutoEscola[playerid] = 0;
            Segundos_AutoEscola[playerid] = 0;
            DisableRemoteVehicleCollisions(playerid, 0);
            InfoCapacete[playerid] = false;
            CapaceteCOP[playerid] = false;
            RemovePlayerAttachedObject(playerid, Slot_Cabeca)
            TextDrawHideForPlayer(playerid, Box_Cronometro1[playerid]);
            TextDrawHideForPlayer(playerid, Box_Cronometro2[playerid]);
            TextDrawHideForPlayer(playerid, Letra_Cronometro[playerid]);
            TextDrawHideForPlayer(playerid, AutoEscola_Tempo_Cronometro[playerid]);
        }      
        if(OnFly[playerid] == true)
        {
            KillTimer(TempoAdmin[playerid]);
            OnFly[playerid] = false;
        }
        if(DormindoP[playerid] == 1)
        {
            DormindoP[playerid] = 0;
            fadeOut(playerid, 100, 0x000000FF);
        }
        else if(EscudoPolicial[playerid] == 1)
        {
            EscudoPolicial[playerid] = 0;
            RemovePlayerAttachedObject(playerid, Slot_Corpo);
        }          
        DisablePlayerRaceCheckpoint(playerid);
        DestroyDynamic3DTextLabel(PizzaBoy_Text[playerid]);
        DestroyDynamicPickup(PizzaBoy_Pickup[playerid]);
        entregando_pizzas[playerid] = false;
        InfoCapacete[playerid] = false;
        CapaceteCOP[playerid] = false;
        RemovePlayerAttachedObject(playerid, Slot_Cabeca)
        RemovePlayerAttachedObject(playerid, Slot_Olhos);  
        if(INFO_P[killerid][Profissao_P] == 3 || INFO_P[killerid][Profissao_P] == 4)
        {              
            if(INFO_P[playerid][Nivel_de_Procurado_P] == 0)
            {
                SendClientMessage(killerid, COR_CINZA, "•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
                SendClientMessage(killerid, 0xFFFFFFFF, "Vocк matou um(a) inocente que nгo tem nнvel de procurado e por isso vocк recebeu 1 strike.");
                SendClientMessage(killerid, 0xFFFFFFFF, "Se vocк matar 3 inocentes, vocк ficarб a disposiзгo de um Coronel, General ou a CGP (Corregedoria Geral de Policia).");
                SendClientMessage(killerid, 0xF9FF3CFF, "Vocк serб preso, o superior de sua profissгo irб averiguar seu caso e se possнvel poderб te exonerar da profissгo.");
                SendClientMessage(killerid, 0xF9FF3CFF, "Se vocк for exonerado ficarб 24 horas impossнbilitado de entrar em qualquer profissгo policial.");
                format(String,sizeof(String), "Seus Strikes: [%d/5]", INFO_P[killerid][Striker_P]);
                SendClientMessage(killerid, COR_AMARELO, String);
                INFO_P[killerid][Striker_P] += 1;                                  
                SendClientMessage(killerid, COR_CINZA, "•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••");
                format(String,sizeof(String), "Vocк foi morto(a) injustamente por "Laranja"[%s]%s"Branco", o caso sera investigado pela {41BDFF}Corregedoria Geral de Policia.", SiglaProf(killerid), Nome_Conta[killerid]);
                SendClientMessage(playerid, 0xF9FF3CFF , String);  
            }
            else if(INFO_P[playerid][Nivel_de_Procurado_P] > 0)
            {
                TempoAdmin[playerid] = SetTimerEx("EstadoAdmin", 1000, 1, "i", playerid);
                if(DormindoP[playerid] == 1)
                {
                    DormindoP[playerid] = 0;
                    fadeOut(playerid, 100, 0x000000FF);
                }
                TextDrawShowForPlayer(playerid, Box_Cronometro1[playerid]);
                TextDrawShowForPlayer(playerid, Box_Cronometro2[playerid]);
                TextDrawShowForPlayer(playerid, Letra_Cronometro[playerid]);
                TextDrawShowForPlayer(playerid, Cadeia_Tempo_Cronometro[playerid]);
                DisablePlayerRaceCheckpoint(playerid);
                DestroyDynamic3DTextLabel(PizzaBoy_Text[playerid]);
                DestroyDynamicPickup(PizzaBoy_Pickup[playerid]);
                entregando_pizzas[playerid] = false;
                InfoCapacete[playerid] = false;
                CapaceteCOP[playerid] = false;
                EscudoPolicial[playerid] = 0;
                Bateu_Ponto[playerid] = false;
                RemovePlayerAttachedObject(playerid, Slot_Cabeca);
                RemovePlayerAttachedObject(playerid, Slot_Olhos);
                RemovePlayerAttachedObject(playerid, Bolsapizza0);
                RemovePlayerAttachedObject(playerid, Bolsapizza1);
                RemovePlayerAttachedObject(playerid, Bolsapizza2);
                RemovePlayerAttachedObject(playerid, Bolsapizza3);
                RemovePlayerAttachedObject(playerid, Bolsapizza4);
                RemovePlayerAttachedObject(playerid, Bolsapizza5);
                RemovePlayerAttachedObject(playerid, Slot_Corpo);
                SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
                RemovePlayerAttachedObject(playerid, Slot_Maos);     
                Quem_algemou[ID_2PESSOA] = 9999;          
                ResetPlayerWeapons(playerid);
                SetPlayerInterior(playerid, 6);
                new randPresoDP = random(sizeof(SpawnPresoDP));
                SetPlayerPos(playerid, SpawnPresoDP[randPresoDP][0], SpawnPresoDP[randPresoDP][1], SpawnPresoDP[randPresoDP][2]);
                SetPlayerFacingAngle(playerid, SpawnPresoDP[randPresoDP][3]);

                format(STG,sizeof(STG), ": BENEFНCIO : Vocк recebeu $%d de comissгo por matar o(a) criminoso(a) %s.",  INFO_P[ID_2PESSOA][Nivel_de_Procurado_P] * 25,  Nome_Conta[playerid]);
                SendClientMessage(killerid, 0x3299CCFF , STG);

                format(String, sizeof(String), "~g~+$%d", INFO_P[ID_2PESSOA][Nivel_de_Procurado_P] * 25);
                GameTextForPlayer(killerid, String, 2000, 1);          

                INFO_P[killerid][Dinheiro_do_Jogador_P] += INFO_P[playerid][Nivel_de_Procurado_P] * 25;

                INFO_P[playerid][Quantidade_de_Minutos_Preso_P] = INFO_P[playerid][Nivel_de_Procurado_P] * 5;    
                INFO_P[playerid][Matou_Foragidos_P] += 1;
                INFO_P[playerid][Jogador_Preso_P] = 1;
                INFO_P[playerid][Local_Preso_P] = 1;
                INFO_P[playerid][Nivel_de_Procurado_P] = 0;
                Cores_jogadores(playerid);
                SkinsJogadores(playerid);
                Salvar_Contas(playerid);
                Salvar_Contas(killerid);
               
                format(String,sizeof(String), ": AVISO : Vocк foi morto(a) e preso(a) pelo(a) policial [%s]%s.", SiglaProf(killerid), Nome_Conta[killerid]);
                SendClientMessage(playerid, 0x3299CCFF, String);                   
            }                                                              
        }
        else
        {
            Setar_Crime(killerid, 999, "Homicнdio");
            INFO_P[killerid][HO_P] += 1;
            INFO_P[killerid][Nivel_de_Procurado_P] += 4;
            SendClientMessage(killerid, COR_BRANCO, ": CRIME : Vocк recebeu {FF2121}4 {FFFFFF}nнvel de procurado por {FFBD21}Homicнdio{FFFFFF}, Denunciante: {21FFF1}Cвmeras de Seguranзa{FFFFFF}.");      
            format(STG, sizeof(STG), ": PROCURADO : Nнvel de Procurado: %d", INFO_P[ID_2PESSOA][Nivel_de_Procurado_P]);
            SendClientMessage(killerid, 0xF7FF00FF, STG);
            Salvar_Contas(killerid);
        }
    }
    return true;
}
Reply
#2

Faзa um check sobre as funзoes que precisam de 'killerid'

Код:
if(killerid != INVALID_PLAYER_ID)
Reply
#3

Quote:
Originally Posted by Troydere
Посмотреть сообщение
Faзa um check sobre as funзoes que precisam de 'killerid'

Код:
if(killerid != INVALID_PLAYER_ID)
Achei o problema, era o meu sistema de tunagem no onplayerdeath. Obrigado
Removi isso e agora parou de desligar!

pawn Код:
new Menu:Current = GetPlayerMenu(playerid);
        HideMenuForPlayer(Current, playerid);
        TogglePlayerControllable(playerid, true);
Reply
#4

Petrick chama eu no skype ai.
Tб na descriзгo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)