Задай вопрос экспертам!

Посмотреть всех экспертов из раздела Технологии > Java/J2EE
import java.applet.Applet;
import java.awt.*;
import java.net.MalformedURLException;
import java.net.URL;

public class Importing1 extends Applet {
Image img;
Dimension dm;
Graphics gr;
URL ur;
public void init()
{
Importing1 imp = new Importing1();
try {
ur = new URL(«i4.mirror.co.uk/incoming/article2106793.ece/alternates/s2197/Fluffy-White-dog.jpg»);
} catch (MalformedURLException e) {
e.printStackTrace();
}
imp.getImage(ur);
dm.setSize(40, 40);
gr.drawImage(img, 4, 4, this);
}
}
Даны два списка L1 и L2. Удалить из списка L1 все элементы, меньшие любого элемента списка L2.
начало программы.
import java.applet.*;
import java.awt.*;

class List{
int info;
List next;
}

public class lab6 {
List L1=null;
List L2=null;

public List form (int e,List L) {
List F=L;
List N=new List();
N.info=e; N.next=null;
if (L==null) F=N;
else {
while (L.next!=null) L=L.next;
L.next=N;
}
return F;
}
public void compare(List L1, List L2){

}

public void print (List L){
while (L!=null) {
System.out.print(L.info+" ");
L=L.next;
}
System.out.println("<--");
}

public int min(List L){
int min=L.info;
while (L!=null) {
if (L.info<min) min=L.info;
L=L.next;
}
return min;
}
public lab6() {

for (int i=1;i<=25;i++){
L1=form((int)Math.round(50*Math.random())-25,L1);}
System.out.print(«Список L1: „);
print (L1);

for (int i=1;i<=25;i++){
L2=form((int)Math.round(50*Math.random())-5,L2);}
System.out.print(“Список L2: „);
print (L2);
int m=min(L2);
System.out.println(“min 2 spiska=»+m);

}

public boolean delete (int min) {
boolean b=false;
if (L1!=null){
if (L1.info<min){
L1=L1.next; b=true;}
else {
List P=L1;
while (P.next!=null) {
if (P.next.info<min) {
P.next=P.next.next; b=true;
}
if (P.next!=null) P=P.next;
}
}

}
return b;
}


public static void main (String args[]) {
lab6 p=new lab6();
}

}

SOS

как удалить хомачи если пишет ошибку Another insallation is in progress. You must complete that insatallation before continuing this one.

наверное помощь с сервером, следовательно нужно чтоб все три приложения для разных платформ были на одном сервере, игра уже придумана, нужны ток коды программ и помоч все это организовать

здравствуйте! пыталась переустановить яву. новая выдает ошибку при загрузке. старая не удаляется: пишет, когда нажимаю удалить, что произошла неисправимая ошибка. Может кто помочь?

вкл игр: Устройство 0 не поддерживается игрой.Не обнаружено поддерживаемой видео карты.Проверьте комплектацию вашей системы.

И так у всех игр Незнаю что делать Недавно поставили Виндоус 7

C недавних пор не могу зайти в opera mini. Всё время выбивает ошибку : 

Java/lang/ClassNotFoundException. Помогите, пожалуйста.

 
 
 
 
 
 
<strong>Помогите убрать функцию выдать USP.</strong>
 
