15.02.2015, 13:11
(
Последний раз редактировалось lwilson; 16.02.2015 в 07:43.
)
When a player registering after he put his password he will crash!
But if the player is already registered there's no crash!
the codes
Registering
SetPlayerSpawn
DialogResponse
crash
But if the player is already registered there's no crash!
the codes
Registering
PHP код:
{
new titlestring[64];
new string[256];
switch(frame)
{
<a href="http://cityadspix.com/tsclick-MIQCWPUV-GECAQBFF?url=http%3A%2F%2Fwww.sotmarket.ru%2Fproduct%2Fsumka-notebook-15-targus-cn-514-eu-50.html&sa=mh&sa1=&sa2=&sa3=&sa4=&sa5=&bt=20&pt=9<=2&tl=3&im=ODI1LTAtMTQyNDAwODE0OS0xODcyOTAzNw%3D%3D&fid=NDQ1NzU2Nzc1&prdct=390931073505&kw=<a href="http://cityadspix.com/tsclick-GQBE4OE0-JHFDQUHP?url=http%3A%2F%2Fogo1.ru%2Fmarket%2Fsumki_dlya_noutbukov%2F56549-10-amp-quot-Sumka-Targus-TSS112EU-Blue&sa=mh&sa1=&sa2=&sa3=&sa4=&sa5=&bt=20&pt=9<=2&tl=3&im=OTY1NS0wLTE0MjQwMDgxNDktMTQzNzM0Nzg%3D&fid=NDQ1NzU2Nzc1&prdct=0c3c053300340c3600&kw=case%25201" target="_blank" alt="Targus Crave Netbook Case 10.2" title="Targus Crave Netbook Case 10.2" style="">case%201</a>" target="_blank" alt="<a href="http://cityadspix.com/tsclick-MIQCWPUV-GECAQBFF?url=http%3A%2F%2Fwww.sotmarket.ru%2Fproduct%2Fsumka-notebook-15-targus-cn-514-eu-50.html&sa=mh&sa1=&sa2=&sa3=&sa4=&sa5=&bt=20&pt=9<=2&tl=3&im=ODI1LTAtMTQyNDAwODc3NS0xMzg1OTM2Mw%3D%3D&fid=NDQ1NzU2Nzc1&prdct=390931073505&kw=Targus%20Classic%2B%20Toploading%20Case%2013-14.1" target="_blank" alt="Targus Classic+ <a href="http://cityadspix.com/tsclick-MIQCWPUV-GECAQBFF?url=http%3A%2F%2Fwww.sotmarket.ru%2Fproduct%2Fsumka-notebook-16-targus-tll316eu.html&sa=mh&sa1=&sa2=&sa3=&sa4=&sa5=&bt=20&pt=9<=2&tl=3&im=ODI1LTAtMTQyNDAwODc3NS0xNzczNDQ1NQ%3D%3D&fid=NDQ1NzU2Nzc1&prdct=350237093909&kw=Toploading%20Case" target="_blank" alt="Targus Revolution Toploading Case 16" title="Targus Revolution Toploading Case 16" style="">Toploading Case</a> 13-14.1" title="Targus Classic+ Toploading <a href="http://cityadspix.com/tsclick-MIQCWPUV-GECAQBFF?url=http%3A%2F%2Fwww.sotmarket.ru%2Fproduct%2Fsumka-targus-lomax-ultrabook-topload-case-dlja-noutbuka-13-3.html&sa=mh&sa1=&sa2=&sa3=&sa4=&sa5=&bt=20&pt=9<=2&tl=3&im=ODI1LTAtMTQyNDAwODc3NS0xMDk3MjU2Nw%3D%3D&fid=NDQ1NzU2Nzc1&prdct=0c3e0f39093e09&kw=Case%2013-14.1" target="_blank" alt="Targus Lomax Ultrabook Topload <a href="http://cityadspix.com/tsclick-MIQCWPUV-GECAQBFF?url=http%3A%2F%2Fwww.sotmarket.ru%2Fproduct%2Fsumka-notebook-15-targus-cn-514-eu-50.html&sa=mh&sa1=&sa2=&sa3=&sa4=&sa5=&bt=20&pt=9<=2&tl=3&im=ODI1LTAtMTQyNDAwODc3NS0xMjkzODQxMA%3D%3D&fid=NDQ1NzU2Nzc1&prdct=390931073505&kw=Case%2013.3" target="_blank" alt="Targus Classic+ Toploading Case 13-14.1" title="Targus Classic+ Toploading Case 13-14.1" style="">Case 13.3</a>" title="Targus Lomax Ultrabook Topload Case 13.3" style="">Case 13-14.1</a>" style="">Targus Classic+ Toploading Case 13-14.1</a>" title="Targus Classic+ Toploading Case 13-14.1" style="">case 1</a>:
{
new ip[32];
GetPlayerIp(playerid, ip, 32);
format(titlestring, sizeof(titlestring), "{3399FF}Login - %s", GetPlayerNameEx(playerid));
format(string, sizeof(string), "{FFFFFF}Welcome to Bay City Roleplay, %s.\n\nIP Address: %s\n\nThe name that you are using is registered, please enter a password to login:", GetPlayerNameEx(playerid), ip);
ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,string,"Login","Exit");
}
case 2:
{
new ip[32];
GetPlayerIp(playerid, ip, 32);
format(titlestring, sizeof(titlestring), "{3399FF}Register - %s", GetPlayerNameEx(playerid));
format(string, sizeof(string), "{FFFFFF}Welcome to Bay City Roleplay, %s.\n\nIP Address: %s\n\nYou may register an account by entering a desired password here:", GetPlayerNameEx(playerid), ip);
ShowPlayerDialog(playerid,MAINMENU2,DIALOG_STYLE_PASSWORD,titlestring,string,"Register","Exit");
}
<a href="http://cityadspix.com/tsclick-MIQCWPUV-GECAQBFF?url=http%3A%2F%2Fwww.sotmarket.ru%2Fproduct%2Fsumka-targus-lomax-ultrabook-topload-case-dlja-noutbuka-13-3.html&sa=mh&sa1=&sa2=&sa3=&sa4=&sa5=&bt=20&pt=9<=2&tl=3&im=ODI1LTAtMTQyNDAwODE0OS0xMTA0NzIzNA%3D%3D&fid=NDQ1NzU2Nzc1&prdct=0c3e0f39093e09&kw=case%203" target="_blank" alt="Targus Lomax <a href="http://cityadspix.com/tsclick-MIQCWPUV-GECAQBFF?url=http%3A%2F%2Fwww.sotmarket.ru%2Fproduct%2Fsumka-targus-lomax-ultrabook-topload-case-dlja-noutbuka-13-3.html&sa=mh&sa1=&sa2=&sa3=&sa4=&sa5=&bt=20&pt=9<=2&tl=3&im=ODI1LTAtMTQyNDAwODc3NS0xMzg2OTUxNA%3D%3D&fid=NDQ1NzU2Nzc1&prdct=0c3e0f39093e09&kw=Ultrabook%20Topload%20Case%2013.3" target="_blank" alt="<a href="http://cityadspix.com/tsclick-MIQCWPUV-GECAQBFF?url=http%3A%2F%2Fwww.sotmarket.ru%2Fproduct%2Fsumka-targus-tbt241eu-50-dlja-noutbuka-15-6.html&sa=mh&sa1=&sa2=&sa3=&sa4=&sa5=&bt=20&pt=9<=2&tl=3&im=ODI1LTAtMTQyNDAwODc3NS0xODcwNTYxNg%3D%3D&fid=NDQ1NzU2Nzc1&prdct=04350c3b0f35013c04&kw=Targus%20Lomax" target="_blank" alt="Targus Lomax Topload Case 15.6" title="Targus Lomax Topload Case 15.6" style="">Targus Lomax</a> Ultrabook Topload <a href="http://cityadspix.com/tsclick-GQBE4OE0-JHFDQUHP?url=http%3A%2F%2Fogo1.ru%2Fmarket%2Fsumki_dlya_noutbukov%2F53828-13-amp-quot-Sumka-Case-Logic-QNS-113P-neylon-rozovyiy&sa=mh&sa1=&sa2=&sa3=&sa4=&sa5=&bt=20&pt=9<=2&tl=3&im=OTY1NS0wLTE0MjQwMDg3NzUtMTc3MTk3Mzc%3D&fid=NDQ1NzU2Nzc1&prdct=0f3f093f0f3c0b3306&kw=Case%2013.3" target="_blank" alt="Case logic Hard Shell Laptop Sleeve 13.3" title="Case logic Hard Shell Laptop Sleeve 13.3" style=""><a href="http://cityadspix.com/tsclick-MIQCWPUV-GECAQBFF?url=http%3A%2F%2Fwww.sotmarket.ru%2Fproduct%2Fsumka-notebook-15-targus-cn-514-eu-50.html&sa=mh&sa1=&sa2=&sa3=&sa4=&sa5=&bt=20&pt=9<=2&tl=3&sa=mh&sa1=&sa2=&sa3=&sa4=&sa5=&im=ODI1LTAtMTQyNDAwODc3NS0xMTc2NzM3NQ%3D%3D&fid=NDQ1NzU2Nzc1&prdct=390931073505&kw=Case%2013.3" target="_blank" alt="Targus Classic+ Toploading Case 13-14.1" title="Targus Classic+ Toploading Case 13-14.1" style="">Case 13.3</a></a>" title="Targus Lomax Ultrabook <a href="http://cityadspix.com/tsclick-MIQCWPUV-GECAQBFF?url=http%3A%2F%2Fwww.sotmarket.ru%2Fproduct%2Fsumka-targus-tbt241eu-50-dlja-noutbuka-15-6.html&sa=mh&sa1=&sa2=&sa3=&sa4=&sa5=&bt=20&pt=9<=2&tl=3&im=ODI1LTAtMTQyNDAwODc3NS0xMjkwNTA2Ng%3D%3D&fid=NDQ1NzU2Nzc1&prdct=04350c3b0f35013c04&kw=Topload%20Case" target="_blank" alt="Targus Lomax Topload Case 15.6" title="Targus Lomax Topload Case 15.6" style="">Topload Case</a> 13.3" style="">Ultrabook Topload Case 13.3</a>" title="<a href="http://cityadspix.com/tsclick-MIQCWPUV-GECAQBFF?url=http%3A%2F%2Fwww.sotmarket.ru%2Fproduct%2Fsumka-targus-tbt241eu-50-dlja-noutbuka-15-6.html&sa=mh&sa1=&sa2=&sa3=&sa4=&sa5=&bt=20&pt=9<=2&tl=3&sa=mh&sa1=&sa2=&sa3=&sa4=&sa5=&im=ODI1LTAtMTQyNDAwODc3NS0xMjcxMTcxNA%3D%3D&fid=NDQ1NzU2Nzc1&prdct=04350c3b0f35013c04&kw=Targus%20Lomax" target="_blank" alt="Targus Lomax Topload Case 15.6" title="Targus Lomax Topload Case 15.6" style="">Targus Lomax</a> Ultrabook Topload Case 13.3" style="">case 3</a>:
{
new ip[32];
GetPlayerIp(playerid, ip, 32);
format(titlestring, sizeof(titlestring), "{3399FF}Login - %s", GetPlayerNameEx(playerid));
format(string, sizeof(string), "{FFFFFF}Invalid Password!\n\nWelcome to Bay City Roleplay, %s.\n\nIP Address: %s\n\nThe name that you are using is registered, please enter a password to login:", GetPlayerNameEx(playerid), ip);
ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,string,"Login","Exit");
if(PlayerInfo[playerid][pAdmin] >= 2)
{
format(STRING, "WARNING: {00ff00}Bad login attempt on admin account %s! IP: %s", GetPlayerNameEx(playerid), ip);
ABroadCast(COLOR_LIGHTRED, string, 2);
}
}
}
}
PHP код:
{
if(PlayerInfo[playerid][pTut] == 0)
{
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
TogglePlayerControllable(playerid,0);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
Streamer_UpdateEx(playerid,1958.3783, 1343.1572, 15.3746);
SetPlayerPos(playerid,-2150.0972,1901.4792,555.4389);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
RegistrationStep[playerid] = 1;
ShowPlayerDialog(playerid, REGISTERSEX, DIALOG_STYLE_LIST, "{33CCFF}Set your In Character gender", "Male\nFemale", "Submit", "");
return 1;
}
}
return 1;
PHP код:
if(RegistrationStep[playerid] != 0)
{
if(dialogid == REGISTERSEX)
{
if(response)
{
new stringdiag[410];
for(new x=18;x<99;x++)
{
format(stringdiag, sizeof(stringdiag), "%s%d\n", stringdiag, x);
}
if(listitem == 0)
{
PlayerInfo[playerid][pSex] = 1;
SendClientMessageEx(playerid, COLOR_LIGHTRED, "Alright, so you're a male.");
ShowPlayerDialog(playerid, REGISTERAGE, DIALOG_STYLE_LIST, "{9ACD32}Set your In Character age", stringdiag, "Submit", "");
RegistrationStep[playerid] = 2;
}
else
{
PlayerInfo[playerid][pSex] = 2;
SendClientMessageEx(playerid, COLOR_LIGHTRED, "Alright, so you're a female.");
ShowPlayerDialog(playerid, REGISTERAGE, DIALOG_STYLE_LIST, "{9ACD32}Set your In Character age", stringdiag, "Submit", "");
RegistrationStep[playerid] = 2;
}
}
else
{
ShowPlayerDialog(playerid, REGISTERSEX, DIALOG_STYLE_LIST, "{9ACD32}Set your In Character gender", "Male\nFemale", "Submit", "");
}
}
else if(dialogid == REGISTERAGE)
{
if(response)
{
new stringdiag2[410];
for(new x=1;x<11;x++)
{
format(stringdiag2, sizeof(stringdiag2), "%s%d\n", stringdiag2, x);
}
PlayerInfo[playerid][pAge] = listitem+18;
PlayerInfo[playerid][pOrigin] = 0;
format(string, sizeof(string), "Ok, so you are %d year old.",PlayerInfo[playerid][pAge]);
SendClientMessageEx(playerid, COLOR_LIGHTRED, string);
ShowPlayerDialog(playerid, REGISTERSKILL, DIALOG_STYLE_LIST, "{9ACD32}Rate your RP Knowledge", stringdiag2, "Submit", "");
RegistrationStep[playerid] = 3;
}
else
{
ShowPlayerDialog(playerid, REGISTERAGE, DIALOG_STYLE_LIST, "{9ACD32}Set your In Character age", string, "Submit", "");
}
}
else if(dialogid == REGISTERSKILL)
{
if(response)
{
PlayerInfo[playerid][pRPSkill] = listitem+1;
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "You have successfully created an account, you are now proceeding to BCRP Quizzes!");
RegistrationStep[playerid] = 0;
hidePlayerDialog(playerid);
ShowPlayerDialog(playerid, DIALOG_QUIZ, DIALOG_STYLE_LIST, "{9ACD32}Define Roleplay", "A gameplay in samp where you realistically act out a character\nAn action server where you have different roles\nA freerunning/single player gameplay\nA gameplay of war in samp", "Select", "");
}
else
{
ShowPlayerDialog(playerid, REGISTERSKILL, DIALOG_STYLE_LIST, "{9ACD32}Rate your RP Knowledge", string, "Submit", "");
}
}
return 1;
}
PHP код:
--------------------------
SA-MP Server: 0.3z
Exception At Address: 0x00401696 Module: (samp-server.exe)
Registers:
EAX: 0x010AB378 EBX: 0x010AB378 ECX: 0x00000000 EDX: 0x009C2438
ESI: 0x010AB378 EDI: 0x00000000 EBP: 0x7C802446 ESP: 0x0012FE00
EFLAGS: 0x00010212
Stack:
+0000: 0x00401726 0x010AB378 0x0012FE1C 0x00000000
+0010: 0x010AB378 0x7C802446 0x010AB378 0x00000001
+0020: 0x00000000 0x00000000 0x00000010 0xFFFF3CB0
+0030: 0xFFFFFFFF 0x00000000 0x0012FE2C 0x0012FE0C
+0040: 0x0046CA85 0x010AB378 0x004AE774 0x0012FE58
+0050: 0x009C7700 0x010AB378 0x010AB378 0x00489491
+0060: 0x7C802530 0x009C7700 0x00000000 0x0048781A
+0070: 0x00000000 0x00000A28 0x0012FFC0 0x7FFD4000
+0080: 0x00007B50 0x00010101 0x0000001E 0x000032E6
+0090: 0x00000070 0x00000524 0x009C7700 0x656D6167
+00A0: 0x65646F6D 0x00003531 0x004BC014 0x004BC010
+00B0: 0x7FFD4000 0x004A6140 0x0012FEA8 0x0012FFB0
+00C0: 0x0012FFB0 0x00497FE8 0x004B2E98 0xFFFFFFFF
+00D0: 0x00496281 0x00496291 0x004A6140 0x0012FFB0
+00E0: 0x004A5DB1 0xFFFFFFFF 0x00497A86 0x00000001
+00F0: 0x009C29E0 0x009C2A18 0x00000094 0x00000005
+0100: 0x00000001 0x00000A28 0x00000002 0x76726553
+0110: 0x20656369 0x6B636150 0xFF003320 0xFFFFFFFF
+0120: 0x00000000 0x0100004D 0x00000010 0x000069E8
+0130: 0x80561B80 0xA6E2CC4C 0x805491E8 0x8A9DE000
--------------------------
Loaded Modules:
samp-server.exe A: 0x00400000 - 0x004F5000 (D:\LACL\gamemodes\PLA\samp-server.exe)
ntdll.dll A: 0x7C900000 - 0x7C9AF000 (C:\WINDOWS\system32\ntdll.dll)
kernel32.dll A: 0x7C800000 - 0x7C8F7000 (C:\WINDOWS\system32\kernel32.dll)
SHELL32.dll A: 0x7C9C0000 - 0x7DF4E000 (C:\WINDOWS\system32\SHELL32.dll)
ADVAPI32.dll A: 0x77DD0000 - 0x77E6B000 (C:\WINDOWS\system32\ADVAPI32.dll)
RPCRT4.dll A: 0x77E70000 - 0x77F02000 (C:\WINDOWS\system32\RPCRT4.dll)
Secur32.dll A: 0x77FE0000 - 0x77FF1000 (C:\WINDOWS\system32\Secur32.dll)
GDI32.dll A: 0x77F10000 - 0x77F59000 (C:\WINDOWS\system32\GDI32.dll)
USER32.dll A: 0x7E410000 - 0x7E4A0000 (C:\WINDOWS\system32\USER32.dll)
msvcrt.dll A: 0x77C10000 - 0x77C68000 (C:\WINDOWS\system32\msvcrt.dll)
SHLWAPI.dll A: 0x77F60000 - 0x77FDC000 (C:\WINDOWS\system32\SHLWAPI.dll)
WSOCK32.dll A: 0x71AD0000 - 0x71AD9000 (C:\WINDOWS\system32\WSOCK32.dll)
WS2_32.dll A: 0x71AB0000 - 0x71AC7000 (C:\WINDOWS\system32\WS2_32.dll)
WS2HELP.dll A: 0x71AA0000 - 0x71AA8000 (C:\WINDOWS\system32\WS2HELP.dll)
WINMM.dll A: 0x76B40000 - 0x76B6D000 (C:\WINDOWS\system32\WINMM.dll)
IMM32.DLL A: 0x76390000 - 0x763AD000 (C:\WINDOWS\system32\IMM32.DLL)
LPK.DLL A: 0x629C0000 - 0x629C9000 (C:\WINDOWS\system32\LPK.DLL)
USP10.dll A: 0x74D90000 - 0x74DFB000 (C:\WINDOWS\system32\USP10.dll)
comctl32.dll A: 0x773D0000 - 0x774D3000 (C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll)
comctl32.dll A: 0x5D090000 - 0x5D130000 (C:\WINDOWS\system32\comctl32.dll)
streamer.dll A: 0x10000000 - 0x1003E000 (D:\LACL\gamemodes\PLA\plugins\streamer.dll)
MSVCP100.dll A: 0x78050000 - 0x780B9000 (C:\WINDOWS\system32\MSVCP100.dll)
MSVCR100.dll A: 0x78AA0000 - 0x78B5F000 (C:\WINDOWS\system32\MSVCR100.dll)
sscanf.dll A: 0x009F0000 - 0x009FD000 (D:\LACL\gamemodes\PLA\plugins\sscanf.dll)
mysql.dll A: 0x00BB0000 - 0x00BC3000 (D:\LACL\gamemodes\PLA\plugins\mysql.dll)
LIBMYSQL.dll A: 0x00BD0000 - 0x00D11000 (D:\LACL\gamemodes\PLA\LIBMYSQL.dll)
MSVCR90.dll A: 0x78520000 - 0x785C3000 (C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_31a54e43\MSVCR90.dll)
MSVCP90.dll A: 0x78480000 - 0x7850E000 (C:\WINDOWS\WinSxS\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.6161_x-ww_31a54e43\MSVCP90.dll)
mswsock.dll A: 0x71A50000 - 0x71A8F000 (C:\WINDOWS\System32\mswsock.dll)
DNSAPI.dll A: 0x76F20000 - 0x76F47000 (C:\WINDOWS\system32\DNSAPI.dll)
winrnr.dll A: 0x76FB0000 - 0x76FB8000 (C:\WINDOWS\System32\winrnr.dll)
WLDAP32.dll A: 0x76F60000 - 0x76F8C000 (C:\WINDOWS\system32\WLDAP32.dll)
rasadhlp.dll A: 0x76FC0000 - 0x76FC6000 (C:\WINDOWS\system32\rasadhlp.dll)
socket.dll A: 0x00E90000 - 0x00E9B000 (D:\LACL\gamemodes\PLA\plugins\socket.dll)
hnetcfg.dll A: 0x662B0000 - 0x66308000 (C:\WINDOWS\system32\hnetcfg.dll)
wshtcpip.dll A: 0x71A90000 - 0x71A98000 (C:\WINDOWS\System32\wshtcpip.dll)