Lester.
Умник
C++:
[17:15:12] [debug] Server crashed while executing remix.amx
[17:15:12] [debug] AMX backtrace:
[17:15:12] [debug] #0 native SetPlayerName () in sscanf.so
[17:15:12] [debug] #1 006fee78 in public OnPlayerCheckName (playerid=3, inputtext[]=@009220d4 "", type=0) at F:\Games RP\gamemodes\new.pwn:32764
[17:15:12] [debug] Native backtrace:
[17:15:12] [debug] #0 b73388b6 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () in plugins/crashdetect.so
[17:15:12] [debug] #1 b7330120 in _ZN18CrashDetectHandler20PrintNativeBacktraceERSoRKN2os7ContextE () in plugins/crashdetect.so
[17:15:12] [debug] #2 b7330886 in _ZN18CrashDetectHandler20PrintNativeBacktraceERKN2os7ContextE () in plugins/crashdetect.so
[17:15:12] [debug] #3 b7330f96 in _ZN18CrashDetectHandler7OnCrashERKN2os7ContextE () in plugins/crashdetect.so
[17:15:12] [debug] #4 b7337f82 in ?? () in plugins/crashdetect.so
[17:15:12] [debug] #5 b771b600 in ?? ()
[17:15:12] [debug] #6 080d5a67 in ?? () in ./samp03svr
[17:15:12] [debug] #7 080d7a95 in ?? () in ./samp03svr
[17:15:12] [debug] #8 b76e239a in ?? () in plugins/sscanf.so
[17:15:12] [debug] #9 080950e4 in ?? () in ./samp03svr
[17:15:12] [debug] #10 b7331b9b in _ZN18CrashDetectHandler15ProcessCallbackEiPiS0_ () in plugins/crashdetect.so
[17:15:12] [debug] #11 b7335fc2 in ?? () in plugins/crashdetect.so
[17:15:12] [debug] #12 b733abc7 in amx_Exec () in plugins/crashdetect.so
[17:15:12] [debug] Registers:
[17:15:12] [debug] EAX: 00000000 EBX: 00000000 ECX: 096cc3a8 EDX: b09ca008
[17:15:12] [debug] ESI: 00000000 EDI: 096cc3a8 EBP: bfeaa978 ESP: bfeaa974
[17:15:12] [debug] EIP: 080d5a67 EFLAGS: 00000246
[17:15:12] [debug] Stack:
[17:15:12] [debug] ESP+00000000: b1c696b0 bfeaab08 080d7a95 00000000
[17:15:12] [debug] ESP+00000020: bfeaaa60 00000001 b71381a1 0000000c
[17:15:12] [debug] ESP+00000040: 00000000 bfeaaa14 00000000 00000001
[17:15:12] [debug] ESP+00000060: b7530420 00000000 0aa68718 bfeaaa60
[17:15:12] [debug] ESP+00000080: b1343608 b714c6e0 01afc7f0 00000000
[17:15:12] [debug] ESP+000000a0: 0aa68718 b08309a7 b75f9aef 00000000
[17:15:12] [debug] ESP+000000c0: 0a2225f0 b7153000 b7137c0a 0aa68718
[17:15:12] [debug] ESP+000000e0: bfeaabf0 00000001 b7186907 0aa68718
[17:15:12] [debug] ESP+00000100: 00000000 00000001 b71bf000 096cc3a8
[17:15:12] [debug] ESP+00000120: 0a222090 00000020 b7700d6d bfeaab10
[17:15:12] [debug] ESP+00000140: bfeaaad0 0000fa07 b735d000 09319a80
[17:15:12] [debug] ESP+00000160: ae500880 ae500860 b716b74f 096cc3a8
[17:15:12] [debug] ESP+00000180: b7183eb6 b71bf000 b76e91ec b1c696b0
[17:15:12] [debug] ESP+000001a0: b1c696b0 79732064 6c6f626d 6e4f203a
[17:15:12] [debug] ESP+000001c0: 092b5f08 00000000 b7327d39 00000000
[17:15:12] [debug] ESP+000001e0: 096cc3a8 bfeaab88 080950e4 096cc3a8
[17:15:12] [debug] ESP+00000200: 00000000 b76e2340 b735d000 09312cc0
[17:15:12] [debug] ESP+00000220: 0000015e bfeaad9c b1c696b0 006fee78
[17:15:12] [debug] ESP+00000240: 00000000 00000000 b7530000 092b5f08
[17:15:12] [debug] ESP+00000260: 00000000 00000000 00000002 00000000
[17:15:12] [debug] ESP+00000280: 00000000 009260b8 006fe694 00000006
[17:15:12] [debug] ESP+000002a0: 00000049 00000008 00000000 bfeaac70
[17:15:12] [debug] ESP+000002c0: 00000002 01000000 096cc3a8 00000001
[17:15:12] [debug] ESP+000002e0: b7713ca0 bfeaac78 b74a75aa 00000000
[17:15:12] [debug] ESP+00000300: bfeaad0c bfeaad98 b76d1d91 00000000
[17:15:12] [debug] ESP+00000320: 00000000 bfeaacd8 b4a7168a b77186ec
[17:15:12] [debug] ESP+00000340: 00000000 0a7180f8 0a7180d8 00000001
[17:15:12] [debug] ESP+00000360: bfeaac90 096cc3a8 00000000 009260b8
[17:15:12] [debug] ESP+00000380: 00000000 000000f8 b73e1f75 bfeaaee0
[17:15:12] [debug] ESP+000003a0: b735d630 bfeaad48 b7335fc2 09312cc0
[17:15:12] [debug] ESP+000003c0: 0000003e b7335f5b b10cfea4 096cc3a8
[17:15:12] [debug] ESP+000003e0: 0000015e bfeaad9c b1c696b0 b7700d87
[17:15:12] [debug] Loaded modules:
[17:15:12] [debug] 00000000 - 00187d1f samp03svr
[17:15:12] [debug] b771d000 - b771d704
[17:15:12] [debug] b76d1000 - b76d36a4 /lib/libdl.so.2
[17:15:12] [debug] b76a9000 - b76c2ad3 /lib/libpthread.so.0
[17:15:12] [debug] b75b1000 - b76a2e88 /lib/libstdc++.so.6
[17:15:12] [debug] b7569000 - b75aa208 /lib/libm.so.6
[17:15:12] [debug] b7541000 - b755a6f8 /lib/libgcc_s.so.1
[17:15:12] [debug] b7369000 - b753b8f3 /lib/libc.so.6
[17:15:12] [debug] b76f1000 - b7714110 /lib/ld-linux.so.2
[17:15:12] [debug] b7319000 - b735d3ac plugins/crashdetect.so
[17:15:12] [debug] b71c9000 - b7315440 plugins/pawnraknet.so
[17:15:12] [debug] b7161000 - b71bfaec plugins/mysql.so
[17:15:12] [debug] b7131000 - b7152108 /home/server1933/game/plugins/../log-core.so
[17:15:12] [debug] b7121000 - b7127d90 /lib/librt.so.1
[17:15:12] [debug] b6b29000 - b7141088 /usr/lib/mysql/libmysqlclient.so.18
[17:15:12] [debug] b4b09000 - b4b1a748 /lib/libnss_files.so.2
[17:15:12] [debug] b76d9000 - b76e89b4 plugins/sscanf.so
[17:15:12] [debug] b4a39000 - b4afe740 plugins/streamer.so
[17:15:12] [debug] b4949000 - b4a30b50 plugins/pawncmd.so
[17:15:12] [debug] b4859000 - b4945778 plugins/pawnregex.so
[17:15:12] [debug] b46b1000 - b4858168 plugins/SKY.so
[17:15:12] [debug] b76c9000 - b76cdd34 /lib/libnss_dns.so.2
[17:15:12] [debug] b0801000 - b0819014 /lib/libresolv.so.2
C++:
publics: OnPlayerCheckName(playerid, inputtext[], type)
{
new rows;
cache_get_row_count(rows);
if(type == 1)
{
if(rows) return ShowPlayerDialog(playerid, 26472, DIALOG_STYLE_INPUT, "{CCFF00}Смена игрового ника", "{BBBBBB}К сожалению, данный никнэйм занят.\n\nПовторите попытку, используя другой:", "Принять", "Назад");
else
{
format(stringer1, sizeof(stringer1), "<< %s сменил никнейм на: %s >>", PlayerInfo[playerid][pNames], inputtext);
SendClientMessageToAll(COLOR_LIGHTRED, stringer1);
new housekey = PlayerInfo[playerid][pPhousekey];
if (housekey != 255)
{
strmid(HouseInfo[housekey][hOwner], inputtext, 0, strlen(inputtext), 255);
SaveHouse(housekey);
}
if(GetPlayerBizz(playerid))
{
new i = GetPVarInt(playerid, "PlayerBizz");
strmid(BizzInfo[i][bOwner],inputtext,0,strlen(inputtext),MAX_PLAYER_NAME);
SaveBizz(i);
UpdateBizz(i);
}
mysql_format(connects, mysql_query_, sizeof(mysql_query_), "UPDATE `"TABLE_ACCOUNT"` SET `name` = '%e' WHERE `id` = '%d'", inputtext, PlayerInfo[playerid][pID]);
mysql_tquery(connects, mysql_query_, "", "");
mysql_format(connects, mysql_query_, sizeof(mysql_query_), "INSERT INTO `setname` ( `account`, `old_nick`, `new_nick` ) VALUES ( '%d', '%s', '%e')", PlayerInfo[playerid][pID], PlayerInfo[playerid][pNames], inputtext);
mysql_tquery(connects, mysql_query_, "", "" );
SetPlayerName(playerid, inputtext),
GetPlayerName(playerid, PlayerInfo[playerid][pNames], 24);
PlayerInfo[playerid][pDonatemoney2] -= 300;
}
}
else
{
if(rows) return ShowPlayerDialog(playerid, 364, DIALOG_STYLE_INPUT, !COLOR_TITLE"Ошибка", !COLOR_ERROR"К сожалению, данный никнэйм занят.\n\nПовторите попытку, используя другой:", "Изменить", "Выйти");
SetPlayerName(playerid, inputtext), GetPlayerName(playerid, PlayerInfo[playerid][pNames], 24);
StartRegister(playerid);
}
return true;
}
C++:
case 364:
{
if(!response)
{
SendClientMessage(playerid, COLOR_REDD, "Используйте (/q)it для выхода");
return KickEx(playerid);
}
else if(!IsValidRpName(inputtext)) return ShowPlayerDialog(playerid, 364, DIALOG_STYLE_INPUT,
!COLOR_TITLE"Смена имени",
!COLOR_TEXT"Приветствуем вас на "COLOR_NOTE"Games RolePlay"COLOR_TEXT"!\nК сожалению, Ваш ник не соотвесвует нормам Role Play режима\n\nПримеры Role Play ников: "COLOR_NOTE"Carl_Johnson, Katy_Johnson"COLOR_TEXT"\nВам необходимо его сменить:",
!"Далее", !"Выйти");
mysql_format(connects,mysql_query_, sizeof(mysql_query_), "SELECT 1 FROM `"TABLE_ACCOUNT"` WHERE `name` = '%e'", inputtext);
return mysql_tquery(connects, mysql_query_, "OnPlayerCheckName", "isi", playerid, inputtext, 0);
}
C++:
publics: OnPlayerRegCheck(playerid, race_check)
{
if (race_check != g_MysqlRaceCheck[playerid]) return Kick(playerid); // Если сессия несовпадает (запрос выполнился не для того игрока).
if(cache_num_rows() > 0)
{
cache_get_value_name(0, "password", PlayerInfo[playerid][pPassword], 65);
cache_get_value_name(0, "salt", PlayerInfo[playerid][pSalt], 11);
PlayerInfo[playerid][Cache_ID] = cache_save();
ShowPlayerDialog(playerid, 7, DIALOG_STYLE_PASSWORD, ""SE_R"Авторизация аккаунта", ""WH_C"Добро пожаловать на сервер "SE_R"Games Role Play!\n"WH_C"Данный аккаунт"ZL_D" зарегистрирован"WH_C" введите пароль от аккаунта.\n\nДля начала игры необходимо пройти авторизацию\nПопыток ввода пароля осталось: "COLOR_ERROR"3 / 3", !"Войти", !"Выйти");
}
else
{
if(!IsValidRpName(PlayerInfo[playerid][pNames]))
{
return ShowPlayerDialog(playerid, 364, DIALOG_STYLE_INPUT,!COLOR_TITLE"Смена имени",!COLOR_TEXT"Приветствуем вас на "COLOR_NOTE"Games RolePlay"COLOR_TEXT"!\nК сожалению, Ваш ник не соотвесвует нормам Role Play режима\n\nПримеры Role Play ников: "COLOR_NOTE"Carl_Johnson, Katy_Johnson"COLOR_TEXT"\nВам необходимо его сменить:",!"Далее", !"Выйти");
}
StartRegister(playerid);
}
return true;
}