/*
* ===================================<br /> * -------- VIP MENU BY KRIAX --------<br /> * ===================================<br /> *<br /> * ------ VERSION 1.1 ------<br /> * - HEALTH<br /> * - ARMOR<br /> * - SPEED<br /> * - MONEY<br /> * - USP<br /> * - GRENADE<br /> * - FLASH<br /> *<br /> * ------------ VERSION 1.2  ------------<br /> * - EUPLOADING GRAVITY<br /> * - EUPLOADING CLAN TAG<br /> * <br /> * ------------ VERSION 1.3 ------------<br /> * - ADDING CVAR FOR ENABLE / DESABLE<br /> * - FIXED BUG GRAVITY<br /> * - ADDING REGENERATION<br /> * - ADDING 3 ADVERTS<br /> * - ADDING DE PREFIX<br /> * - ADDING CVAR FOR CLAN TAG<br /> *<br /> * ------------ VERSION 1.4 ------------<br /> * - CHOICE OF OPPENING --> 1X - 2X - 3X - 4X - ... <--<br /> * - CHANGE COLOR<br /> * - ADDING VIP NAME<br /> * - ADDING THIRDPERSON<br /> * - ADDING TRANSPARENCY<br /> * - ADDING RESPAWN<br /> *<br /> * ===================================<br /> * ------------- CERDITS -------------<br /> * ===================================<br /> *<br /> * - THANX INEX FOR VERSION 1.1<br /> * - THANX RAIDEN FOR VERSION 1.2<br /> * - THANX GHOST FOR ALL THE ASSISTANCE<br /> */<br /> <br />#pragma semicolon 1<br /><br />#include <sourcemod><br />#include <sdktools><br />#include <cstrike><br />#include <playername><br />#include <smlib><br />#include <morecolors><br /><br />#define INFO_VERSION "1.4"<br /><br />public Plugin:myinfo = <br />{<br />    name = "*~ Menu Vip ~*",<br />    author = "*~ Kriax ~*",<br />    description = "Advantage Menu -Flag O-",<br />    version = INFO_VERSION,<br />}<br /><br />new Handle:g_iHealth = INVALID_HANDLE;<br />new Handle:g_iArmor = INVALID_HANDLE;<br />new Handle:g_iSpeed = INVALID_HANDLE;<br />new Handle:g_iMoney = INVALID_HANDLE;<br />new Handle:g_iGravity = INVALID_HANDLE;<br />new Handle:Active_Vie = INVALID_HANDLE;<br />new Handle:Active_Armure = INVALID_HANDLE;<br />new Handle:Active_Usp = INVALID_HANDLE;<br />new Handle:Active_Grenade = INVALID_HANDLE;<br />new Handle:Active_Smoke = INVALID_HANDLE;<br />new Handle:Active_Vitesse = INVALID_HANDLE;<br />new Handle:Active_Argent = INVALID_HANDLE;<br />new Handle:Active_Gravite = INVALID_HANDLE;<br />new Handle:Active_Regeneration = INVALID_HANDLE;<br />new Handle:Active_Rien = INVALID_HANDLE;<br />new Handle:Active_Advert = INVALID_HANDLE;<br />new Handle:Active_Clan_Tag = INVALID_HANDLE;<br />new Handle:Active_Vip_Name = INVALID_HANDLE;<br />new Handle:Active_Transparance = INVALID_HANDLE;<br />new Handle:Active_ThirdPerson = INVALID_HANDLE;<br />new Handle:Active_Respawn = INVALID_HANDLE;<br />new Handle:adverts_info = INVALID_HANDLE;<br />new Handle:adverts_info2 = INVALID_HANDLE;<br />new Handle:g_tagteam = INVALID_HANDLE;<br />new Handle:g_menu = INVALID_HANDLE; <br />new Handle:g_hRegenTimer[MAXPLAYERS + 1];<br />new Handle:g_Interval;<br />new Handle:g_MaxHP;<br />new Handle:g_Inc;<br />new Handle:g_hVip;<br /><br />new String:g_sVip[64];<br />new String:TagTeam[64];<br />new String:info[64];<br />new String:steamid[64];<br /><br />new Float:iGravity = 1.0;<br />new Float:iSpeed = 0.5;<br /><br />new bool:IsValideRegen[MAXPLAYERS+1] = false;<br />new bool:HasMenu[MAXPLAYERS] = false;<br />new bool:HasUseMenu[MAXPLAYERS] = false;<br /><br />new Vie = 0;<br />new Armure = 0;<br />new Usp = 0;<br />new Grenade = 0;<br />new Smoke = 0;<br />new Vitesse = 0;<br />new Argent = 0;<br />new Gravite = 0;<br />new Regeneration = 0;<br />new Rien = 0;<br />new Advert = 0;<br />new Clan_Tag = 0;<br />new Vip_Name = 0;<br />new Transparance = 0;<br />new iHealth = 0;<br />new iArmor = 0;<br />new iMoney = 0;<br />new menuv = 0;  <br />new ThirdPerson = 0;<br />new Respawn = 0;<br />new menu_times[MAXPLAYERS] = 0;<br />new PlayerRespawn[MAXPLAYERS+1];<br /><br />public OnMapStart()<br />{<br />	CreateTimer(120.0, advert, _,TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE);<br />	CreateTimer(240.0, advert2, _,TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE);<br />}<br /><br />public OnPluginStart()<br />{<br />	HookEvent("round_start", OnRoundStart);<br />	HookEvent("player_spawn", OnPlayerSpawn);<br />	HookEvent("player_hurt", OnPlayerHurt);<br /><br />	RegConsoleCmd("sm_vipmenu", menuvip, "Affiche les avantages VIP");<br />	RegConsoleCmd("sm_vipspawn", VipRespawn, "Commande de respawn");<br /><br />	g_menu = CreateConVar("sm_vip_menu", "1", "How many times you can use the menu");<br />	Active_Vie = CreateConVar( "sm_vip_active_vie", "1", "Enable advantage of life");<br />	Active_Armure = CreateConVar( "sm_vip_active_armure", "1", "Enable advantage of armor");<br />	Active_Usp = CreateConVar( "sm_vip_active_usp", "1", "Enable advantage of usp");<br />	Active_Grenade = CreateConVar( "sm_vip_active_grenade", "1", "Enable advantage of grenade");<br />	Active_Smoke = CreateConVar( "sm_vip_active_smoke", "1", "Enable advantage of smoke");<br />	Active_Vitesse = CreateConVar( "sm_vip_active_vitesse", "1", "Enable advantage of speed");<br />	Active_Argent = CreateConVar( "sm_vip_active_argent", "1", "Enable advantage of money");<br />	Active_Gravite = CreateConVar( "sm_vip_active_gravite", "1", "Enable advantage of gravity");<br />	Active_Regeneration = CreateConVar( "sm_vip_active_regeneration", "1", "Enable advantage of regeneration");<br />	Active_Rien = CreateConVar( "sm_vip_active_rien", "1", "Enable the option to leave the menu");<br />	Active_Clan_Tag = CreateConVar( "sm_vip_active_clant_tag", "1", "Enable clan tag vip / / Preferable without Vip Name");<br />	Active_Vip_Name = CreateConVar( "sm_vip_active_vipname", "1", "Enable Vipname [VIP] // Preferable without Clan Tag");<br />	Active_Advert = CreateConVar( "sm_vip_active_advert", "1", "Enable advert - Benefits you and become a VIP now !");<br />	Active_Transparance = CreateConVar( "sm_vip_active_transparance", "1", "Enable transparency");<br />	Active_ThirdPerson = CreateConVar( "sm_vip_active_thirdperson", "1", "Enable ThirdPerson");<br />	Active_Respawn = CreateConVar( "sm_vip_active_respawn", "1", "Enable respawn");<br /><br />	g_iHealth = CreateConVar( "sm_vip_health", "120", "Quantity of life");<br />	g_iArmor = CreateConVar( "sm_vip_armor", "120", "Quantity of armor");<br />	g_iSpeed = CreateConVar( "sm_vip_speed", "1.3", "QQuantity of speed");<br />	g_iMoney = CreateConVar( "sm_vip_money", "16000", "Quantity of money");<br />	g_iGravity = CreateConVar( "sm_vip_gravity", "0.5", "Quantity of gravity");<br />	g_tagteam = CreateConVar( "sm_vip_tagteam", "[VIP]", "Prefix that will appear in your automatic sentences");<br />	g_Interval = CreateConVar("sm_vip_regen_interval", "1.0", "After how long HP regenerated in second");<br />	g_MaxHP = CreateConVar("sm_vip_regen_maxhp", "100", "Max d'HP regen");<br />	g_Inc = CreateConVar("sm_vip_regen_inc", "5", "How much HP will be added to the regeneration");<br />	g_hVip = CreateConVar("sm_vip_tag", ".::VIP::.", "Clan Tag");<br /><br />	adverts_info = CreateConVar("sm_vip_adverts", "1", "Enables advert Information not forget to open the menu.");<br />	adverts_info2 = CreateConVar("sm_vip_adverts2", "1", "Enables the advert information to become vip.");<br /><br />	GetConVarString(g_hVip, g_sVip, sizeof(g_sVip)); <br />	menuv = GetConVarInt(g_menu);<br /><br />	AutoExecConfig(true, "vip_menu");<br />}<br /><br />public OnConfigsExecuted()<br />{<br />	iHealth = GetConVarInt(g_iHealth);<br />	iArmor = GetConVarInt(g_iArmor);<br />	iMoney = GetConVarInt(g_iMoney);<br />	iSpeed = GetConVarFloat(g_iSpeed);<br />	iGravity = GetConVarFloat(g_iGravity);<br /><br />	Vie = GetConVarInt(Active_Vie);<br />	Armure = GetConVarInt(Active_Armure);<br />	Usp = GetConVarInt(Active_Usp);<br />	Grenade = GetConVarInt(Active_Grenade);<br />	Smoke = GetConVarInt(Active_Smoke);<br />	Vitesse = GetConVarInt(Active_Vitesse);<br />	Argent = GetConVarInt(Active_Argent);<br />	Gravite = GetConVarInt(Active_Gravite);<br />	Regeneration = GetConVarInt(Active_Regeneration);<br />	Rien = GetConVarInt(Active_Rien);<br />	Advert = GetConVarInt(Active_Advert);<br />	Clan_Tag = GetConVarInt(Active_Clan_Tag);<br />	Vip_Name = GetConVarInt(Active_Vip_Name);<br />	Transparance = GetConVarInt(Active_Transparance);<br />	ThirdPerson = GetConVarInt(Active_ThirdPerson);<br />	Respawn = GetConVarInt(Active_Respawn);<br />	GetConVarString(g_tagteam, TagTeam, sizeof(TagTeam));<br />}<br /><br />public OnClientSettingsChanged(client)<br />{<br />	change_tag(client);<br />	change_name(client);<br />}<br /><br />public Action:OnPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)<br />{<br />	new client = GetClientOfUserId(GetEventInt(event, "userid"));<br />	change_tag(GetClientOfUserId(GetEventInt(event, "userid")));<br />	IsValideRegen[client] = false;<br /><br />	if (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)	<br />	{<br />		SetEntityGravity(client, 1.0);<br />		SetEntityRenderMode(client, RENDER_TRANSCOLOR);<br />		SetEntityRenderColor(client, 255, 255, 255, 255);<br />	}<br />	<br />	PlayerRespawn[client] = 0;<br /><br />	return Plugin_Handled;<br />}<br /><br />public change_tag(client)<br />{<br />	if (IsClientInGame(client) && Clan_Tag == 1)<br />	{<br />		if (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)	<br />		{<br />			CS_SetClientClanTag(client, g_sVip);<br />		}<br />		else	<br />		{<br />			CS_SetClientClanTag(client, "");<br />		}<br />	}<br />}<br /><br />public OnClientPutInServer(client)<br />{<br />	change_name(GetClientOfUserId(client));<br />}<br /><br />public change_name(client)<br />{<br />	decl String:name[32];<br />	GetClientName(client, name, sizeof(name));  <br />	if (client > 0 && GetUserFlagBits(client) & ADMFLAG_CUSTOM1 && Vip_Name == 1 && StrContains(name, "[VIP]") == -1)<br />	{<br />		new String:new_name[64];<br />		Format(new_name, 64 ,"[VIP] %s", name);<br />		CS_SetClientName(client, new_name,true);<br />	}<br />}<br /><br />public Action:OnRoundStart(Handle:event, const String:name[], bool:dontBroadcast)<br />{<br />	new client = GetClientOfUserId(GetEventInt(event, "userid"));<br />	for(new i = 1; i <= MaxClients; i++)<br />	{<br />		HasMenu[i] = false;<br />		HasUseMenu[i] = false;<br />		menu_times[i] = 0;<br />    }<br />	if(client > 0 && GetClientTeam(client) > 1)<br />	{<br />		CPrintToChatAll("{gold} Напишите {%s} {LightSeaGreen} !vipmenu чтобы открыть VIP меню", TagTeam);<br />	}<br />}<br /><br />public Action:menuvip(client, args)<br />{<br />	GetClientAuthString(client, steamid, sizeof(steamid));<br />	if (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)<br />	{<br />		if(client == 0)<br />		{<br />			CPrintToChat(client, "{gold}%s {LightSeaGreen}Команда не доступна", TagTeam);<br />			return Plugin_Handled;<br />		}<br />		if(menuv <= 0)<br />		{<br />			CPrintToChat(client, "{gold}%s {LightSeaGreen}Команда отключена", TagTeam);<br />			return Plugin_Handled;<br />		}<br />		if(GetClientTeam(client) == 1)<br />		{<br />			CPrintToChat(client, "{gold}%s {LightSeaGreen}Вы не можете использовать эту команду когда вы в наблюдателях", TagTeam);<br />			return Plugin_Handled;<br />		}<br />		if(!IsPlayerAlive(client))<br />		{<br />			CPrintToChat(client, "{gold}%s {LightSeaGreen}Вы должны быть живым", TagTeam);<br />			return Plugin_Handled;		<br />		}<br />		if(HasMenu[client])<br />		{<br />			CPrintToChat(client, menu_times[client] >= menuv ? "{gold}%s {LightSeaGreen}Вы использовали все свои функции":"Вы не можете открыть меню", TagTeam);<br />			return Plugin_Handled;<br />		}<br />		else<br />		{<br />			HasUseMenu[client] = true;<br />			new Handle:menu = CreateMenu(vipmenu);<br />			SetMenuTitle(menu, ".:: Меню Vip ::.");<br />			if (Vie == 1)<br />			{<br />				AddMenuItem(menu, "Vie", "Получить здоровье");<br />			}<br />			if(Armure == 1)<br />			{<br />				AddMenuItem(menu, "Armure", "Получить броню");<br />			}<br />			if (Usp == 1)<br />			{<br />				AddMenuItem(menu, "Usp", "Получить USP");<br />			}<br />			if (Grenade == 1)<br />			{<br />				AddMenuItem(menu, "Grenade", "Получить гранату");<br />			}<br />			if (Smoke == 1)<br />			{<br />				AddMenuItem(menu, "Smoke", "Получить дымовую гранату");<br />			}<br />			if (Vitesse == 1)<br />			{<br />				AddMenuItem(menu, "Vitesse", "Получить скорость");<br />			}<br />			if (Argent == 1)<br />			{<br />				AddMenuItem(menu, "Argent", "Получить деньги");<br />			}<br />			if (Gravite == 1)<br />			{<br />				AddMenuItem(menu, "Gravite", "Получить гравитацию");<br />			}<br />			if (Regeneration == 1)<br />			{<br />				AddMenuItem(menu, "Regeneration", "Получить регенерацию");<br />			}<br />			if (Transparance == 1)<br />			{<br />				AddMenuItem(menu, "Transparance", "Получить прозрачность");<br />			}<br />			if (ThirdPerson == 1)<br />			{<br />				AddMenuItem(menu, "ThirdPerson", "Получить вид от 3 лица");<br />			}<br />			if (Respawn == 1)<br />			{<br />				AddMenuItem(menu, "Respawn", "Получить 1 воскрешение");<br />			}<br />			SetMenuExitButton(menu, (Rien == 1 ? true : false));<br />			DisplayMenu(menu, client, MENU_TIME_FOREVER);<br />			menu_times[client]++;<br />			if(menu_times[client] >= menuv) <br />			{<br />				HasMenu[client] = true;<br />			}<br />			CPrintToChat(client, "{gold}%s {LightSeaGreen}Использование функции {gold}%i/%i", TagTeam, menu_times[client], menuv);<br />		}<br />		return Plugin_Continue;<br />	}<br />	else<br />	{<br />		CPrintToChat( client, "{gold}%s {LightSeaGreen}Вы должны быть {gold}VIP." , TagTeam);<br />	}<br />	return Plugin_Continue;<br />}<br /><br />public vipmenu(Handle:menu, MenuAction:action, client, param2)<br />{<br />	if ( action == MenuAction_Select )<br />	{<br />		GetMenuItem(menu, param2, info, sizeof(info));<br />		if(StrEqual(info, "Vie"))<br />		{<br />			CPrintToChat( client, "{gold}%s {LightSeaGreen}Вы выбрали бонус : {gold}Здоровье." , TagTeam);<br />			if (g_iHealth != INVALID_HANDLE)<br />			SetEntProp(client, Prop_Send, "m_iHealth", iHealth);<br />		}<br />		if(StrEqual(info, "Armure"))<br />		{<br />			CPrintToChat( client, "{gold}%s {LightSeaGreen}Вы выбрали бонус : {gold}Броня.", TagTeam);<br />			if (g_iArmor != INVALID_HANDLE)<br />			SetEntProp(client, Prop_Send, "m_ArmorValue", iArmor);<br />		}<br />		if(StrEqual(info, "Usp"))<br />		{<br />			CPrintToChat( client, "{gold}%s {LightSeaGreen}Вы выбрали бонус : {gold}USP.", TagTeam);<br />			GivePlayerItem(client, "weapon_usp");<br />		}<br />		if(StrEqual(info, "Grenade"))<br />		{<br />			CPrintToChat( client, "{gold}%s {LightSeaGreen}Вы выбрали бонус : {gold}Гранату.", TagTeam);<br />			GivePlayerItem(client, "weapon_hegrenade");<br />		}<br />		if(StrEqual(info, "Smoke"))<br />		{<br />			CPrintToChat( client, "{gold}%s {LightSeaGreen}Вы выбрали бонус : {gold}Дымовую гранату.", TagTeam);<br />			GivePlayerItem(client, "weapon_smokegrenade");	<br />		}<br />		if(StrEqual(info, "Vitesse"))<br />		{<br />			CPrintToChat( client, "{gold}%s {LightSeaGreen}Вы выбрали бонус : {gold}Скорость.", TagTeam);<br />			if (g_iSpeed != INVALID_HANDLE)<br />			SetEntPropFloat( client, Prop_Data, "m_flLaggedMovementValue", iSpeed);<br />		}<br />		if(StrEqual(info, "Argent"))<br />		{<br />			CPrintToChat( client, "{gold}%s {LightSeaGreen}Вы выбрали бонус : {gold}Деньги.", TagTeam);<br />			if (g_iMoney != INVALID_HANDLE)<br />			SetEntProp(client, Prop_Send, "m_iAccount", iMoney);<br />		}<br />		if(StrEqual(info, "Gravite"))<br />		{<br />			CPrintToChat( client, "{gold}%s {LightSeaGreen}Вы выбрали бонус : {gold}Гравитацию.", TagTeam);<br />			if (g_iGravity != INVALID_HANDLE)<br />			SetEntPropFloat( client, Prop_Data, "m_flGravity", iGravity);<br />		}<br />		if(StrEqual(info, "Regeneration"))<br />		{<br />			CPrintToChat( client, "{gold}%s {LightSeaGreen}Вы выбрали бонус : {gold}Регенерацию.", TagTeam);<br />			IsValideRegen[client] = true;<br />		}<br />		if(StrEqual(info, "Transparance"))<br />		{<br />			CPrintToChat( client, "{gold}%s {LightSeaGreen}Вы выбрали бонус : {gold}Прозрачность.", TagTeam);<br />			SetEntityRenderMode(client, RENDER_TRANSCOLOR);<br />			SetEntityRenderColor(client, 255, 255, 255, 100);<br />		}<br />		if(StrEqual(info, "ThirdPerson"))<br />		{<br />			CPrintToChat( client, "{gold}%s {LightSeaGreen}Вы выбрали бонус : {gold}Вид от 3 лица.", TagTeam);<br />			Client_SetThirdPersonMode(client, true);<br />		}<br />		if(StrEqual(info, "Respawn"))<br />		{<br />			CPrintToChat( client, "{gold}%s {LightSeaGreen}Вы выбрали бонус : {gold}Воскрешение.", TagTeam);<br />			CPrintToChat( client, "{gold}%s {LightSeaGreen}Напишите : {gold}!vipspawn {LightSeaGreen}чтобы воскреситься.", TagTeam);<br />			PlayerRespawn[client] = 1;<br />		}<br />	}<br />	else if (action == MenuAction_End )<br />    {<br />		CloseHandle(menu);<br />    }  <br />}<br /><br />public Action:VipRespawn(client, args)<br />{<br />    if (GetUserFlagBits(client) & ADMFLAG_CUSTOM1)<br />    {<br />		if(StrEqual(info, "Respawn"))<br />		{<br />			if (PlayerRespawn[client] > 0)<br />			{<br />				CS_RespawnPlayer(client);<br />				CPrintToChat(client, "{gold}%s {LightSeaGreen}Вы использовали воскрешение", TagTeam);<br />				PlayerRespawn[client]--;<br />			}<br />			else<br />			{<br />				CPrintToChat(client, "{gold}%s {LightSeaGreen}Вы использовали !vipspawn в этом раунде.", TagTeam);<br />			}<br />		}<br />		else<br />		{<br />			CPrintToChat(client, "{gold}%s {LightSeaGreen}Вы не выбрали бонус Воскрешение..", TagTeam);<br />		}<br />    }<br />    else<br />    {<br />        CPrintToChat(client, "{gold}%s {LightSeaGreen}Вы не {gold}VIP.", TagTeam);<br />    }<br />}<br /><br />public Action:advert(Handle:timer)<br />{<br />	for(new client = 1; client <= MaxClients;client++)<br />	{<br />		if (GetConVarInt(adverts_info) && IsClientInGame(client) && IsPlayerAlive(client) && GetClientTeam(client) > 1 && ADMFLAG_CUSTOM1)<br />		{<br />			CPrintToChat( client, "{gold}%s {LightSeaGreen}Вы еще не открыли VIP меню? : {gold}!vipmenu", TagTeam);<br />		}<br />	}<br />}<br /><br />public Action:advert2(Handle:timer)<br />{<br />	if (Advert == 1)<br />	{<br />		if(GetConVarInt(adverts_info2))<br />		{<br />			CPrintToChatAll( "{gold}%s {LightSeaGreen}Получил преимущество чтобы стать {gold}VIP {LightSeaGreen}прямо сейчас !", TagTeam);<br />		}<br />	}<br />}<br /><br />public OnPlayerHurt(Handle:event, const String:name[], bool:dontBroadcast)<br />{<br />	new iUserId = GetEventInt(event, "userid");<br />	new client = GetClientOfUserId(iUserId);<br /><br />	if(g_hRegenTimer[client] == INVALID_HANDLE && GetUserFlagBits(client) & ADMFLAG_CUSTOM1 && IsValideRegen[client] == true)<br />	{<br />		g_hRegenTimer[client] = CreateTimer(GetConVarFloat(g_Interval), Regenerate, client, TIMER_REPEAT);<br />	}<br />}<br /><br />public Action:Regenerate(Handle:timer, any:client)<br />{<br />	if (IsClientInGame(client))<br />	{<br />		new ClientHealth = GetClientHealth(client);<br />		if(ClientHealth < GetConVarInt(g_MaxHP))<br />		{<br />			SetClientHealth(client, ClientHealth + GetConVarInt(g_Inc));<br />		}<br />		else<br />		{<br />			SetClientHealth(client, GetConVarInt(g_MaxHP));<br />			KillTimer(timer);<br />			g_hRegenTimer[client] = INVALID_HANDLE;<br />		}<br />	}<br />}<br /><br />SetClientHealth(client, amount)<br />{<br />	new HealthOffs = FindDataMapOffs(client, "m_iHealth");<br />	SetEntData(client, HealthOffs, amount, true);<br />}<br /><br />public OnClientDisconnect_Post(client)<br />{<br />    HasMenu[client] = true;<br />    menu_times[client] = 0;<br />}<br /><br />public bool:TraceEntityFilterPlayer(entity, contentsMask) <br />{<br /> 	return entity > GetMaxClients();<br />}

