20.10.2013, 18:36
Eu mudei o meu gamemode de mysql para DOF2 e comeзou a dar crashs quando um player faz o registo, alguma dica?
Log do crash[
dialog do registo
Log do crash[
Код:
-------------------------- SA-MP Server: 0.3x Exception At Address: 0x0049304B Module: (samp-server.exe) Registers: EAX: 0x0018F820 EBX: 0x02BC15D4 ECX: 0x00000000 EDX: 0x004056F0 ESI: 0x00000000 EDI: 0x01DDF220 EBP: 0x0018F830 ESP: 0x0018F808 EFLAGS: 0x00010286 Stack: +0000: 0x01DDF220 0x01DDF220 0x02BC15D4 0xFFFFFFFF +0010: 0x0018F808 0x0018F3DC 0x0018FB54 0x00496EB8 +0020: 0x004B26B0 0xFFFFFFFF 0x02BC19D0 0x004056FD +0030: 0x00000000 0x004010B6 0x01DDF220 0x02C7DA0C +0040: 0x02BE69FC 0x00402B63 0x01DDF220 0x00000005 +0050: 0x0018F870 0x02C7DA0C 0x0018FB60 0x01DDF220 +0060: 0x00000000 0x00000000 0x00000000 0x0009700C +0070: 0x00097010 0x00097250 0x00057268 0x0009701C +0080: 0x0005726C 0x02BC15D4 0x02BE69FC 0x00000000 +0090: 0x02BC0020 0x00025428 0x0046DA61 0x01DDF220 +00A0: 0x0018F8F0 0x0000000E 0x01DDF220 0x00000000 +00B0: 0x01DDF220 0x00000002 0x01DDF220 0x00000001 +00C0: 0x01DDF220 0xFFFFFFFF 0x01DDF220 0x0018F90C +00D0: 0x0018F8F4 0x0018FA48 0x02C3DC50 0x00000000 +00E0: 0x0018FB49 0x01DDF220 0x00000000 0x02C3DC50 +00F0: 0x0048EA36 0x0000000E 0x00000002 0x00000001 +0100: 0xFFFFFFFF 0x00057254 0x020AD8B0 0x0018FB6C +0110: 0x020A8501 0x00000000 0x01040000 0x0000FFFF +0120: 0x00000002 0x00000000 0x00000058 0x00000058 +0130: 0x00000050 0x0018FB6C 0x020A0000 0x00000000 -------------------------- Loaded Modules: samp-server.exe A: 0x00400000 - 0x004F5000 (C:\Users\Utilizador\Desktop\projecto\samp-server.exe) ntdll.dll A: 0x76F50000 - 0x770D0000 (C:\Windows\SysWOW64\ntdll.dll) kernel32.dll A: 0x762E0000 - 0x763F0000 (C:\Windows\syswow64\kernel32.dll) KERNELBASE.dll A: 0x768D0000 - 0x76917000 (C:\Windows\syswow64\KERNELBASE.dll) SHELL32.dll A: 0x752B0000 - 0x75EFA000 (C:\Windows\syswow64\SHELL32.dll) msvcrt.dll A: 0x75F00000 - 0x75FAC000 (C:\Windows\syswow64\msvcrt.dll) SHLWAPI.dll A: 0x76610000 - 0x76667000 (C:\Windows\syswow64\SHLWAPI.dll) GDI32.dll A: 0x75140000 - 0x751D0000 (C:\Windows\syswow64\GDI32.dll) USER32.dll A: 0x76A50000 - 0x76B50000 (C:\Windows\syswow64\USER32.dll) ADVAPI32.dll A: 0x76740000 - 0x767E0000 (C:\Windows\syswow64\ADVAPI32.dll) sechost.dll A: 0x751F0000 - 0x75209000 (C:\Windows\SysWOW64\sechost.dll) RPCRT4.dll A: 0x767E0000 - 0x768D0000 (C:\Windows\syswow64\RPCRT4.dll) SspiCli.dll A: 0x749A0000 - 0x74A00000 (C:\Windows\syswow64\SspiCli.dll) CRYPTBASE.dll A: 0x74990000 - 0x7499C000 (C:\Windows\syswow64\CRYPTBASE.dll) LPK.dll A: 0x76F20000 - 0x76F2A000 (C:\Windows\syswow64\LPK.dll) USP10.dll A: 0x76530000 - 0x765CD000 (C:\Windows\syswow64\USP10.dll) WSOCK32.dll A: 0x74890000 - 0x74897000 (C:\Windows\system32\WSOCK32.dll) WS2_32.dll A: 0x765D0000 - 0x76605000 (C:\Windows\syswow64\WS2_32.dll) NSI.dll A: 0x75210000 - 0x75216000 (C:\Windows\syswow64\NSI.dll) WINMM.dll A: 0x74660000 - 0x74692000 (C:\Windows\system32\WINMM.dll) IMM32.DLL A: 0x769F0000 - 0x76A50000 (C:\Windows\system32\IMM32.DLL) MSCTF.dll A: 0x76920000 - 0x769EC000 (C:\Windows\syswow64\MSCTF.dll) sscanf.DLL A: 0x10000000 - 0x1000D000 (C:\Users\Utilizador\Desktop\projecto\plugins\sscanf.DLL) MSVCR100.dll A: 0x730A0000 - 0x7315F000 (C:\Windows\system32\MSVCR100.dll) mswsock.dll A: 0x72D70000 - 0x72DAC000 (C:\Windows\system32\mswsock.dll) wshtcpip.dll A: 0x73F70000 - 0x73F75000 (C:\Windows\System32\wshtcpip.dll) NLAapi.dll A: 0x72870000 - 0x72880000 (C:\Windows\system32\NLAapi.dll) napinsp.dll A: 0x6FDB0000 - 0x6FDC0000 (C:\Windows\system32\napinsp.dll) pnrpnsp.dll A: 0x6FD90000 - 0x6FDA2000 (C:\Windows\system32\pnrpnsp.dll) DNSAPI.dll A: 0x722F0000 - 0x72334000 (C:\Windows\system32\DNSAPI.dll) winrnr.dll A: 0x6FD80000 - 0x6FD88000 (C:\Windows\System32\winrnr.dll) WLIDNSP.DLL A: 0x72D40000 - 0x72D67000 (C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL) PSAPI.DLL A: 0x751D0000 - 0x751D5000 (C:\Windows\syswow64\PSAPI.DLL) IPHLPAPI.DLL A: 0x72CB0000 - 0x72CCC000 (C:\Windows\system32\IPHLPAPI.DLL) WINNSI.DLL A: 0x72CA0000 - 0x72CA7000 (C:\Windows\system32\WINNSI.DLL) rasadhlp.dll A: 0x72D30000 - 0x72D36000 (C:\Windows\system32\rasadhlp.dll)
pawn Код:
if(dialogid == REGISTER)
{
if(response)
{
if(!strlen(inputtext) || strlen(inputtext) < 3)
{
new string[500];
format(string, sizeof(string), "{2CF52C}Bem Vindo {FFFFFF}%s{2CF52C}! \n\n{ff8800}===============================================\n{2CF52C}Status da conta: \t{ffffff}Nгo registado\n{ff8800}===============================================\n\n{2CF52C}Digita uma senha para te registares!\n{800000}ERRO: Digita um senha que contenha pelo menos 4 caracteres!", GetPlayerNameEx(playerid));
ShowPlayerDialog(playerid, REGISTER, DIALOG_STYLE_PASSWORD, "Registo", string, "Registar", "Cancelar");
return 1;
}
SendClientMessage(playerid,COLOR_GREEN,"[Login:]{FFFFFF} Fizeste o {2CF52C}Registo {FFFFFF}com sucesso!");
new stringc[128];
format(stringc, sizeof(stringc), CONTAS, GetPlayerNameEx(playerid));
DOF2_CreateFile(stringc);
DOF2_SetString(stringc, "password", inputtext);
DOF2_SetInt(stringc, "score", 0);
DOF2_SetInt(stringc, "kills", 0);
DOF2_SetInt(stringc, "deaths", 0);
DOF2_SetInt(stringc, "vip", 0);
DOF2_SetInt(stringc, "admin", 0);
DOF2_SaveFile();
return 1;
}
else
{
KickPlayer(playerid,"AntiCheat","Recusou-se a fazer o registo!");
return 1;
}
}