Доступ к архиву

Переход в группу "Пользователь"

300.00 ₽
Одноразовый платёж
Быстрый переход в группу "Пользователи", без надобности написания постов и ожидания.

Покупка дает возможность:
Быть полноправным участником форума
Нормальное копирование кода
Создавать темы
Скачивать файлы
Доступ к архиву Pawno-Info

1. Вопрос по коду?

Статус
В этой теме нельзя размещать новые ответы.

iSkril

Умник
У меня в коде есть такие строки

PHP:
case 9973:
		{
			if(response)
			{
				switch(listitem)
				{
				case 0:
					{
						if(gOoc[playerid] == 0)
						{
						    gOoc[playerid] = 1;
						    SendClientMessage(playerid, 0x6495EDFF, "OOC ÷àò âûêëþ÷åí");
						    new nastroi[158];
						    new nastroi1[28];
						    new nastroi2[28];
						    new nastroi3[28];
						    if(gOoc[playerid] == 1) nastroi1 = "âêëþ÷èòü";
						    else if(gOoc[playerid] == 0) nastroi1 = "âûêëþ÷èòü";
						    if(gFam[playerid] == 1) nastroi2 = "âêëþ÷èòü";
						    else if(gFam[playerid] == 0) nastroi2 = "âûêëþ÷èòü";
						    if(GetPVarInt(playerid, "niki") == 1) nastroi3 = "âêëþ÷èòü";
						    else if(GetPVarInt(playerid, "niki") == 0) nastroi3 = "âûêëþ÷èòü";
						    format(nastroi,sizeof(nastroi), "[1] ×àò îîñ\t\t %s\n[2] ×àò ñåìüè\t\t %s\n[3] Íèêè èãðîêîâ\t %s", nastroi1,nastroi2,nastroi3);
				            ShowPlayerDialog(playerid, 9973, DIALOG_STYLE_LIST, "Íàñòðîéêè",nastroi, "Âûáðàòü", "Íàçàä");
						    return true;
					    }
					    gOoc[playerid] = 0;
					    SendClientMessage(playerid, 0x6495EDFF, "OOC ÷àò âêëþ÷åí");
					    new nastroi[158];
					    new nastroi1[28];
					    new nastroi2[28];
					    new nastroi3[28];
					    if(gOoc[playerid] == 1) nastroi1 = "âêëþ÷èòü";
					    else if(gOoc[playerid] == 0) nastroi1 = "âûêëþ÷èòü";
					    if(gFam[playerid] == 1) nastroi2 = "âêëþ÷èòü";
					    else if(gFam[playerid] == 0) nastroi2 = "âûêëþ÷èòü";
					    if(GetPVarInt(playerid, "niki") == 1) nastroi3 = "âêëþ÷èòü";
					    else if(GetPVarInt(playerid, "niki") == 0) nastroi3 = "âûêëþ÷èòü";
						format(nastroi,sizeof(nastroi), "[1] ×àò îîñ\t\t %s\n[2] ×àò ñåìüè\t\t %s\n[3] Íèêè èãðîêîâ\t %s", nastroi1,nastroi2,nastroi3);
                        ShowPlayerDialog(playerid, 9973, DIALOG_STYLE_LIST, "Íàñòðîéêè",nastroi, "Âûáðàòü", "Íàçàä");
					}
				case 1:
					{
						if(gFam[playerid] == 0)
						{
						    gFam[playerid] = 1;
						    SendClientMessage(playerid, 0x6495EDFF, "×àò ñåìüè îòêëþ÷åí");
						    new nastroi[158];
						    new nastroi1[28];
						    new nastroi2[28];
						    new nastroi3[28];
						    if(gOoc[playerid] == 1) nastroi1 = "âêëþ÷èòü";
						    else if(gOoc[playerid] == 0) nastroi1 = "âûêëþ÷èòü";
						    if(gFam[playerid] == 1) nastroi2 = "âêëþ÷èòü";
						    else if(gFam[playerid] == 0) nastroi2 = "âûêëþ÷èòü";
						    if(GetPVarInt(playerid, "niki") == 1) nastroi3 = "âêëþ÷èòü";
						    else if(GetPVarInt(playerid, "niki") == 0) nastroi3 = "âûêëþ÷èòü";
						    format(nastroi,sizeof(nastroi), "[1] ×àò îîñ\t\t %s\n[2] ×àò ñåìüè\t\t %s\n[3] Íèêè èãðîêîâ\t %s", nastroi1,nastroi2,nastroi3);
				            ShowPlayerDialog(playerid, 9973, DIALOG_STYLE_LIST, "Íàñòðîéêè",nastroi, "Âûáðàòü", "Íàçàä");
						    return true;
					    }
					    gFam[playerid] = 0;
						SendClientMessage(playerid, 0x6495EDFF, "×àò ñåìüè âêëþ÷¸í");
					    new nastroi[158];
					    new nastroi1[28];
					    new nastroi2[28];
					    new nastroi3[28];
					    if(gOoc[playerid] == 1) nastroi1 = "âêëþ÷èòü";
					    else if(gOoc[playerid] == 0) nastroi1 = "âûêëþ÷èòü";
					    if(gFam[playerid] == 1) nastroi2 = "âêëþ÷èòü";
					    else if(gFam[playerid] == 0) nastroi2 = "âûêëþ÷èòü";
					    if(GetPVarInt(playerid, "niki") == 1) nastroi3 = "âêëþ÷èòü";
					    else if(GetPVarInt(playerid, "niki") == 0) nastroi3 = "âûêëþ÷èòü";
						format(nastroi,sizeof(nastroi), "[1] ×àò îîñ\t\t %s\n[2] ×àò ñåìüè\t\t %s\n[3] Íèêè èãðîêîâ\t %s", nastroi1,nastroi2,nastroi3);
                        ShowPlayerDialog(playerid, 9973, DIALOG_STYLE_LIST, "Íàñòðîéêè",nastroi, "Âûáðàòü", "Íàçàä");
					}
				case 2:
					{
                        if(GetPVarInt(playerid, "niki") == 0)
                        {
                            SetPVarInt(playerid, "niki", 1);
                            foreach(new i : Player) ShowPlayerNameTagForPlayer(playerid, i, true);
                            SendClientMessage(playerid, 0x6495EDFF, "Íèêè èãðîêîâ âàì îòêëþ÷åíû");
						    new nastroi[158];
						    new nastroi1[28];
						    new nastroi2[28];
						    new nastroi3[28];
						    if(gOoc[playerid] == 1) nastroi1 = "âêëþ÷èòü";
						    else if(gOoc[playerid] == 0) nastroi1 = "âûêëþ÷èòü";
						    if(gFam[playerid] == 1) nastroi2 = "âêëþ÷èòü";
						    else if(gFam[playerid] == 0) nastroi2 = "âûêëþ÷èòü";
						    if(GetPVarInt(playerid, "niki") == 1) nastroi3 = "âêëþ÷èòü";
						    else if(GetPVarInt(playerid, "niki") == 0) nastroi3 = "âûêëþ÷èòü";
						    format(nastroi,sizeof(nastroi), "[1] ×àò îîñ\t\t %s\n[2] ×àò ñåìüè\t\t %s\n[3] Íèêè èãðîêîâ\t %s", nastroi1,nastroi2,nastroi3);
				            ShowPlayerDialog(playerid, 9973, DIALOG_STYLE_LIST, "Íàñòðîéêè",nastroi, "Âûáðàòü", "Íàçàä");
						    return true;
						}
                        foreach(new i : Player) ShowPlayerNameTagForPlayer(playerid, i, false);
                        DeletePVar(playerid, "niki");
                        SendClientMessage(playerid, 0x6495EDFF, "Íèêè èãðîêîâ âàì âêëþ÷åíû");
					    new nastroi[158];
					    new nastroi1[28];
					    new nastroi2[28];
					    new nastroi3[28];
					    if(gOoc[playerid] == 1) nastroi1 = "âêëþ÷èòü";
					    else if(gOoc[playerid] == 0) nastroi1 = "âûêëþ÷èòü";
					    if(gFam[playerid] == 1) nastroi2 = "âêëþ÷èòü";
					    else if(gFam[playerid] == 0) nastroi2 = "âûêëþ÷èòü";
					    if(GetPVarInt(playerid, "niki") == 1) nastroi3 = "âêëþ÷èòü";
					    else if(GetPVarInt(playerid, "niki") == 0) nastroi3 = "âûêëþ÷èòü";
						format(nastroi,sizeof(nastroi), "[1] ×àò îîñ\t\t %s\n[2] ×àò ñåìüè\t\t %s\n[3] Íèêè èãðîêîâ\t %s", nastroi1,nastroi2,nastroi3);
                        ShowPlayerDialog(playerid, 9973, DIALOG_STYLE_LIST, "Íàñòðîéêè",nastroi, "Âûáðàòü", "Íàçàä");
						}
	            	}
				}
			else
			{
                new listitems[] = "1. Íàñòðîéêè\n2. Ñòàòèñòèêà ïåðñîíàæà\n3. Êîìàíäû ñåðâåðà\n{FFFB00}4. Çàäàòü âîïðîñ ïî èãðå{ffffff}\n5. Ðåïîðò \n6. Ñìåíà ïàðîëÿ\n7. Î÷èñòèòü ÷àò\n8. Ïðàâèëà\n9. Ñëèâ äåíåã\n10. Áåçîïàñíîñòü\n11. Ñìåíà íèêà\n12. Äîíàò";
				ShowPlayerDialog(playerid, 9623, DIALOG_STYLE_LIST, "Ëè÷íîå ìåíþ", listitems, "Âûáðàòü", "Âûéòè");
				return true;
			}
		}
И мне нужно туда вставить эти строки

PHP:
case 5: ShowPlayerDialog(playerid,11,DIALOG_STYLE_INPUT, "Смена пароля", "    Введите Ваш новый пароль     ", "Принять", "Отмена");
case 10: ShowPlayerDialog(playerid,9997,DIALOG_STYLE_INPUT, "Заявка на смену ника", "Напишите новый ник (по форме Имя_Фамилия)", "Отправить", "Назад");
Просто пробываю и так и так что то не получается :(
В конец нужно вставить код
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу