Добро пожаловать!

Зарегистрировавшись у нас, вы сможете обсуждать, делиться и отправлять личные сообщения другим участникам нашего сообщества.

Зарегистрироваться!
  • Если Вы желаете помогать развитию проекта, готовы заполнять раздел(-ы) и подсказывать другим пользователям на портале, есть возможность попасть в команду редакторов. Для этого следует обратиться в техническую поддержку
Пользователь
Регистрация
1 Окт 2024
Сообщения
47
Создаю акк нету сохранение аккаунта в базе данних
0 слотов у игрока играть нельзя мод Werenzon/Carton
 
Пользователь
Регистрация
1 Окт 2024
Сообщения
47
Код:
case 9:
        {
            new stringData[3][40];
            switch(GetPlayerLauncher(playerid) == 2 ? id_var[1] : SearchClickID(request, 1))
            {
                case 0:
                {
                    if(GetPlayerLauncher(playerid) != 2)
                        sscanf(text, "P<|>s[150]s[24]s[32]i", request, stringData[0], stringData[1], id_var[0]);


                    else eventMobile(playerid, {9, 3}, !"loading"), SetPlayerNameEx(playerid, json_ReplaceStr(text, "username"));


                    mysql_tquery(mysql, (str_f("SELECT `ID`, `Password` FROM `accounts` WHERE `NickName` = '%s' LIMIT 1", PN(playerid))), "LoginDialogMySQL", "ds", playerid, GetPlayerLauncher(playerid) == 2 ? json_ReplaceStr(text, "password") : stringData[1]);
                }
                case 1:
                {
                    if(GetPlayerLauncher(playerid) != 2)
                        sscanf(text, "P<|>s[150]s[24]s[32]s[24]", request, stringData[0], stringData[1], stringData[2]);


                    /* Ник */
                    SetPlayerNameEx(playerid, GetPlayerLauncher(playerid) == 2 ? json_ReplaceStr(text, "username") : stringData[0]);


                    /* Пароль */
                    mysql_escape_string(GetPlayerLauncher(playerid) == 2 ? json_ReplaceStr(text, "password") : stringData[1], PI[playerid][pRegistrationPass]);


                    /* Реферал */
                    if(strlen(stringData[2]) > 3)
                        return CheckReferalMySQL(playerid, stringData[2]);


                    ShowRegisterDialog(playerid, 5);
                }
                case 3:
                {
                    switch(GetPlayerLauncher(playerid) == 2 ? id_var[2] : SearchClickID(request, 2))
                    {
                        case 0:
                        {
                         new Cache:result = mysql_query(mysql, (str_f("INSERT INTO accounts (`NickName`, Password, `%s`, Sex, Race, Skin, ReferalID, `%s`, `%s`) VALUES ('%s', '%s', %d, %d, %d, %d, %d, %d, %d)", PN(playerid), MD5_Hash(PI[playerid][pRegistrationPass]), ServerCFG[bonus_level], PI[playerid][pSex], PI[playerid][pRace], PI[playerid][pSkin][0], PI[playerid][pReferalID], ServerCFG[bonus_money], ServerCFG[bonus_donate])));
                            SCM(playerid, COLOR_VALIK, !"[Подсказка] {FFFFFF}Благодарим вас за регистрацию на нашем сервере");
                            SCM(playerid, COLOR_VALIK, !"[Подсказка] {FFFFFF}Сейчас вам желательно добраться до мэрии и получить паспорт");
                            PI[playerid][pID] = cache_insert_id();
                            cache_delete(result);


                            foreach(Player, i) {
                                if(PI[i][pAdmin] && ADuty{i} && !AdminInfo[i][admInfoNewPlayer])
                                    SCMF(i, -1, "Приветствуем нового игрока нашего сервера: {FF9900}%s {FFFFFF}(ID: %i) {cccccc}IP: %s",PlayerName[playerid], playerid, AdminInfo[i][admIP] ? "Скрыто":PlayerIp[playerid]);
                            }


                            SetFullness(playerid, 30);
                            UpdatePlayerHealth(playerid,100);


                            if(GetPlayerLauncher(playerid) == 2 || pTemp[playerid][cefAuth])
                                HideActor(playerid, pTemp[playerid][cefAuthActor]);


                            OnPlayerLogin(playerid);
                        }
                        case 1:
                        {
                            new floor = PI[playerid][pSex], human = PI[playerid][pRace];


                            if(GetPlayerLauncher(playerid) != 2)
                                sscanf(text, "P<|>s[150]s[5]s[6]i", request, stringData[0], stringData[1], id_var[0]);


                            if(GetPlayerLauncher(playerid) >= 1)
                                floor = GetPlayerLauncher(playerid) != 2 ? (GetString(stringData[0], "man") ? 0 : 1 ) : json_ReplaceInt(text, "gender"),
                                human = GetPlayerLauncher(playerid) != 2 ? (GetString(stringData[1], "white") ? 0 : 1 ) : json_ReplaceInt(text, "skin");


                            if(GetPlayerLauncher(playerid) != 2 && !pTemp[playerid][cefAuth])
                            {
                                if(id_var[0] > (floor ? 2 : 5) && id_var[0] < sizeof(skinRegistration[][])) TextDrawShowForPlayer(playerid, clothChois[9]);
                                if(id_var[0] > (floor ? 4 : 10) || id_var[0] < 0)
                                {
                                    if(id_var[0] < 0) id_var[0] = pTemp[playerid][tSkinSelectedId] = pTemp[playerid][tSkinSelectedId]+(floor ? 5 : 11);
                                    else if(id_var[0] > (floor ? 2 : 5)) id_var[0] = pTemp[playerid][tSkinSelectedId] = 0;
                                }
                                if(id_var[0] >= sizeof(skinRegistration[][])-(floor ? 5 : 8) && !IsTextDrawVisibleForPlayer(playerid, clothChois[4])) TextDrawShowForPlayer(playerid, clothChois[4]);
                                else if(id_var[0] == (floor ? 1 : 4)) TextDrawHideForPlayer(playerid, clothChois[4]);
                                else if(id_var[0] == (floor ? 2 : 5)) TextDrawHideForPlayer(playerid, clothChois[9]), TextDrawShowForPlayer(playerid, clothChois[4]);
                                return SetPlayerSkin(playerid, skinRegistration[floor][human][GetPlayerLauncher(playerid) != 2 ? id_var[0] : json_ReplaceInt(text, "clothes")]);
                            }
                            PI[playerid][pSkin][0] = GetSkinInfo(skinRegistration[floor][human][GetPlayerLauncher(playerid) != 2 ? id_var[0] : json_ReplaceInt(text, "clothes")], 2);
                            HideActor(playerid, pTemp[playerid][cefAuthActor]), ShowActor(playerid, pTemp[playerid][cefAuthActor], skinRegistration[floor][human][GetPlayerLauncher(playerid) != 2 ? id_var[0] : json_ReplaceInt(text, "clothes")], 1773.3618, -1901.4326, 13.5511, 105.8005);
                        }
                    }
                }
            }
        }
 
Пользователь
Регистрация
28 Мар 2024
Сообщения
47
2.19. Запрещено оскорбление как пользователей форума, так и сторонних людей.
Код:
case 9:
        {
            new stringData[3][40];
            switch(GetPlayerLauncher(playerid) == 2 ? id_var[1] : SearchClickID(request, 1))
            {
                case 0:
                {
                    if(GetPlayerLauncher(playerid) != 2)
                        sscanf(text, "P<|>s[150]s[24]s[32]i", request, stringData[0], stringData[1], id_var[0]);


                    else eventMobile(playerid, {9, 3}, !"loading"), SetPlayerNameEx(playerid, json_ReplaceStr(text, "username"));


                    mysql_tquery(mysql, (str_f("SELECT `ID`, `Password` FROM `accounts` WHERE `NickName` = '%s' LIMIT 1", PN(playerid))), "LoginDialogMySQL", "ds", playerid, GetPlayerLauncher(playerid) == 2 ? json_ReplaceStr(text, "password") : stringData[1]);
                }
                case 1:
                {
                    if(GetPlayerLauncher(playerid) != 2)
                        sscanf(text, "P<|>s[150]s[24]s[32]s[24]", request, stringData[0], stringData[1], stringData[2]);


                    /* Ник */
                    SetPlayerNameEx(playerid, GetPlayerLauncher(playerid) == 2 ? json_ReplaceStr(text, "username") : stringData[0]);


                    /* Пароль */
                    mysql_escape_string(GetPlayerLauncher(playerid) == 2 ? json_ReplaceStr(text, "password") : stringData[1], PI[playerid][pRegistrationPass]);


                    /* Реферал */
                    if(strlen(stringData[2]) > 3)
                        return CheckReferalMySQL(playerid, stringData[2]);


                    ShowRegisterDialog(playerid, 5);
                }
                case 3:
                {
                    switch(GetPlayerLauncher(playerid) == 2 ? id_var[2] : SearchClickID(request, 2))
                    {
                        case 0:
                        {
                         new Cache:result = mysql_query(mysql, (str_f("INSERT INTO accounts (`NickName`, Password, `%s`, Sex, Race, Skin, ReferalID, `%s`, `%s`) VALUES ('%s', '%s', %d, %d, %d, %d, %d, %d, %d)", PN(playerid), MD5_Hash(PI[playerid][pRegistrationPass]), ServerCFG[bonus_level], PI[playerid][pSex], PI[playerid][pRace], PI[playerid][pSkin][0], PI[playerid][pReferalID], ServerCFG[bonus_money], ServerCFG[bonus_donate])));
                            SCM(playerid, COLOR_VALIK, !"[Подсказка] {FFFFFF}Благодарим вас за регистрацию на нашем сервере");
                            SCM(playerid, COLOR_VALIK, !"[Подсказка] {FFFFFF}Сейчас вам желательно добраться до мэрии и получить паспорт");
                            PI[playerid][pID] = cache_insert_id();
                            cache_delete(result);


                            foreach(Player, i) {
                                if(PI[i][pAdmin] && ADuty{i} && !AdminInfo[i][admInfoNewPlayer])
                                    SCMF(i, -1, "Приветствуем нового игрока нашего сервера: {FF9900}%s {FFFFFF}(ID: %i) {cccccc}IP: %s",PlayerName[playerid], playerid, AdminInfo[i][admIP] ? "Скрыто":PlayerIp[playerid]);
                            }


                            SetFullness(playerid, 30);
                            UpdatePlayerHealth(playerid,100);


                            if(GetPlayerLauncher(playerid) == 2 || pTemp[playerid][cefAuth])
                                HideActor(playerid, pTemp[playerid][cefAuthActor]);


                            OnPlayerLogin(playerid);
                        }
                        case 1:
                        {
                            new floor = PI[playerid][pSex], human = PI[playerid][pRace];


                            if(GetPlayerLauncher(playerid) != 2)
                                sscanf(text, "P<|>s[150]s[5]s[6]i", request, stringData[0], stringData[1], id_var[0]);


                            if(GetPlayerLauncher(playerid) >= 1)
                                floor = GetPlayerLauncher(playerid) != 2 ? (GetString(stringData[0], "man") ? 0 : 1 ) : json_ReplaceInt(text, "gender"),
                                human = GetPlayerLauncher(playerid) != 2 ? (GetString(stringData[1], "white") ? 0 : 1 ) : json_ReplaceInt(text, "skin");


                            if(GetPlayerLauncher(playerid) != 2 && !pTemp[playerid][cefAuth])
                            {
                                if(id_var[0] > (floor ? 2 : 5) && id_var[0] < sizeof(skinRegistration[][])) TextDrawShowForPlayer(playerid, clothChois[9]);
                                if(id_var[0] > (floor ? 4 : 10) || id_var[0] < 0)
                                {
                                    if(id_var[0] < 0) id_var[0] = pTemp[playerid][tSkinSelectedId] = pTemp[playerid][tSkinSelectedId]+(floor ? 5 : 11);
                                    else if(id_var[0] > (floor ? 2 : 5)) id_var[0] = pTemp[playerid][tSkinSelectedId] = 0;
                                }
                                if(id_var[0] >= sizeof(skinRegistration[][])-(floor ? 5 : 8) && !IsTextDrawVisibleForPlayer(playerid, clothChois[4])) TextDrawShowForPlayer(playerid, clothChois[4]);
                                else if(id_var[0] == (floor ? 1 : 4)) TextDrawHideForPlayer(playerid, clothChois[4]);
                                else if(id_var[0] == (floor ? 2 : 5)) TextDrawHideForPlayer(playerid, clothChois[9]), TextDrawShowForPlayer(playerid, clothChois[4]);
                                return SetPlayerSkin(playerid, skinRegistration[floor][human][GetPlayerLauncher(playerid) != 2 ? id_var[0] : json_ReplaceInt(text, "clothes")]);
                            }
                            PI[playerid][pSkin][0] = GetSkinInfo(skinRegistration[floor][human][GetPlayerLauncher(playerid) != 2 ? id_var[0] : json_ReplaceInt(text, "clothes")], 2);
                            HideActor(playerid, pTemp[playerid][cefAuthActor]), ShowActor(playerid, pTemp[playerid][cefAuthActor], skinRegistration[floor][human][GetPlayerLauncher(playerid) != 2 ? id_var[0] : json_ReplaceInt(text, "clothes")], 1773.3618, -1901.4326, 13.5511, 105.8005);
                        }
                    }
                }
            }
        }
ты тупой это клики просто
 
Сверху