Portal SAMP
[Ajuda] VOIP crash - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] VOIP crash (/showthread.php?tid=4756)

Páginas: 1 2


VOIP crash - welmateus - 06/05/2024

Galera, to usando a versão 3.0 do sampvoice, porém ele depois de alguns gmx ao apertar a tecla para falar, o servidor crasha

SERVERLOG
Código:
[19:41:49] [debug] Server crashed due to an unknown error
[19:41:49] [debug] Native backtrace:
[19:41:49] [debug] #0 00401c84 in ?? () in samp-server.exe
[19:41:49] [debug] #1 73dc1ec1 in ?? () in plugins\sampvoice.DLL
[19:41:49] [debug] #2 00469a66 in ?? () in samp-server.exe
[19:41:49] [debug] #3 0048d4db in ?? () in samp-server.exe
[19:41:49] [debug] #4 0049b4a1 in ?? () in samp-server.exe
[19:41:49] [debug] #5 0049b4b1 in ?? () in samp-server.exe
[19:41:49] [debug] Registers:
Obs: não uso o pawnraknet


RE: VOIP crash - xbruno1000x - 06/05/2024

Pawno -> Build -> Run Options. Na terceira opção "with these parameters" você adiciona " -d3 ". O parâmetro -d3 permite que o debug do crashdetect seja mais detalhado.


RE: VOIP crash - welmateus - 06/05/2024

(06/05/2024 20:02)xbruno1000x Escreveu: Pawno -> Build -> Run Options. Na terceira opção "with these parameters" você adiciona " -d3 ". O parâmetro -d3 permite que o debug do crashdetect seja mais detalhado.

opa, ja está, porém no momento que aperto o botão pra falar só aparece isso
Código:
[19:41:46] [debug] #5 0042d030 in public SalvarContaP (playerid=0) at C:\Users\Administrator\Downloads\GM New Generation RP 1.0\gamemodes\GRP.pwn:23938
[19:41:49] [debug] Server crashed due to an unknown error
[19:41:49] [debug] Native backtrace:
[19:41:49] [debug] #0 00401c84 in ?? () in samp-server.exe
[19:41:49] [debug] #1 73dc1ec1 in ?? () in plugins\sampvoice.DLL
[19:41:49] [debug] #2 00469a66 in ?? () in samp-server.exe
[19:41:49] [debug] #3 0048d4db in ?? () in samp-server.exe
[19:41:49] [debug] #4 0049b4a1 in ?? () in samp-server.exe
[19:41:49] [debug] #5 0049b4b1 in ?? () in samp-server.exe
[19:41:49] [debug] Registers:
[19:41:49] [debug] EAX: 00000042 EBX: 00000042 ECX: 7d423830 EDX: 6178695d
[19:41:49] [debug] ESI: 61786961 EDI: 26e2b858 EBP: 0018fe10 ESP: 0018fdc8
[19:41:49] [debug] EIP: 00401c84 EFLAGS: 00010202
[19:41:49] [debug] Stack:
[19:41:49] [debug] ESP+00000000: 26e2b848 73dc1e46 24d73128 00000042
[19:41:49] [debug] ESP+00000020: 270618a8 27061758 5e62661c 01cf8f80
[19:41:49] [debug] ESP+00000040: 25eef910 00dc1eba 0018fe24 73dc1ec1
[19:41:49] [debug] ESP+00000060: 00469a66 756c72d8 756c72a8 0048d4db
[19:41:49] [debug] ESP+00000080: 0000401c 00010101 000000c8 00001e61
[19:41:49] [debug] ESP+000000a0: 65646f6d 00003531 004c4020 004c401c
[19:41:49] [debug] ESP+000000c0: 0018ff78 0049d208 004ba2f8 ffffffff
[19:41:49] [debug] ESP+000000e0: 004ab0e1 ffffffff 0049cca6 00000001
[19:41:49] [debug] ESP+00000100: 00000002 000023f0 00000002 00000000
[19:41:49] [debug] ESP+00000120: 00000000 00000000 00000000 00000000
[19:41:49] [debug] ESP+00000140: 00000000 00000000 00007ffd 337963bb
[19:41:49] [debug] ESP+00000160: 00000000 00000000 00000000 fc224bf0
[19:41:49] [debug] ESP+00000180: 00007ffd 00000002 0049cb52 0049cb3a
[19:41:49] [debug] ESP+000001a0: c0000005 00000000 0018fec0 0018f804
[19:41:49] [debug] ESP+000001c0: 0018ff94 756b919f 7ffde000 0018ffdc
[19:41:49] [debug] ESP+000001e0: 00000000 7ffde000 00007ffd 00000010
[19:41:49] [debug] ESP+00000200: 00000000 0018ffe4 771a74a0 ceab091c
[19:41:49] [debug] ESP+00000220: 771500be 00000000 00000000 0049cb3a
[19:41:49] [debug] ESP+00000240: 00000001 0000330c 000000dc 00000000
[19:41:49] [debug] ESP+00000260: 00000007 00000034 0000017c 00000001
[19:41:49] [debug] ESP+00000280: 00000000 00000002 1a26ef4e 00000298
[19:41:49] [debug] ESP+000002a0: f33271ba 00000540 0000004a 0000058c
[19:41:49] [debug] ESP+000002c0: 00000032 000008e0 00000300 00000000
[19:41:49] [debug] ESP+000002e0: 00000336 00000000 38505fc8 00000f5c
[19:41:49] [debug] ESP+00000300: b1280544 00001324 00000056 0000137c
[19:41:49] [debug] ESP+00000320: 00000002 00000001 0000017c 000015d0
[19:41:49] [debug] ESP+00000340: 00000001 00000003 00001eec 00000e8c
[19:41:49] [debug] ESP+00000360: 00000002 00000005 0000308c 00000098
[19:41:49] [debug] ESP+00000380: 00000002 00000007 000031f0 000000f0
[19:41:49] [debug] ESP+000003a0: 00000002 0000000b 00003308 00000004
[19:41:49] [debug] ESP+000003c0: 00000001 00000001 00000006 0000008c
[19:41:49] [debug] ESP+000003e0: 0000005e 00000000 00000000 00000000



