Maxim_Silent
Умник
Доброго времени суток уважаемые павно-кодеры.
Проблема такая,при загрузке регистрации - просто крашит ГТА. То есть у меня появляется регистрационный ТД и сразу краш. И дело не в сборке,у нас большая админ команда и у всех так. Я сам пробовал с чистой и своей сборки. В консоли - ошибок нету.
Когда закомментил регистрацию - все норм. Краша нет, но и конечно же - реги нету.
Смотрел обзор на мод,как-то же на его заходили,понимаю, что бесплатно никто ничего не даст,но хотелось бы попробовать его все таки запустить.
Сама регистрация, может у кого какие догадки есть.
Проблема такая,при загрузке регистрации - просто крашит ГТА. То есть у меня появляется регистрационный ТД и сразу краш. И дело не в сборке,у нас большая админ команда и у всех так. Я сам пробовал с чистой и своей сборки. В консоли - ошибок нету.
Когда закомментил регистрацию - все норм. Краша нет, но и конечно же - реги нету.
Смотрел обзор на мод,как-то же на его заходили,понимаю, что бесплатно никто ничего не даст,но хотелось бы попробовать его все таки запустить.
Сама регистрация, может у кого какие догадки есть.
Код:
stock ShowRegisterDialog(playerid)
{
SetPVarInt(playerid,"time_logged",180);
Rega_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 537.3062, 133.5850, FixText("ДОБРО ПОЖАЛОВАТЬ~n~ATLANTA ROLE PLAY!")); // пароль
PlayerTextDrawLetterSize(playerid, Rega_PTD[playerid][0], 0.1682, 0.8366);
PlayerTextDrawAlignment(playerid, Rega_PTD[playerid][0], 1);
PlayerTextDrawColor(playerid, Rega_PTD[playerid][0], -1);
PlayerTextDrawBackgroundColor(playerid, Rega_PTD[playerid][0], 255);
PlayerTextDrawFont(playerid, Rega_PTD[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, Rega_PTD[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, Rega_PTD[playerid][0], 0);
Rega_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 512.3142, 247.0888, "ld_beat:chit"); // пароль цвет
PlayerTextDrawTextSize(playerid, Rega_PTD[playerid][1], 7.0000, 7.0000);
PlayerTextDrawAlignment(playerid, Rega_PTD[playerid][1], 1);
PlayerTextDrawColor(playerid, Rega_PTD[playerid][1], 0xFF0000FF);
PlayerTextDrawBackgroundColor(playerid, Rega_PTD[playerid][1], 255);
PlayerTextDrawFont(playerid, Rega_PTD[playerid][1], 4);
PlayerTextDrawSetProportional(playerid, Rega_PTD[playerid][1], 0);
PlayerTextDrawSetShadow(playerid, Rega_PTD[playerid][1], 0);
Rega_PTD[playerid][2] = CreatePlayerTextDraw(playerid, 554.9675, 246.8294, FixText("ВВЕСТИ ПАРОЛЬ...")); // пароль
PlayerTextDrawLetterSize(playerid, Rega_PTD[playerid][2], 0.1419, 0.6915);
PlayerTextDrawTextSize(playerid, Rega_PTD[playerid][2], 15.0000, 68.0000);
PlayerTextDrawAlignment(playerid, Rega_PTD[playerid][2], 2);
PlayerTextDrawColor(playerid, Rega_PTD[playerid][2], -1061109505);
PlayerTextDrawUseBox(playerid, Rega_PTD[playerid][2], 1);
PlayerTextDrawBoxColor(playerid, Rega_PTD[playerid][2], -256);
PlayerTextDrawBackgroundColor(playerid, Rega_PTD[playerid][2], 255);
PlayerTextDrawFont(playerid, Rega_PTD[playerid][2], 1);
PlayerTextDrawSetProportional(playerid, Rega_PTD[playerid][2], 1);
PlayerTextDrawSetShadow(playerid, Rega_PTD[playerid][2], 0);
PlayerTextDrawSetSelectable(playerid, Rega_PTD[playerid][2], true);
Rega_PTD[playerid][3] = CreatePlayerTextDraw(playerid, 512.3142, 271.1477, "ld_beat:chit"); // мыло цвет
PlayerTextDrawTextSize(playerid, Rega_PTD[playerid][3], 7.0000, 7.0000);
PlayerTextDrawAlignment(playerid, Rega_PTD[playerid][3], 1);
PlayerTextDrawColor(playerid, Rega_PTD[playerid][3], 0xFF0000FF);
PlayerTextDrawBackgroundColor(playerid, Rega_PTD[playerid][3], 255);
PlayerTextDrawFont(playerid, Rega_PTD[playerid][3], 4);
PlayerTextDrawSetProportional(playerid, Rega_PTD[playerid][3], 0);
PlayerTextDrawSetShadow(playerid, Rega_PTD[playerid][3], 0);
Rega_PTD[playerid][4] = CreatePlayerTextDraw(playerid, 554.9675, 270.8886, FixText("ВВЕСТИ E-MAIL...")); // мыло
PlayerTextDrawLetterSize(playerid, Rega_PTD[playerid][4], 0.1419, 0.6915);
PlayerTextDrawTextSize(playerid, Rega_PTD[playerid][4], 15.0000, 68.0000);
PlayerTextDrawAlignment(playerid, Rega_PTD[playerid][4], 2);
PlayerTextDrawColor(playerid, Rega_PTD[playerid][4], -1061109505);
PlayerTextDrawUseBox(playerid, Rega_PTD[playerid][4], 1);
PlayerTextDrawBoxColor(playerid, Rega_PTD[playerid][4], -256);
PlayerTextDrawBackgroundColor(playerid, Rega_PTD[playerid][4], 255);
PlayerTextDrawFont(playerid, Rega_PTD[playerid][4], 1);
PlayerTextDrawSetProportional(playerid, Rega_PTD[playerid][4], 1);
PlayerTextDrawSetShadow(playerid, Rega_PTD[playerid][4], 0);
PlayerTextDrawSetSelectable(playerid, Rega_PTD[playerid][4], true);
Rega_PTD[playerid][5] = CreatePlayerTextDraw(playerid, 512.6473, 295.2073, "Ld_Beat:chit"); // реферал цвет
PlayerTextDrawTextSize(playerid, Rega_PTD[playerid][5], 7.0000, 7.0000);
PlayerTextDrawAlignment(playerid, Rega_PTD[playerid][5], 1);
PlayerTextDrawColor(playerid, Rega_PTD[playerid][5], 0xFF0000FF);
PlayerTextDrawBackgroundColor(playerid, Rega_PTD[playerid][5], 255);
PlayerTextDrawFont(playerid, Rega_PTD[playerid][5], 4);
PlayerTextDrawSetProportional(playerid, Rega_PTD[playerid][5], 0);
PlayerTextDrawSetShadow(playerid, Rega_PTD[playerid][5], 0);
Rega_PTD[playerid][6] = CreatePlayerTextDraw(playerid, 555.3007, 294.9482, FixText("ВЫБРАТЬ ПОЛ...")); // реферал
PlayerTextDrawLetterSize(playerid, Rega_PTD[playerid][6], 0.1419, 0.6915);
PlayerTextDrawTextSize(playerid, Rega_PTD[playerid][6], 15.0000, 68.0000);
PlayerTextDrawAlignment(playerid, Rega_PTD[playerid][6], 2);
PlayerTextDrawColor(playerid, Rega_PTD[playerid][6], -1061109505);
PlayerTextDrawUseBox(playerid, Rega_PTD[playerid][6], 1);
PlayerTextDrawBoxColor(playerid, Rega_PTD[playerid][6], -256);
PlayerTextDrawBackgroundColor(playerid, Rega_PTD[playerid][6], 255);
PlayerTextDrawFont(playerid, Rega_PTD[playerid][6], 1);
PlayerTextDrawSetProportional(playerid, Rega_PTD[playerid][6], 1);
PlayerTextDrawSetShadow(playerid, Rega_PTD[playerid][6], 0);
PlayerTextDrawSetSelectable(playerid, Rega_PTD[playerid][6], true);
for(new i; i < 61; i++) TextDrawShowForPlayer(playerid, Rega_TD[i]);
for(new i; i < 7; i++) PlayerTextDrawShow(playerid, Rega_PTD[playerid][i]);
SelectTextDraw(playerid, 0xEA363FF);
SetPVarInt(playerid, "reg", 1);
return 1;
}
Код:
publics: CheckPlayerRegistered(playerid, race_check)
{
if(!IsPlayerConnected(playerid)) return 1;
if(race_check != gMysqlRaceCheck[playerid]) return KickEx(playerid, "BUG REGISTER/Autor#1");
new rows;
cache_get_row_count(rows);
if(rows) ShowLoginDialog(playerid);
else ShowRegisterDialog(playerid);
RemoveBuildings(playerid);
return 1;
}
