1. Dashboard
  2. Forum
    1. Unerledigte Themen
  3. Downloads
  4. Galerie
    1. Alben
  5. Toolbox
    1. Passwort Generator
    2. Portchecker
  6. Mitglieder
    1. Mitgliedersuche
    2. Benutzer online
    3. Trophäen
    4. Team
So: 25 Mai 2025
  • Anmelden oder registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Forum
  • Dateien
  • Seiten
  • Bilder
  • Erweiterte Suche

Schön, dass du den Weg zu NodeZone.net gefunden hast! Aktuell bist du nicht angemeldet und kannst deshalb nur eingeschränkt auf unsere Community zugreifen. Um alle Funktionen freizuschalten, spannende Inhalte zu entdecken und dich aktiv einzubringen, registriere dich jetzt kostenlos oder melde dich mit deinem Account an.

Anmelden oder registrieren
    1. Nodezone.net Community
    2. Forum
    3. Gameserver & Hosting
    4. ArmA Series - ArmA 3 / Reforger
    5. Hilfeforum
    6. Archiv

    Channel 7 bei Altis Life v. 4.0

    • Saturin78
    • 27. März 2016 um 11:29
    • Geschlossen
    • Saturin78
      Profi
      Reaktionen
      409
      Trophäen
      10
      Beiträge
      1.340
      • 27. März 2016 um 11:29
      • #1

      Ich wollte gerne das Channel 7 auf meinem Server aktivieren. Allerdings habe ich ein kleines Problem. Man kann eine Nachricht eingeben, es wird Geld abgezogen, aber es wird keine Nachricht gesendet. Die [lexicon]Startparameter[/lexicon] -showscripterrors bringt nur die Meldung auf dem Screenshot.

      Hier sind meine Dateien:

      Bash: fn_broadcast.sqf
      /*
      	File: fn_broadcast.sqf
      	Author: Bryan "Tonic" Boardwine
      	Description:
      	Broadcast system used in the life mission for multi-notification purposes.
      */
      private["_type","_message"];
      _type = [_this,0,0,[[],0]] call BIS_fnc_param;
      _message = [_this,1,"",[""]] call BIS_fnc_param;
      _localize = [_this,2,false,[false]] call BIS_fnc_param;
      if(_message == "") exitwith {};
      
      
      
      
      if(_localize) exitWith {
      	_arr = _this select 3;
      	_msg = switch(count _arr) do {
      		case 0: {localize _message;};
      		case 1: {format[localize _message,_arr select 0];};
      		case 2: {format[localize _message,_arr select 0, _arr select 1];};
      		case 3: {format[localize _message,_arr select 0, _arr select 1, _arr select 2];};
      		case 4: {format[localize _message,_arr select 0, _arr select 1, _arr select 2, _arr select 3];};
      	};
      	if(typeName _type == typeName []) then {
      		for "_i" from 0 to (count _type)-1 do
      		{
      			switch((_type select _i)) do
      			{
      				case 0: {systemChat _msg;};
      				case 1: {hint _msg;};
      				case 2: {titleText[_msg,"PLAIN"];};
      				case 3: {[_msg,(player getVariable["realname",name player])] call life_fnc_AAN;};
      			};
      		};
      	} else {
      		switch (_type) do
      		{
      			case 0: {systemChat _msg;};
      			case 1: {hint _msg;};
      			case 2: {titleText[_msg,"PLAIN"];};
      			case 3: {[_msg,(player getVariable["realname",name player])] call life_fnc_AAN;};
      		};
      	};
      };
      
      
      
      
      if(typeName _type == typeName []) then
      {
      	for "_i" from 0 to (count _type)-1 do
      	{
      		switch((_type select _i)) do
      		{
      			case 0: {systemChat _message};
      			case 1: {hint format["%1", _message]};
      			case 2: {titleText[format["%1",_message],"PLAIN"];};
      			case 3: {[_message,(player getVariable["realname",name player])] call life_fnc_ANN;};
      			case 5: {hint parseText format["%1", _message]};
      		};
      	};
      }
      	else
      {
      	switch (_type) do
      	{
      		case 0: {systemChat _message};
      		case 1: {hint format["%1", _message]};
      		case 2: {titleText[format["%1",_message],"PLAIN"];};
      		case 3: {[_message,(player getVariable["realname", name player])] call life_fnc_ANN;};
      		case 5: {hint parseText format["%1", _message]};
      	};
      };
      Alles anzeigen


      Die channel.hpp:

      Bash: channel.hpp
      class channel{
          idd = 9000;
          name= "channel";
          movingEnable = false;
          enableSimulation = true;
      
          class controlsBackground {
              class Life_RscTitleBackground:Life_RscText {
                  colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
                  idc = -1;
                  x = 0.1;
                  y = 0.2;
                  w = 0.6;
                  h = (1 / 25);
              };
      
              class MainBackground:Life_RscText {
                  colorBackground[] = {0, 0, 0, 0.7};
                  idc = -1;
                  x = 0.1;
                  y = 0.2 + (11 / 250);
                  w = 0.6;
                  h = 0.6 - (22 / 250);
              };
          };
      
      class controls {
      
      
      
      
              
              class Title : Life_RscTitle {
                  colorBackground[] = {0, 0, 0, 0};
                  idc = -1;
                  text = "Chanel 7 News";
                  x = 0.1;
                  y = 0.2;
                  w = 0.6;
                  h = (1 / 25);
              };
      
              class Channel7NewsEditText : Life_RscStructuredText
              {
                  idc = -1;
                  text = "Nachricht an Alle:";
                  x = 0.12;
                  y = 0.4;
                  w = 0.2;
                  h = 0.1;
              };
      
              class Channel7Edit : Life_RscEdit
              {
                  idc = 9001;
                  text = "";
                  sizeEx = 0.04;
                  x = 0.275; 
                  y = 0.4;
                  w = 0.4; 
                  h = 0.04;    
              };
      
              class Channel7Description : Life_RscStructuredText
              {
                  idc = -1;
                  text = "Diese Nachricht wird an JEDEN gesendet! Du musst sie jedoch bezahlen.";
                  x = 0.12;
                  y = 0.5;
                  w = 0.5;
                  h = 0.1;
              };
      
      
      
      
              class CloseButtonKey : Life_RscButtonMenu {
                  idc = -1;
                  text = "$STR_Global_Close";
                  onButtonClick = "closeDialog 0;";
                  x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
                  y = 0.8 - (1 / 25);
                  w = (6.25 / 40);
                  h = (1 / 25);
              };
      
              class SendButtonKey : Life_RscButtonMenu {
                  idc = 9005;
                  text = "Send";
                  onButtonClick = "[] call life_fnc_sendChannel; closeDialog 0;";
                  x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
                  y = 0.8 - (1 / 25);
                  w = (6.25 / 40);
                  h = (1 / 25);
              };
          };
      };
      Alles anzeigen
      Bash: fn_sendChannel.sqf
      /*
          File: fn_sendChannel.sqf
          Author: alleskapot & Lifted
          Thanks again for all the help alleskapot!
          Description:
          Ermöglicht senden bzw. die Abfrage des Geschriebenen.
      
      
      
      
      */
      
      
      
      
      private["_message"];
      disableSerialization;
      
      
      
      
      waitUntil {!isnull (findDisplay 9000)};
      
      
      
      
      if (life_cash < 6000 ) exitWith { systemChat "Du brauchst 60000€ um eine Nachricht zu senden!"; };
      //if (playerSide != civilian ) exitWith { systemChat "Du musst ein Zivilist sein!"; };
      life_cash = life_cash - 6000;
      
      
      
      
      _message = ctrlText 9001;
      
      
      
      
      [[3,format ["%1 sendete folgende Nachricht von Chanel 7 News an Alle: %2",name player,_message]],"life_fnc_broadcast",true,false] call life_fnc_MP;
      life_channel_send = false;
      
      
      
      
      [] spawn
      {
          sleep 600;
          life_channel_send = true;
      };
      Alles anzeigen
      Bash: fn_calldialog.sqf
      /*
          File: fn_calldialog.sqf
          Author: alleskapot & Lifted
          Thanks again for all the help alleskapot!
          Description:
          Calls the Dialog.
      
      */
      if(!createDialog "channel") exitWith {hint "Fehler beim Dialog erstelle";}; //Couldn't create the menu?
      disableSerialization;
      Bash: fn_AAN.sqf
      /*
          Author: alleskapot
      
          Description: Sends AAN News to the player
      
      
      
      
      */
      private["_display","_message","_name"];
      disableSerialization;
      _message = _this select 0;
      _name = _this select 1;
      [parseText format["<t size='2'>Chanel 7 News - Nachricht von:  %1</t>",_name],parseText format["<t size='1.2'>%1 - %1 - %1</t>",_message]] spawn BIS_fnc_AAN;
      sleep 30;
      _display = uinamespace getvariable "BIS_AAN";
      _display closeDisplay 0;
      Alles anzeigen

      Hat da vielleicht jemand ne Idee, ob sich da irgendwas geändert hat zu Altis Life 3.1.4.8, denn da lief das ganze genau so.

      Tapse mich wieder ins Arma3 xxx-Life rein :D

    • WeiizzGold
      Frischling
      Reaktionen
      3
      Trophäen
      11
      Beiträge
      5
      • 27. März 2016 um 12:37
      • #2

      Kann es sein das du die fn_AAN nicht in der Functions.h eingetragen hast?

      Hi, ich bin WeiizzGold.

    • SirFluffyVonKitten
      Nerd
      Reaktionen
      407
      Trophäen
      11
      Beiträge
      798
      Bilder
      3
      • 27. März 2016 um 13:39
      • #3

      den Fehler hatte ich damals meine ich auch. Wenn ich es richtig in Erinnerung habe, lag der Fehler in der fn_Broadcast.sqf
      Woran es genau lag kann ich dir nicht mehr sagen.

    • Saturin78
      Profi
      Reaktionen
      409
      Trophäen
      10
      Beiträge
      1.340
      • 27. März 2016 um 20:55
      • #4

      Hallo, danke für die Antworten.

      Aber in der Hunction.h hab ich die drin.

      Bash: Function.h
      .....
      
      
      
      
      	class sellHouse {};
      		class initHouses {};
      		class copBreakDoor {};
      		class raidHouse {};
      		class lockupHouse {};
      		class copHouseOwner {};
      		class lockHouse {};
      		class garageRefund {};
      	};
      
      	class Config
      	{
      		file = "core\config";
      		class itemWeight {};
      		class taxRate {};
      		class vehicleAnimate {};
      		class vehicleWeightCfg {};
      	};
      
      
      
      
      	class Player_Menu
      	{
      		file = "core\pmenu";
      		class wantedList {};
      		class wantedInfo {};
      		class wantedMenu {};
      		class wantedAddP {};
      		class pardon {};
      		class giveItem {};
      		class giveMoney {};
      		class p_openMenu {};
      		class p_updateMenu {};
      		class removeItem {};
      		class useItem {};
      		class cellphone {};
      		class keyMenu {};
      		class keyGive {};
      		class keyDrop {};
      		class s_onSliderChange {};
      		class updateViewDistance {};
      		class settingsMenu {};
      		class s_onChar {};
      		class s_onCheckedChange {};
      		class smartphone {};
      		class newMsg {};
      		class showMsg {};
      		class revokeLicense {};
      		class AAN {};
      	};
      
      	class Functions
      	{
      		file = "core\functions";
      		class calWeightDiff {};
      		class fetchCfgDetails {};
      		class handleInv {};
      		//class hudSetup {};
      
      
      
      
      ....
      Alles anzeigen

      Tapse mich wieder ins Arma3 xxx-Life rein :D

    • MasterChief
      Frischling
      Trophäen
      11
      Beiträge
      4
      • 27. März 2016 um 20:59
      • #5

      was sagen die Logs

    • Saturin78
      Profi
      Reaktionen
      409
      Trophäen
      10
      Beiträge
      1.340
      • 27. März 2016 um 21:01
      • #6

      Ich finde nichtmal die Logfiles. die einzigen Logdateien die angelegt werden sind leer.

      Etwas seltsam.

      Tapse mich wieder ins Arma3 xxx-Life rein :D

    • Saturin78
      Profi
      Reaktionen
      409
      Trophäen
      10
      Beiträge
      1.340
      • 28. März 2016 um 08:11
      • #7

      Also mit dieser Version der fn_broadcast.sqf

      Bash: fn_broadcast.sqf
      /*
      	File: fn_broadcast.sqf
      	Author: Bryan "Tonic" Boardwine
      	Description:
      	Broadcast system used in the life mission for multi-notification purposes.
      */
      private["_type","_message"];
      _type = [_this,0,0,[[],0]] call BIS_fnc_param;
      _message = [_this,1,"",[""]] call BIS_fnc_param;
      _localize = [_this,2,false,[false]] call BIS_fnc_param;
      if(_message == "") exitwith {};
      
      
      
      
      if(_localize) exitWith {
      	_arr = _this select 3;
      	_msg = switch(count _arr) do {
      		case 0: {localize _message;};
      		case 1: {format[localize _message,_arr select 0];};
      		case 2: {format[localize _message,_arr select 0, _arr select 1];};
      		case 3: {format[localize _message,_arr select 0, _arr select 1, _arr select 2];};
      		case 4: {format[localize _message,_arr select 0, _arr select 1, _arr select 2, _arr select 3];};
      	};
      	if(typeName _type == typeName []) then {
      		for "_i" from 0 to (count _type)-1 do
      		{
      			switch((_type select _i)) do
      			{
      				case 0: {systemChat _msg;};
      				case 1: {hint _msg;};
      				case 2: {titleText[_msg,"PLAIN"];};
      				case 3: {[_msg,(player getVariable["realname",name player])] call life_fnc_AAN;};
      			};
      		};
      	} else {
      		switch (_type) do
      		{
      			case 0: {systemChat _msg;};
      			case 1: {hint _msg;};
      			case 2: {titleText[_msg,"PLAIN"];};
      			case 3: {[_msg,(player getVariable["realname",name player])] call life_fnc_AAN;};
      		};
      	};
      };
      
      
      
      
      if(typeName _type == typeName []) then
      {
      	for "_i" from 0 to (count _type)-1 do
      	{
      		switch((_type select _i)) do
      		{
      			case 0: {systemChat _message};
      			case 1: {hint format["%1", _message]};
      			case 2: {titleText[format["%1",_message],"PLAIN"];};
      			case 3: {[_message,(player getVariable["realname",name player])] call life_fnc_ANN;};
      			case 5: {hint parseText format["%1", _message]};
      		};
      	};
      }
      	else
      {
      	switch (_type) do
      	{
      		case 0: {systemChat _message};
      		case 1: {hint format["%1", _message]};
      		case 2: {titleText[format["%1",_message],"PLAIN"];};
      		case 3: {[_message,(player getVariable["realname", name player])] call life_fnc_ANN;};
      		case 5: {hint parseText format["%1", _message]};
      	};
      };
      Alles anzeigen


      kommt die Log_1 im Anhang. Diese war genau so in meiner alten Altis Life 3.1.4.8 Version verbaut, ohne dass es Probleme machte.

      Bei dieser fn_broadcast.sqf

      Bash: fn_broadcast.sqf
      /*
      	File: fn_broadcast.sqf
      	Author: Bryan "Tonic" Boardwine
      	Description:
      	Broadcast system used in the life mission for multi-notification purposes.
      */
      private["_type","_message"];
      _type = [_this,0,0,[[],0]] call BIS_fnc_param;
      _message = [_this,1,"",[""]] call BIS_fnc_param;
      _localize = [_this,2,false,[false]] call BIS_fnc_param;
      if(_message == "") exitwith {};
      
      
      
      
      if(_localize) exitWith {
      	_arr = _this select 3;
      	_msg = switch(count _arr) do {
      		case 0: {localize _message;};
      		case 1: {format[localize _message,_arr select 0];};
      		case 2: {format[localize _message,_arr select 0, _arr select 1];};
      		case 3: {format[localize _message,_arr select 0, _arr select 1, _arr select 2];};
      		case 4: {format[localize _message,_arr select 0, _arr select 1, _arr select 2, _arr select 3];};
      	};
      	if(typeName _type == typeName []) then {
      		for "_i" from 0 to (count _type)-1 do
      		{
      			switch((_type select _i)) do
      			{
      				case 0: {systemChat _msg;};
      				case 1: {hint _msg;};
      				case 2: {titleText[_msg,"PLAIN"];};
      				case 3: {[_msg,(player getVariable["realname",name player])] call life_fnc_AAN;};
      			};
      		};
      	} else {
      		switch (_type) do
      		{
      			case 0: {systemChat _msg;};
      			case 1: {hint _msg;};
      			case 2: {titleText[_msg,"PLAIN"];};
      			case 3: {[_msg,(player getVariable["realname",name player])] call life_fnc_AAN;};
      		};
      	};
      };
      
      
      
      
      if(typeName _type == typeName []) then
      {
      	for "_i" from 0 to (count _type)-1 do
      	{
      		switch((_type select _i)) do
      		{
      			case 0: {systemChat _message};
      			case 1: {hint format["%1", _message]};
      			case 2: {titleText[format["%1",_message],"PLAIN"];};
      			//case 3: {[_message,(player getVariable["realname",name player])] call life_fnc_ANN;};
      			case 5: {hint parseText format["%1", _message]};
      		};
      	};
      }
      	else
      {
      	switch (_type) do
      	{
      		case 0: {systemChat _message};
      		case 1: {hint format["%1", _message]};
      		case 2: {titleText[format["%1",_message],"PLAIN"];};
      		//case 3: {[_message,(player getVariable["realname", name player])] call life_fnc_ANN;};
      		case 5: {hint parseText format["%1", _message]};
      	};
      };
      Alles anzeigen


      kommt kein Fehler und einfach keine Nachricht. Alles andere geht (Geld abziehen, Nachricht eingeben etc.)
      Siehe Log_2 im Anhang.

      MfG

      Saturin78

      Dateien

      Log1.txt 55,61 kB – 261 Downloads Log2.txt 58,69 kB – 230 Downloads

      Tapse mich wieder ins Arma3 xxx-Life rein :D

    • nox 25. März 2023 um 00:47

      Hat das Thema aus dem Forum Hilfeforum - ArmA 3 nach Archiv verschoben.

    Registrieren oder Einloggen

    Du bist noch kein Mitglied von NodeZone.net? Registriere dich kostenlos und werde Teil einer großartigen Community!

    Registrieren

    Ähnliche Themen

    • [TUTORIAL][Altis Life 4.4r3] RyanTTs Dynamic Market System

      • blackfisch
      • 27. Juli 2016 um 01:04
      • Tutorials & Releases
    • Side Channel einstellen

      • R3DEX
      • 11. August 2017 um 14:11
      • Hilfeforum
    • Altis Life: TaskForceRadio spinnt!

      • Fl0rixn
      • 19. Mai 2017 um 17:09
      • Hilfeforum
    • TaskForceRadio Problem Altis Life 4.4r3

      • Chris3112
      • 5. Mai 2017 um 19:14
      • Hilfeforum
    • Task Force Radio Altis Life 5.0 Server Hilfe

      • tox2012
      • 14. Februar 2017 um 01:41
      • Hilfeforum
    • Task Force Radio für Altis Life 4.4

      • TheValle
      • 26. Januar 2017 um 14:44
      • Hilfeforum

    Benutzer online in diesem Thema

    • 2 Besucher

    Wichtige Links & Informationen

    Server & Hosting-Ressourcen

      Server Administration & Hosting Basics

      Windows Server Support & Guides

      Linux Server Configuration & Help

      Setting up TeamSpeak 3 & VoIP Servers

      Domains & Web Hosting for Beginners & Professionals

      Cloud Hosting, Docker & Kubernetes Tutorials

    Gameserver & Modding-Ressourcen

      ArmA 3 Tutorials & Script Collection

      Renting & Operating Gameservers

      DayZ Server Management & Help

      FiveM (GTA V) Server & Script Development

      Rust Server Modding & Administration

      Setting up & Optimizing ARK Survival Servers

    NodeZone.net – Deine Community für Gameserver, Server-Hosting & Modding

      NodeZone.net ist dein Forum für Gameserver-Hosting, Rootserver, vServer, Webhosting und Modding. Seit 2015 bietet unsere Community eine zentrale Anlaufstelle für Server-Admins, Gamer und Technikbegeisterte, die sich über Server-Management, Hosting-Lösungen und Spielemodding austauschen möchten.


      Ob Anleitungen für eigene Gameserver, Hilfe bei Root- und vServer-Konfigurationen oder Tipps zu Modding & Scripting – bei uns findest du fundiertes Wissen und praxisnahe Tutorials. Mit einer stetig wachsenden Community findest du hier Antworten auf deine Fragen, Projektpartner und Gleichgesinnte für deine Gaming- und Serverprojekte. Schließe dich NodeZone.net an und werde Teil einer aktiven Community rund um Server-Hosting, Gameserver-Management und Modding-Ressourcen.

    Wer jetzt nicht teilt ist selber Schuld:
    1. Nutzungsbestimmungen
    2. Datenschutzerklärung
    3. Impressum
    4. Urheberrechts- oder Lizenzverstoß melden
  • Trimax Design coded & layout by Gino Zantarelli 2023-2025©
    Community-Software: WoltLab Suite™