RE: VOIP crash - xbruno1000x - 06/05/2024

[19:41:46] [debug] #5 0042d030 in public SalvarContaP (playerid=0) at C:\Users\Administrator\Downloads\GM New Generation RP 1.0\gamemodes\GRP.pwn:23938

Esse debug que aparece é o #5. Cadê os outros 4?


RE: VOIP crash - welmateus - 06/05/2024

(06/05/2024 20:43)xbruno1000x Escreveu: [19:41:46] [debug] #5 0042d030 in public SalvarContaP (playerid=0) at C:\Users\Administrator\Downloads\GM New Generation RP 1.0\gamemodes\GRP.pwn:23938

Esse debug que aparece é o #5. Cadê os outros 4?

Código:
[19:41:46] [debug] #0 0002b01c in DOF2_ParseLine (line[]=@0018c090 "PosItem05 = 172.10017395", key[]=@0326653c "", value[]=@0326633c "", keysize=128, valuesize=128) at C:\Users\Administrator\Downloads\GM New Generation RP 1.0\pawno\include\DOF2.inc:1202
[19:41:46] [debug] #1 00027a8c in DOF2_SearchEntry (key[]=@0034340c "PosItem05", tag[]=@00309574 "", keybuf[]=@0326653c "", valbuf[]=@0326633c "", &pos=@03266740 0, keybufsize=128, valbufsize=128) at C:\Users\Administrator\Downloads\GM New Generation RP 1.0\pawno\include\DOF2.inc:519
[19:41:46] [debug] #2 00028700 in DOF2_SetString (file[]=@003092f4 "Acessorios/Wellington_Mateus.ini", key[]=@0034340c "PosItem05", value[]=@03266764 "172.10017395", tag[]=@00309574 "") at C:\Users\Administrator\Downloads\GM New Generation RP 1.0\pawno\include\DOF2.inc:582
[19:41:46] [debug] #3 000296d8 in DOF2_SetFloat (file[]=@003092f4 "Acessorios/Wellington_Mateus.ini", key[]=@0034340c "PosItem05", Float:value=172.10017, tag[]=@00309574 "") at C:\Users\Administrator\Downloads\GM New Generation RP 1.0\pawno\include\DOF2.inc:900
[19:41:46] [debug] #4 005034e4 in public SalvarDados (playerid=0) at C:\Users\Administrator\Downloads\GM New Generation RP 1.0\gamemodes\GRP.pwn:42289



RE: VOIP crash - BitSain - 06/05/2024

Não há problema no SAMPVOICE, quando o servidor crashou, puxou o crash do SAMPVOICE junto, mas como eu disse, não houve crash diretamente do SAMPVOICE

Nos envie a callback SalvarDados, o problema aparenta estar nessa callback..


RE: VOIP crash - welmateus - 06/05/2024

(06/05/2024 21:05)BitSain Escreveu: Não há problema no SAMPVOICE, quando o servidor crashou, puxou o crash do SAMPVOICE junto, mas como eu disse, não houve crash diretamente do SAMPVOICE