Не работает программа Java, пишут ваши настройки безопасности заблокировали ненадежный запуск приложения, почему?

Помогите прояснить оибку на языке java

---- Minecraft Crash Report ----<br />// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]<br /><br />Time: 19.05.13 20:13<br />Description: Exception in server tick loop<br /><br />java.lang.NoSuchMethodError: net.minecraft.entity.player.EntityPlayerMP.getBukkitEntity()Lorg/bukkit/craftbukkit/v1_5_R3/entity/CraftPlayer;<br />	at net.minecraft.server.management.ServerConfigurationManager.attemptLogin(ServerConfigurationManager.java:425)<br />	at cpw.mods.fml.common.network.FMLNetworkHandler.handleVanillaLoginKick(FMLNetworkHandler.java:199)<br />	at cpw.mods.fml.common.network.FMLNetworkHandler.handleClientConnection(FMLNetworkHandler.java:157)<br />	at cpw.mods.fml.common.network.FMLNetworkHandler.onConnectionReceivedFromClient(FMLNetworkHandler.java:123)<br />	at net.minecraft.network.NetLoginHandler.func_72529_d(NetLoginHandler.java:213)<br />	at net.minecraft.network.NetLoginHandler.func_72532_c(NetLoginHandler.java:101)<br />	at org.spigotmc.netty.NettyServerConnection.func_71747_b(NettyServerConnection.java:73)<br />	at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:926)<br />	at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:324)<br />	at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:794)<br />	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:678)<br />	at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)<br /><br /><br />A detailed walkthrough of the error, its code path and all known details is as follows:<br />---------------------------------------------------------------------------------------<br /><br />-- System Details --<br />Details:<br />	Minecraft Version: 1.5.2<br />	Operating System: Windows 8 (amd64) version 6.2<br />	Java Version: 1.7.0_21, Oracle Corporation<br />	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation<br />	Memory: 222669536 bytes (212 MB) / 450625536 bytes (429 MB) up to 954466304 bytes (910 MB)<br />	JVM Flags: 1 total; -Xmx1024M<br />	AABB Pool Size: 2 (112 bytes; 0 MB) allocated, 2 (112 bytes; 0 MB) used<br />	Suspicious classes: FML and Forge are installed<br />	IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63<br />	CraftBukkit Information: <br />   Running: CraftBukkit version git-MCPC-Plus-jenkins-MCPC-Plus-438 (MC: 1.5.2) (Implementing API version 1.5.2-R0.2-SNAPSHOT) true<br />   Plugins: {}<br />   Warnings: DEFAULT<br />   Threads: { WAITING TC Aura Update Thread: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(Unknown Source), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source), java.util.concurrent.LinkedBlockingQueue.take(Unknown Source), thaumcraft.common.aura.AuraUpdateThread.run(AuraUpdateThread.java:21), java.lang.Thread.run(Unknown Source)], RUNNABLE Attach Listener: [], WAITING TC Aura Calculation Thread: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(Unknown Source), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source), java.util.concurrent.LinkedBlockingQueue.take(Unknown Source), thaumcraft.common.aura.AuraCalculationThread.run(AuraCalculationThread.java:23), java.lang.Thread.run(Unknown Source)], TIMED_WAITING Snooper Timer: [java.lang.Object.wait(Native Method), java.util.TimerThread.mainLoop(Unknown Source), java.util.TimerThread.run(Unknown Source)], WAITING Thread-1: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(Unknown Source), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source), java.util.concurrent.LinkedBlockingQueue.take(Unknown Source), cpw.mods.fml.relauncher.FMLRelaunchLog$ConsoleLogThread.run(FMLRelaunchLog.java:79), java.lang.Thread.run(Unknown Source)], RUNNABLE Server thread: [java.lang.Thread.dumpThreads(Native Method), java.lang.Thread.getAllStackTraces(Unknown Source), org.bukkit.craftbukkit.v1_5_R3.CraftCrashReport.call(CraftCrashReport.java:27), net.minecraft.crash.CrashReportCategory.func_71500_a(CrashReportCategory.java:106), net.minecraft.crash.CrashReport.func_71504_g(CrashReport.java:59), net.minecraft.crash.CrashReport.<init>(CrashReport.java:41), net.minecraft.server.MinecraftServer.run(MinecraftServer.java:709), net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573)], RUNNABLE Netty IO Thread - 0: [sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method), sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source), sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source), sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source), sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source), sun.nio.ch.SelectorImpl.select(Unknown Source), io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:574), io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:289), io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:109), java.lang.Thread.run(Unknown Source)], TIMED_WAITING File IO Thread: [java.lang.Thread.sleep(Native Method), net.minecraft.world.storage.ThreadedFileIOBase.func_75736_b(SourceFile:43), net.minecraft.world.storage.ThreadedFileIOBase.run(SourceFile:22), java.lang.Thread.run(Unknown Source)], WAITING Finalizer: [java.lang.Object.wait(Native Method), java.lang.ref.ReferenceQueue.remove(Unknown Source), java.lang.ref.ReferenceQueue.remove(Unknown Source), java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)], RUNNABLE Netty IO Thread - 2: [sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method), sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source), sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source), sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source), sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source), sun.nio.ch.SelectorImpl.select(Unknown Source), io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:574), io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:289), io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:109), java.lang.Thread.run(Unknown Source)], WAITING TC Aura Deletion Thread: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(Unknown Source), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source), java.util.concurrent.LinkedBlockingQueue.take(Unknown Source), thaumcraft.common.aura.AuraDeleteThread.run(AuraDeleteThread.java:19), java.lang.Thread.run(Unknown Source)], TIMED_WAITING Spigot Watchdog Thread: [java.lang.Thread.sleep(Native Method), org.spigotmc.WatchdogThread.run(WatchdogThread.java:87)], RUNNABLE Signal Dispatcher: [], RUNNABLE Command Reader Thread: [org.fusesource.jansi.internal.Kernel32._getch(Native Method), org.fusesource.jansi.internal.WindowsSupport.readByte(WindowsSupport.java:46), org.bukkit.craftbukkit.libs.jline.WindowsTerminal.readByte(WindowsTerminal.java:184), org.bukkit.craftbukkit.libs.jline.WindowsTerminal.access$000(WindowsTerminal.java:53), org.bukkit.craftbukkit.libs.jline.WindowsTerminal$1.read(WindowsTerminal.java:151), java.io.FilterInputStream.read(Unknown Source), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader$1.read(ConsoleReader.java:167), org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:267), org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:204), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:995), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:1167), net.minecraft.server.dedicated.DedicatedServerCommandThread.run(DedicatedServerCommandThread.java:38)], WAITING Reference Handler: [java.lang.Object.wait(Native Method), java.lang.Object.wait(Object.java:503), java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)], TIMED_WAITING Spigot Metrics Thread: [java.lang.Object.wait(Native Method), java.util.TimerThread.mainLoop(Unknown Source), java.util.TimerThread.run(Unknown Source)], RUNNABLE Netty IO Thread - 1: [sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method), sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source), sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source), sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source), sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source), sun.nio.ch.SelectorImpl.select(Unknown Source), io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:574), io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:289), io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:109), java.lang.Thread.run(Unknown Source)], RUNNABLE DestroyJavaVM: [],}<br />   Recent tasks from 768-798{}<br />	FML: MCP v7.51 FML v5.2.10.703 Minecraft Forge 7.8.0.703 26 mods loaded, 26 mods active<br />	mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	FML{5.2.10.703} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	Forge{7.8.0.703} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	CodeChickenCore{0.8.6.6} [CodeChicken Core] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	NotEnoughItems{1.5.2.13} [Not Enough Items] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	mod_bspkrsCore{v2.04(1.5.2)} [bspkrsCore] (1.5.2bspkrsCorev2.04.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	DamageIndicatorsMod{2.6.4} [Damage Indicators] (1.5.1DamageIndicators-v2.6.4.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	TreeCapitator{Forge 1.5.2.r01} [TreeCapitator] (1.5.2TreeCapitator.Forge.1.5.2.r01.Uni.CoreMod.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	BuildCraft|Core{3.5.0} [BuildCraft] (buildcraft-A-3.5.0.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	BuildCraft|Builders{3.5.0} [BC Builders] (buildcraft-A-3.5.0.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	BuildCraft|Energy{3.5.0} [BC Energy] (buildcraft-A-3.5.0.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	BuildCraft|Factory{3.5.0} [BC Factory] (buildcraft-A-3.5.0.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	BuildCraft|Transport{3.5.0} [BC Transport] (buildcraft-A-3.5.0.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	BuildCraft|Silicon{3.5.0} [BC Silicon] (buildcraft-A-3.5.0.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	Waterpipe{1.02} [Water Pipe mod] (Divine-Smoker-Water-Pipe-Mod-1.5.2.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	IC2{1.115.294-lf} [IndustrialCraft 2] (industrialcraft-2_1.115.294-lf.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	IronChest{5.2.4.391} [Iron Chest] (ironchest-universal-1.5.1-5.2.4.391.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	La2o Paxels{1.0v} [Paxels!] (La2o-paxels-10v.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	SlimevoidLib{2.0.1.1} [Slimevoid Library] (SlimevoidLib-Universal-v2.0.1.1.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	LittleBlocksMod{2.1.0.0} [Little Blocks] (LittleBlocks-Universal-v2.1.0.0.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	mod_SmartMoving{13.9} [Smart Moving] (Smart Moving Universal for ModLoader or Minecraft Forge or MCPC+.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	mod_SmartRender{1.1} [Smart Render] (Smart Moving Universal for ModLoader or Minecraft Forge or MCPC+.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	Thaumcraft{3.0.5a} [Thaumcraft] (Thaumcraft3.0.5a.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	mod_joint{1.0} [mod_joint] (Weed1.5.1.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	mod_weed{1.0} [mod_weed] (Weed1.5.1.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	mod_weedPlant{1.0} [mod_weedPlant] (Weed1.5.1.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available<br />	Profiler Position: N/A (disabled)<br />	Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used<br />	Player Count: 0 / 20; []<br />	Is Modded: Definitely; Server brand changed to 'mcpc,craftbukkit,fml,forge'<br />	Type: Dedicated Server (map_server.txt)

 