Nos envie a callback SalvarDados, o problema aparenta estar nessa callback..
Código:
CallBack:: SalvarDados(playerid)
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, Float:X, Float:Y, Float:Z);
    new Float:Xpc;
    GetPlayerArmour(playerid, Float:Xpc);
    if(PlayerInfo[playerid][Logado] == true)
    {
        format(arquivo, sizeof(arquivo), PASTA_CONTAS, PlayerName(playerid));
        if(DOF2_FileExists(arquivo))
        {
            DOF2_SetInt(arquivo, "Dinheiro", GetPlayerCash(playerid));
            DOF2_SetInt(arquivo, "Level", GetPlayerScore(playerid));
            DOF2_SetInt(arquivo, "Skin", PlayerInfo[playerid][Skin]);
            DOF2_SetInt(arquivo, "EstaNaGaragemID", EstaNaGaragemID[playerid]);
            DOF2_SetBool(arquivo, "Uniforme", Uniforme[playerid]);
            DOF2_SetBool(arquivo, "MochilaColocada", MochilaColocada[playerid]);
            DOF2_SetBool(arquivo, "EstaEmRota", EstaEmRota[playerid]);
            DOF2_SetInt(arquivo, "Sexo", PlayerInfo[playerid][Sexo]);
            DOF2_SetInt(arquivo, "TempoEmprego", PlayerInfo[playerid][TempoEmprego]);
            DOF2_SetInt(arquivo, "Admin", PlayerInfo[playerid][Admin]);
            DOF2_SetInt(arquivo, "Vip", PlayerInfo[playerid][Vip]);
            DOF2_SetInt(arquivo, "TempoVip", PlayerInfo[playerid][TempoVip]);
            DOF2_SetInt(arquivo, "Youtuber", PlayerInfo[playerid][Youtuber]);
            DOF2_SetInt(arquivo, "Profissao", PlayerInfo[playerid][Profissao]);
            DOF2_SetInt(arquivo, "HabilitacaoA", PlayerInfo[playerid][HabilitacaoA]);
            DOF2_SetInt(arquivo, "HabilitacaoB", PlayerInfo[playerid][HabilitacaoB]);
            DOF2_SetInt(arquivo, "HabilitacaoC", PlayerInfo[playerid][HabilitacaoC]);
            DOF2_SetInt(arquivo, "HabilitacaoD", PlayerInfo[playerid][HabilitacaoD]);
            DOF2_SetInt(arquivo, "Coins", PlayerInfo[playerid][Coins]);
            DOF2_SetInt(arquivo, "SaldoBancario", PlayerInfo[playerid][SaldoBancario]);
            DOF2_SetInt(arquivo, "ContaBanco", PlayerInfo[playerid][ContaBanco]);
            DOF2_SetInt(arquivo, "Interior", GetPlayerInterior(playerid));
            DOF2_SetInt(arquivo, "VirtualW", GetPlayerVirtualWorld(playerid));
            DOF2_SetInt(arquivo, "Empresa", PlayerInfo[playerid][Empresa]);
            DOF2_SetInt(arquivo, "Fome", PlayerInfo[playerid][Fome]);
            DOF2_SetInt(arquivo, "Sede", PlayerInfo[playerid][Sede]);
            DOF2_SetInt(arquivo, "Bexiga", PlayerInfo[playerid][Bexiga]);
            DOF2_SetInt(arquivo, "IDF", PlayerInfo[playerid][IDF]);
              DOF2_SetInt(arquivo, "FezRg", PlayerInfo[playerid][FezRg]);
            DOF2_SetInt(arquivo, "FezCarteira", PlayerInfo[playerid][FezCarteira]);
            DOF2_SetInt(arquivo, "LocalSP", PlayerInfo[playerid][LocalSP]);
            DOF2_SetInt(arquivo, "ExpMec", PlayerInfo[playerid][ExpMec]);
            DOF2_SetInt(arquivo, "FezPorte", PlayerInfo[playerid][FezPorte]);
            DOF2_SetInt(arquivo, "TemPlano", PlayerInfo[playerid][TemPlano]);
            DOF2_SetInt(arquivo, "TemJbl", PlayerInfo[playerid][TemJbl]);
            DOF2_SetInt(arquivo, "ModoAndar", PlayerInfo[playerid][ModoAndar]);
            DOF2_SetInt(arquivo, "Caixinha", PlayerInfo[playerid][Caixinha]);
            DOF2_SetInt(arquivo, "Mutado", PlayerInfo[playerid][Mutado]);
            DOF2_SetInt(arquivo, "MinutosMutado", PlayerInfo[playerid][MinutosMutado]);
            DOF2_SetFloat(arquivo, "HPColete", Xpc);
            DOF2_SetInt(arquivo, "Estrelas", GetPlayerWantedLevel(playerid));
            DOF2_SetInt(arquivo, "ConfigN", PlayerInfo[playerid][ConfigN]);
            DOF2_SetInt(arquivo, "ConfigNV", PlayerInfo[playerid][ConfigNV]);
            DOF2_SetInt(arquivo, "ConfigOOC", PlayerInfo[playerid][ConfigOOC]);
            DOF2_SetInt(arquivo, "RelogioPayday", PlayerInfo[playerid][RelogioPayday]);
            DOF2_SetInt(arquivo, "NumeroPayday", PlayerInfo[playerid][NumeroPayday]);
            DOF2_SetInt(arquivo, "MinutosPayday", PlayerInfo[playerid][MinutosPayday]);
            DOF2_SetInt(arquivo, "SegundosPayday", PlayerInfo[playerid][SegundosPayday]);
            DOF2_SetBool(arquivo, "Ferido", PlayerInfo[playerid][Ferido]);
            DOF2_SetInt(arquivo, "MinutosFerido", PlayerInfo[playerid][MinutosFerido]);
            DOF2_SetInt(arquivo, "SegundosFerido", PlayerInfo[playerid][SegundosFerido]);
            DOF2_SetInt(arquivo, "PlayerLuta", GetPlayerFightingStyle(playerid));
            DOF2_SetInt(arquivo, "OrgLider", PlayerInfo[playerid][OrgLider]);
            DOF2_SetInt(arquivo, "OrgSubLider", PlayerInfo[playerid][OrgSubLider]);
            DOF2_SetInt(arquivo, "OrgMembro", PlayerInfo[playerid][OrgMembro]);
            DOF2_SetInt(arquivo, "OrgCargo", PlayerInfo[playerid][OrgCargo]);
            DOF2_SetInt(arquivo, "Multas", PlayerInfo[playerid][Multas]);
            DOF2_SetInt(arquivo, "PresoHoras", PlayerInfo[playerid][PresoHoras]);
            DOF2_SetInt(arquivo, "PresoMinutos", PlayerInfo[playerid][PresoMinutos]);
            DOF2_SetInt(arquivo, "PresoSegundos", PlayerInfo[playerid][PresoSegundos]);
            DOF2_SetInt(arquivo, "MochilaBA", PlayerInfo[playerid][MochilaBA]);
            DOF2_SetBool(arquivo, "Preso", PlayerInfo[playerid][Preso]);
            DOF2_SetBool(arquivo, "Algemado", PlayerInfo[playerid][Algemado]);
            DOF2_SetInt(arquivo, "Estrelas", GetPlayerWantedLevel(playerid));
            DOF2_SetInt(arquivo, "Mochila", PlayerInfo[playerid][Mochila]);
            DOF2_SetInt(arquivo, "KitReparo", PlayerInfo[playerid][KitReparo]);
            DOF2_SetInt(arquivo, "Ferramentas", PlayerInfo[playerid][Ferramentas]);
            DOF2_SetInt(arquivo, "Chip", PlayerInfo[playerid][Chip]);
            DOF2_SetInt(arquivo, "Creditos", PlayerInfo[playerid][Creditos]);
            DOF2_SetBool(arquivo, "Celular", PlayerInfo[playerid][Celular]);
            DOF2_SetFloat(arquivo, "PosX", X);
            DOF2_SetFloat(arquivo, "PosY", Y);
            DOF2_SetFloat(arquivo, "PosZ", Z);

            DOF2_SetFloat(arquivo, "FeridoPosX", PlayerInfo[playerid][FeridoPosX]);
            DOF2_SetFloat(arquivo, "FeridoPosY", PlayerInfo[playerid][FeridoPosY]);
            DOF2_SetFloat(arquivo, "FeridoPosZ", PlayerInfo[playerid][FeridoPosZ]);
            DOF2_SaveFile();
        }
        format(arquivo, sizeof(arquivo), "Acessorios/%s.ini", PlayerName(playerid));
        if(DOF2_FileExists(arquivo))
        {
            for(new m; m < 6; m++)
            {
                 format(MT, sizeof(MT), "ModeloItem%d", m);
                DOF2_SetInt(arquivo, MT, ModeloItem[playerid][m]);

                format(MT, sizeof(MT), "OssoItem%d", m);
                DOF2_SetInt(arquivo, MT, OssoItem[playerid][m]);
                for(new o; o < 9; o++)
                {
                    format(MT, sizeof(MT), "PosItem%d%d", m, o);
                    DOF2_SetFloat(arquivo, MT, PosItem[playerid][m][o]);
                }
            }
        }
    }
    return 1;
}



RE: VOIP crash - BitSain - 06/05/2024

(06/05/2024 21:14)welmateus Escreveu:
(06/05/2024 21:05)BitSain Escreveu: Não há problema no SAMPVOICE, quando o servidor crashou, puxou o crash do SAMPVOICE junto, mas como eu disse, não houve crash diretamente do SAMPVOICE

Nos envie a callback SalvarDados, o problema aparenta estar nessa callback..
Código:
CallBack:: SalvarDados(playerid)
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, Float:X, Float:Y, Float:Z);
    new Float:Xpc;
    GetPlayerArmour(playerid, Float:Xpc);
    if(PlayerInfo[playerid][Logado] == true)
    {
        format(arquivo, sizeof(arquivo), PASTA_CONTAS, PlayerName(playerid));
        if(DOF2_FileExists(arquivo))
        {
            DOF2_SetInt(arquivo, "Dinheiro", GetPlayerCash(playerid));
            DOF2_SetInt(arquivo, "Level", GetPlayerScore(playerid));
            DOF2_SetInt(arquivo, "Skin", PlayerInfo[playerid][Skin]);
            DOF2_SetInt(arquivo, "EstaNaGaragemID", EstaNaGaragemID[playerid]);
            DOF2_SetBool(arquivo, "Uniforme", Uniforme[playerid]);
            DOF2_SetBool(arquivo, "MochilaColocada", MochilaColocada[playerid]);
            DOF2_SetBool(arquivo, "EstaEmRota", EstaEmRota[playerid]);
            DOF2_SetInt(arquivo, "Sexo", PlayerInfo[playerid][Sexo]);
            DOF2_SetInt(arquivo, "TempoEmprego", PlayerInfo[playerid][TempoEmprego]);
            DOF2_SetInt(arquivo, "Admin", PlayerInfo[playerid][Admin]);
            DOF2_SetInt(arquivo, "Vip", PlayerInfo[playerid][Vip]);
            DOF2_SetInt(arquivo, "TempoVip", PlayerInfo[playerid][TempoVip]);
            DOF2_SetInt(arquivo, "Youtuber", PlayerInfo[playerid][Youtuber]);
            DOF2_SetInt(arquivo, "Profissao", PlayerInfo[playerid][Profissao]);
            DOF2_SetInt(arquivo, "HabilitacaoA", PlayerInfo[playerid][HabilitacaoA]);
            DOF2_SetInt(arquivo, "HabilitacaoB", PlayerInfo[playerid][HabilitacaoB]);
            DOF2_SetInt(arquivo, "HabilitacaoC", PlayerInfo[playerid][HabilitacaoC]);
            DOF2_SetInt(arquivo, "HabilitacaoD", PlayerInfo[playerid][HabilitacaoD]);
            DOF2_SetInt(arquivo, "Coins", PlayerInfo[playerid][Coins]);
            DOF2_SetInt(arquivo, "SaldoBancario", PlayerInfo[playerid][SaldoBancario]);
            DOF2_SetInt(arquivo, "ContaBanco", PlayerInfo[playerid][ContaBanco]);
            DOF2_SetInt(arquivo, "Interior", GetPlayerInterior(playerid));
            DOF2_SetInt(arquivo, "VirtualW", GetPlayerVirtualWorld(playerid));
            DOF2_SetInt(arquivo, "Empresa", PlayerInfo[playerid][Empresa]);
            DOF2_SetInt(arquivo, "Fome", PlayerInfo[playerid][Fome]);
            DOF2_SetInt(arquivo, "Sede", PlayerInfo[playerid][Sede]);
            DOF2_SetInt(arquivo, "Bexiga", PlayerInfo[playerid][Bexiga]);
            DOF2_SetInt(arquivo, "IDF", PlayerInfo[playerid][IDF]);
              DOF2_SetInt(arquivo, "FezRg", PlayerInfo[playerid][FezRg]);
            DOF2_SetInt(arquivo, "FezCarteira", PlayerInfo[playerid][FezCarteira]);
            DOF2_SetInt(arquivo, "LocalSP", PlayerInfo[playerid][LocalSP]);
            DOF2_SetInt(arquivo, "ExpMec", PlayerInfo[playerid][ExpMec]);
            DOF2_SetInt(arquivo, "FezPorte", PlayerInfo[playerid][FezPorte]);
            DOF2_SetInt(arquivo, "TemPlano", PlayerInfo[playerid][TemPlano]);
            DOF2_SetInt(arquivo, "TemJbl", PlayerInfo[playerid][TemJbl]);
            DOF2_SetInt(arquivo, "ModoAndar", PlayerInfo[playerid][ModoAndar]);
            DOF2_SetInt(arquivo, "Caixinha", PlayerInfo[playerid][Caixinha]);
            DOF2_SetInt(arquivo, "Mutado", PlayerInfo[playerid][Mutado]);
            DOF2_SetInt(arquivo, "MinutosMutado", PlayerInfo[playerid][MinutosMutado]);
            DOF2_SetFloat(arquivo, "HPColete", Xpc);
            DOF2_SetInt(arquivo, "Estrelas", GetPlayerWantedLevel(playerid));
            DOF2_SetInt(arquivo, "ConfigN", PlayerInfo[playerid][ConfigN]);
            DOF2_SetInt(arquivo, "ConfigNV", PlayerInfo[playerid][ConfigNV]);
            DOF2_SetInt(arquivo, "ConfigOOC", PlayerInfo[playerid][ConfigOOC]);
            DOF2_SetInt(arquivo, "RelogioPayday", PlayerInfo[playerid][RelogioPayday]);
            DOF2_SetInt(arquivo, "NumeroPayday", PlayerInfo[playerid][NumeroPayday]);
            DOF2_SetInt(arquivo, "MinutosPayday", PlayerInfo[playerid][MinutosPayday]);
            DOF2_SetInt(arquivo, "SegundosPayday", PlayerInfo[playerid][SegundosPayday]);
            DOF2_SetBool(arquivo, "Ferido", PlayerInfo[playerid][Ferido]);
            DOF2_SetInt(arquivo, "MinutosFerido", PlayerInfo[playerid][MinutosFerido]);
            DOF2_SetInt(arquivo, "SegundosFerido", PlayerInfo[playerid][SegundosFerido]);
            DOF2_SetInt(arquivo, "PlayerLuta", GetPlayerFightingStyle(playerid));
            DOF2_SetInt(arquivo, "OrgLider", PlayerInfo[playerid][OrgLider]);
            DOF2_SetInt(arquivo, "OrgSubLider", PlayerInfo[playerid][OrgSubLider]);
            DOF2_SetInt(arquivo, "OrgMembro", PlayerInfo[playerid][OrgMembro]);
            DOF2_SetInt(arquivo, "OrgCargo", PlayerInfo[playerid][OrgCargo]);
            DOF2_SetInt(arquivo, "Multas", PlayerInfo[playerid][Multas]);
            DOF2_SetInt(arquivo, "PresoHoras", PlayerInfo[playerid][PresoHoras]);
            DOF2_SetInt(arquivo, "PresoMinutos", PlayerInfo[playerid][PresoMinutos]);
            DOF2_SetInt(arquivo, "PresoSegundos", PlayerInfo[playerid][PresoSegundos]);
            DOF2_SetInt(arquivo, "MochilaBA", PlayerInfo[playerid][MochilaBA]);
            DOF2_SetBool(arquivo, "Preso", PlayerInfo[playerid][Preso]);
            DOF2_SetBool(arquivo, "Algemado", PlayerInfo[playerid][Algemado]);
            DOF2_SetInt(arquivo, "Estrelas", GetPlayerWantedLevel(playerid));
            DOF2_SetInt(arquivo, "Mochila", PlayerInfo[playerid][Mochila]);
            DOF2_SetInt(arquivo, "KitReparo", PlayerInfo[playerid][KitReparo]);
            DOF2_SetInt(arquivo, "Ferramentas", PlayerInfo[playerid][Ferramentas]);
            DOF2_SetInt(arquivo, "Chip", PlayerInfo[playerid][Chip]);
            DOF2_SetInt(arquivo, "Creditos", PlayerInfo[playerid][Creditos]);
            DOF2_SetBool(arquivo, "Celular", PlayerInfo[playerid][Celular]);
            DOF2_SetFloat(arquivo, "PosX", X);
            DOF2_SetFloat(arquivo, "PosY", Y);
            DOF2_SetFloat(arquivo, "PosZ", Z);

            DOF2_SetFloat(arquivo, "FeridoPosX", PlayerInfo[playerid][FeridoPosX]);
            DOF2_SetFloat(arquivo, "FeridoPosY", PlayerInfo[playerid][FeridoPosY]);
            DOF2_SetFloat(arquivo, "FeridoPosZ", PlayerInfo[playerid][FeridoPosZ]);
            DOF2_SaveFile();
        }
        format(arquivo, sizeof(arquivo), "Acessorios/%s.ini", PlayerName(playerid));
        if(DOF2_FileExists(arquivo))
        {
            for(new m; m < 6; m++)
            {
                 format(MT, sizeof(MT), "ModeloItem%d", m);
                DOF2_SetInt(arquivo, MT, ModeloItem[playerid][m]);

                format(MT, sizeof(MT), "OssoItem%d", m);
                DOF2_SetInt(arquivo, MT, OssoItem[playerid][m]);
                for(new o; o < 9; o++)
                {
                    format(MT, sizeof(MT), "PosItem%d%d", m, o);
                    DOF2_SetFloat(arquivo, MT, PosItem[playerid][m][o]);
                }
            }
        }
    }
    return 1;
}