я пробовал следующим образом «Math.getExponent(X)», но полученные значения округлялись до целых чисел. Заранее спасибо
ошибка в geforce experience приложение будет закрыто как исправить

Доброе время суток! Суть проблемы: При установке программы, работающей из под JAVA 6-11-i581-р, происходит ее запуск, а потом вылазит такая ошибка: The path of the installation source will cause the installation failure due to the following reason. please change the patch and try again: spaces are contained Система Windos XP sp3  Atlon 2300+. Устанавливаю программу WEB LCT  (требует меньших ттх). На Тошибе (PEN 1.8) было одно время такое же но потом все заработало само собой. Прошу помочь, т.к. в интернете не нашел ответ, а программа нужна срочно 

Здравствуйте, при установке игры симс2, вернее перед распоковкой файлов возникает такая ошибка runtime error (at 173:156). Как мне ее устранить, можно ли что то сделать?

При попытке запустить любую программу написанную на java компьютер выдает ошибку «Java runtime envirioment not found».Версия Java Jre6 x64, windows 7 x64

Здравствуйте, помогите пожалуйста! Установила игру, а при попытке включить ее выходить ошибка связанная с NET framework.Мне посоветовали, что нужно обновить.У меня версия 4, обновляла уже! Может что то неправильно делаю? ТТак хочется поиграть(Помогите! Как правильно обновлять?

java.util.Properties; public class ProfilesDAOTest { private Connection myConn; public ProfilesDAOTest() throws Exception{ try { Class.forName(«com.mysql.jdbc.Driver»); Properties prop = new Properties(); prop.load(new FileInputStream(«info.properties»)); String user = prop.getProperty(«user»); String password = prop.getProperty(«password»); String dburl = prop.getProperty(«dburl»); myConn = DriverManager.getConnection(dburl, user, password); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } return; } public void updateProfiles (HashMap theProfiles) throws DAOException{ PreparedStatement myStmt = null; String sql = «UPDATE profiles SET user_name=?, nick_name=?, user_mail=?» + ", password=?, gender=?, country=?"; try { myConn.setAutoCommit(false); myStmt = myConn.prepareStatement(sql); for (Map.Entry e: theProfiles.entrySet()) { myStmt.setString(1, String.valueOf(e.getValue().intValue())); myStmt.setString(2, String.valueOf(e.getValue().intValue())); myStmt.setString(3, String.valueOf(e.getValue().intValue())); myStmt.setString(4, String.valueOf(e.getValue().intValue())); myStmt.setString(5, String.valueOf(e.getValue().intValue())); myStmt.setString(6, String.valueOf(e.getValue().intValue())); myStmt.executeUpdate(); myConn.commit(); } } catch (SQLException e) { e.printStackTrace(); } finally { try{ if (myConn != null) { myConn.close(); } if (myStmt != null) { myStmt.close(); } } catch (SQLException e) { e.printStackTrace(); } } } }

 

 

как сделать так, чтобы Map кэшировал запрос для повторного использования?

Здравствуйте! Очень срочно нужна помощь пишу экзамен, такое задание Ініціалізувати масив М з 20 цілих випадкових чисел з довільного проміжку. Для введеного числа N показати всі різниці між A[N] та рештою елементів масиву (A[N] — A[і]). Визначити при цьому найбільшу різницю.

как сделать подсчет нажатий кнопки JAVA SWT

Есть свой сайт, хочу на своем сайте разместить эту игру но не демо. Как это сделать?

Помогите пожалуйста, Ищу учителя по Java SE если быть, конкретнее в сторону веб технологий,

как заставить работать  счетчик обратного отчета на сайте

как загрузить гиф аву в мир? помогите пжлста

День добрый!!! Хочу скачать себе игру talking tom cat 2 на телефон. Вроде скачивается, а потом идет загрузка, останавливается и просит отправить смс. Снимают деньги. А хочется чтоб бесплатно. и чтоб игра шла.((

ПОМОГИТЕ!!! Где скачать

var conf = new Array();
conf['message'] = «ВНИМАНИЕ, В Этой строке
Пишите свой рекламный текст »;

conf['image'] = 'C:\\images\\1.png';
conf['upl_time'] = 30;

conf['page'] = 'https://www.facebook.com/browsegroups/?category=membership';

conf['cycle'] = 1;
conf['view_img'] = 'Y';

rn = '\n';rn2 = rn + rn; var iim_regexp = new Array(); iim_regexp['pageurl'] = '{GO_TO_PAGE}'; iim_regexp['pos_num'] = '{POS_NUMBER}'; iim_regexp['im_fltr'] = '{IMG_FILTER}'; iim_regexp['snd_msg'] = '{SEND_MSG}'; iim_regexp['snd_img'] = '{SEND_IMG}'; iim_regexp['img_upl'] = '{IMG_UPLOAD}'; var img_fltr_status = new Array(); img_fltr_status['Y'] = 'OFF'; img_fltr_status['N'] = 'ON'; var image_filter = 'FILTER TYPE=IMAGES STATUS='+ iim_regexp['im_fltr'].replace(new RegExp( iim_regexp['im_fltr'],'g'), img_fltr_status[conf['view_img']]); image_filter += rn +'SET !REPLAYSPEED FAST'+ rn +'SET !TIMEOUT_STEP 3'; var vsec = 'WAIT SECONDS'; var arr_imacroses = new Array(); arr_imacroses['gotopage'] = image_filter + rn +'ONDIALOG POS=1 BUTTON=OK CONTENT='+ rn +'URL GOTO='+ iim_regexp['pageurl'] + rn; arr_imacroses['send_msg'] = image_filter + rn +'TAG POS='+ iim_regexp['pos_num'] +' TYPE=A ATTR=CLASS:«groupsRecommendedTitle*»&&HREF:/groups/*'+ rn + vsec +'=1'+ rn +'TAG POS=1 TYPE=TEXTAREA ATTR=NAME:xhpc_message'+ rn + vsec +'=3'+ rn +'TAG POS=1 TYPE=TEXTAREA FORM=ID:* ATTR=ID:u* CONTENT="'+ iim_regexp['snd_msg'] +'"'+ rn + vsec +'=0'+ rn +'TAG POS=1 TYPE=INPUT:FILE FORM=ID:u_* ATTR=ID:js_* CONTENT=""'+ rn + vsec +'=0'+ rn +'TAG POS=1 TYPE=INPUT:FILE FORM=ID:u_* ATTR=ID:js_* CONTENT="'+ iim_regexp['snd_img'] +'"'+ rn + vsec +'='+ iim_regexp['img_upl'] + rn +'TAG POS=1 TYPE=SPAN ATTR=TXT: Опубликовать'+ rn + vsec +'=5'+ rn +'FILTER TYPE=IMAGES STATUS=OFF'+ rn; arr_imacroses['check_gr'] = image_filter + rn +'TAG POS='+ iim_regexp['pos_num'] +' TYPE=A ATTR=CLASS:«groupsRecommendedTitle*»&&HREF:/groups/* EXTRACT=TXT'+ rn; function FUNC_iimPlay ( macro ) {var imacrocode = 'CODE:'; if (macro.indexOf(imacrocode) != 0) { macro = imacrocode + macro;}; var retcode = iimPlay( macro ); var result = new Array(); if (retcode == 1) { var i = 0; do { var j = i; i++; result[j] = iimGetLastExtract(i); if (result[j] != undefined) { result[j] = result[j].trim(); }; } while (result[j] != undefined); result.splice(j,1); if (j == 1) {result = result[0];} return (result); } else { var errtext = iimGetLastError(); var errmess = 'iimPlay ERROR:'+ rn + errtext + rn2 +'in iMacros:'+ rn + macro; iimDisplay( errmess ); return ( errmess ); }; }; function FUNC_check_exist_group ( macro ) { var result = FUNC_iimPlay( macro ); if (result == '#EANF#') { return false; } else { return true; }; }; conf['cycle'] = prompt('Пожалуйста, введите количество циклов для прохода по всем группам:', conf['cycle']); conf['cycle'] = Number(conf['cycle'].trim()); if(!(/^(\d{1,6})$/.test(conf['cycle'])) ) { conf['cycle'] = 0; alert('Число циклов введено не правильно!'); }; var macro_url = arr_imacroses['gotopage']; macro_url = macro_url.replace(new RegExp( iim_regexp['pageurl'],'g'), conf['page'] ); var macro_msg = arr_imacroses['send_msg']; macro_msg = macro_msg.replace(new RegExp( iim_regexp['snd_msg'],'g'), conf['message'] ); macro_msg = macro_msg.replace(new RegExp( iim_regexp['snd_img'],'g'), conf['image'] ); macro_msg = macro_msg.replace(new RegExp( iim_regexp['img_upl'],'g'), conf['upl_time'] ); macro_msg = macro_msg.replace(new RegExp( '
','gi'), '\\n' ); for (var cycle=1; cycle<=conf['cycle']; cycle++) { pos=0; do { pos++; FUNC_iimPlay ( macro_url ); var check = FUNC_check_exist_group ( arr_imacroses['check_gr'].replace(new RegExp( iim_regexp['pos_num'],'g'), pos ) ); if (check) { FUNC_iimPlay ( macro_msg.replace(new RegExp( iim_regexp['pos_num'],'g'), pos ) ); }; } while(check); };