Você está atualizando os valores, mas não está salvando o arquivo na parte dos acessórios.


RE: VOIP crash - welmateus - 06/05/2024

(06/05/2024 21:31)BitSain Escreveu:
(06/05/2024 21:14)welmateus Escreveu:
(06/05/2024 21:05)BitSain Escreveu: Não há problema no SAMPVOICE, quando o servidor crashou, puxou o crash do SAMPVOICE junto, mas como eu disse, não houve crash diretamente do SAMPVOICE

Nos envie a callback SalvarDados, o problema aparenta estar nessa callback..
Código:
CallBack:: SalvarDados(playerid)
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, Float:X, Float:Y, Float:Z);
    new Float:Xpc;
    GetPlayerArmour(playerid, Float:Xpc);
    if(PlayerInfo[playerid][Logado] == true)
    {
        format(arquivo, sizeof(arquivo), PASTA_CONTAS, PlayerName(playerid));
        if(DOF2_FileExists(arquivo))
        {
            DOF2_SetInt(arquivo, "Dinheiro", GetPlayerCash(playerid));
            DOF2_SetInt(arquivo, "Level", GetPlayerScore(playerid));
            DOF2_SetInt(arquivo, "Skin", PlayerInfo[playerid][Skin]);
            DOF2_SetInt(arquivo, "EstaNaGaragemID", EstaNaGaragemID[playerid]);
            DOF2_SetBool(arquivo, "Uniforme", Uniforme[playerid]);
            DOF2_SetBool(arquivo, "MochilaColocada", MochilaColocada[playerid]);
            DOF2_SetBool(arquivo, "EstaEmRota", EstaEmRota[playerid]);
            DOF2_SetInt(arquivo, "Sexo", PlayerInfo[playerid][Sexo]);
            DOF2_SetInt(arquivo, "TempoEmprego", PlayerInfo[playerid][TempoEmprego]);
            DOF2_SetInt(arquivo, "Admin", PlayerInfo[playerid][Admin]);
            DOF2_SetInt(arquivo, "Vip", PlayerInfo[playerid][Vip]);
            DOF2_SetInt(arquivo, "TempoVip", PlayerInfo[playerid][TempoVip]);
            DOF2_SetInt(arquivo, "Youtuber", PlayerInfo[playerid][Youtuber]);
            DOF2_SetInt(arquivo, "Profissao", PlayerInfo[playerid][Profissao]);
            DOF2_SetInt(arquivo, "HabilitacaoA", PlayerInfo[playerid][HabilitacaoA]);
            DOF2_SetInt(arquivo, "HabilitacaoB", PlayerInfo[playerid][HabilitacaoB]);
            DOF2_SetInt(arquivo, "HabilitacaoC", PlayerInfo[playerid][HabilitacaoC]);
            DOF2_SetInt(arquivo, "HabilitacaoD", PlayerInfo[playerid][HabilitacaoD]);
            DOF2_SetInt(arquivo, "Coins", PlayerInfo[playerid][Coins]);
            DOF2_SetInt(arquivo, "SaldoBancario", PlayerInfo[playerid][SaldoBancario]);
            DOF2_SetInt(arquivo, "ContaBanco", PlayerInfo[playerid][ContaBanco]);
            DOF2_SetInt(arquivo, "Interior", GetPlayerInterior(playerid));
            DOF2_SetInt(arquivo, "VirtualW", GetPlayerVirtualWorld(playerid));
            DOF2_SetInt(arquivo, "Empresa", PlayerInfo[playerid][Empresa]);
            DOF2_SetInt(arquivo, "Fome", PlayerInfo[playerid][Fome]);
            DOF2_SetInt(arquivo, "Sede", PlayerInfo[playerid][Sede]);
            DOF2_SetInt(arquivo, "Bexiga", PlayerInfo[playerid][Bexiga]);
            DOF2_SetInt(arquivo, "IDF", PlayerInfo[playerid][IDF]);
              DOF2_SetInt(arquivo, "FezRg", PlayerInfo[playerid][FezRg]);
            DOF2_SetInt(arquivo, "FezCarteira", PlayerInfo[playerid][FezCarteira]);
            DOF2_SetInt(arquivo, "LocalSP", PlayerInfo[playerid][LocalSP]);
            DOF2_SetInt(arquivo, "ExpMec", PlayerInfo[playerid][ExpMec]);
            DOF2_SetInt(arquivo, "FezPorte", PlayerInfo[playerid][FezPorte]);
            DOF2_SetInt(arquivo, "TemPlano", PlayerInfo[playerid][TemPlano]);
            DOF2_SetInt(arquivo, "TemJbl", PlayerInfo[playerid][TemJbl]);
            DOF2_SetInt(arquivo, "ModoAndar", PlayerInfo[playerid][ModoAndar]);
            DOF2_SetInt(arquivo, "Caixinha", PlayerInfo[playerid][Caixinha]);
            DOF2_SetInt(arquivo, "Mutado", PlayerInfo[playerid][Mutado]);
            DOF2_SetInt(arquivo, "MinutosMutado", PlayerInfo[playerid][MinutosMutado]);
            DOF2_SetFloat(arquivo, "HPColete", Xpc);
            DOF2_SetInt(arquivo, "Estrelas", GetPlayerWantedLevel(playerid));
            DOF2_SetInt(arquivo, "ConfigN", PlayerInfo[playerid][ConfigN]);
            DOF2_SetInt(arquivo, "ConfigNV", PlayerInfo[playerid][ConfigNV]);
            DOF2_SetInt(arquivo, "ConfigOOC", PlayerInfo[playerid][ConfigOOC]);
            DOF2_SetInt(arquivo, "RelogioPayday", PlayerInfo[playerid][RelogioPayday]);
            DOF2_SetInt(arquivo, "NumeroPayday", PlayerInfo[playerid][NumeroPayday]);
            DOF2_SetInt(arquivo, "MinutosPayday", PlayerInfo[playerid][MinutosPayday]);
            DOF2_SetInt(arquivo, "SegundosPayday", PlayerInfo[playerid][SegundosPayday]);
            DOF2_SetBool(arquivo, "Ferido", PlayerInfo[playerid][Ferido]);
            DOF2_SetInt(arquivo, "MinutosFerido", PlayerInfo[playerid][MinutosFerido]);
            DOF2_SetInt(arquivo, "SegundosFerido", PlayerInfo[playerid][SegundosFerido]);
            DOF2_SetInt(arquivo, "PlayerLuta", GetPlayerFightingStyle(playerid));
            DOF2_SetInt(arquivo, "OrgLider", PlayerInfo[playerid][OrgLider]);
            DOF2_SetInt(arquivo, "OrgSubLider", PlayerInfo[playerid][OrgSubLider]);
            DOF2_SetInt(arquivo, "OrgMembro", PlayerInfo[playerid][OrgMembro]);
            DOF2_SetInt(arquivo, "OrgCargo", PlayerInfo[playerid][OrgCargo]);
            DOF2_SetInt(arquivo, "Multas", PlayerInfo[playerid][Multas]);
            DOF2_SetInt(arquivo, "PresoHoras", PlayerInfo[playerid][PresoHoras]);
            DOF2_SetInt(arquivo, "PresoMinutos", PlayerInfo[playerid][PresoMinutos]);
            DOF2_SetInt(arquivo, "PresoSegundos", PlayerInfo[playerid][PresoSegundos]);
            DOF2_SetInt(arquivo, "MochilaBA", PlayerInfo[playerid][MochilaBA]);
            DOF2_SetBool(arquivo, "Preso", PlayerInfo[playerid][Preso]);
            DOF2_SetBool(arquivo, "Algemado", PlayerInfo[playerid][Algemado]);
            DOF2_SetInt(arquivo, "Estrelas", GetPlayerWantedLevel(playerid));
            DOF2_SetInt(arquivo, "Mochila", PlayerInfo[playerid][Mochila]);
            DOF2_SetInt(arquivo, "KitReparo", PlayerInfo[playerid][KitReparo]);
            DOF2_SetInt(arquivo, "Ferramentas", PlayerInfo[playerid][Ferramentas]);
            DOF2_SetInt(arquivo, "Chip", PlayerInfo[playerid][Chip]);
            DOF2_SetInt(arquivo, "Creditos", PlayerInfo[playerid][Creditos]);
            DOF2_SetBool(arquivo, "Celular", PlayerInfo[playerid][Celular]);
            DOF2_SetFloat(arquivo, "PosX", X);
            DOF2_SetFloat(arquivo, "PosY", Y);
            DOF2_SetFloat(arquivo, "PosZ", Z);

            DOF2_SetFloat(arquivo, "FeridoPosX", PlayerInfo[playerid][FeridoPosX]);
            DOF2_SetFloat(arquivo, "FeridoPosY", PlayerInfo[playerid][FeridoPosY]);
            DOF2_SetFloat(arquivo, "FeridoPosZ", PlayerInfo[playerid][FeridoPosZ]);
            DOF2_SaveFile();
        }
        format(arquivo, sizeof(arquivo), "Acessorios/%s.ini", PlayerName(playerid));
        if(DOF2_FileExists(arquivo))
        {
            for(new m; m < 6; m++)
            {
                 format(MT, sizeof(MT), "ModeloItem%d", m);
                DOF2_SetInt(arquivo, MT, ModeloItem[playerid][m]);

                format(MT, sizeof(MT), "OssoItem%d", m);
                DOF2_SetInt(arquivo, MT, OssoItem[playerid][m]);
                for(new o; o < 9; o++)
                {
                    format(MT, sizeof(MT), "PosItem%d%d", m, o);
                    DOF2_SetFloat(arquivo, MT, PosItem[playerid][m][o]);
                }
            }
        }
    }
    return 1;
}

Você está atualizando os valores, mas não está salvando o arquivo na parte dos acessórios.
Poderia ser isso o motivo do crash? Porque é literalmente quando aperto a tecla B


RE: VOIP crash - BitSain - 06/05/2024

Pode ser, pode não ser.
Nos envie aqui também as 2 funções do SAMPVOICE (3.0) do seu código aqui (KeyPress e KeyRelease).