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
Do: 15 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

    ADAC Nachrichten leer (SQL Phone)

    • TaktischerSpeck
    • 28. März 2018 um 22:58
    • Erledigt
    • TaktischerSpeck
      Profi
      Reaktionen
      292
      Trophäen
      9
      Beiträge
      1.211
      Dateien
      6
      Bilder
      35
      • 28. März 2018 um 22:58
      • #1

      Hallo,

      habe das ADAC script aus dem forum eingefügt und auf eigener faust versucht sie ins SQL Phone einzufügen.

      Nach viel rum probieren hängt es daran das es behauptet das text feld wäre leer obwohl es das nicht ist..

      Hier ist meine fn_newMsg.sqf:

      Code
      #include "..\..\script_macros.hpp"
      /*
      file: fn_newMsg.sqf    
      Author: Silex    
      */
      private["_to","_type","_playerData","_msg"];
      disableSerialization;
      _type = [_this,0,-1] call BIS_fnc_param;
      _playerData = [_this,1,-1] call BIS_fnc_param;
      _msg = [_this,2,"",[""]] call BIS_fnc_param;
      _display = findDisplay 88888;
      _cPlayerList = _display displayCtrl 88881;
      _cMessageEdit = _display displayCtrl 88884;
      switch(_type) do{    
       case 0:    { 
       life_smartphoneTarget = call compile format["%1",_playerData];
       ctrlSetText[88886, format["message: %1",name life_smartphoneTarget]];
       if((FETCH_CONST(life_adminlevel) < 1)) then {
       ctrlShow[888897,false];
       };
       };
       //normal message    
       case 1:    { 
       if(isNUll life_smartphoneTarget) exitWith {hint format["No person selected!"];
      };
       ctrlShow[88885, false];
       if(_msg == "") exitWith {hint "You must enter a message to be sent!";
       ctrlShow[88885, true];
      };
      [life_smartphoneTarget,_msg,player,0] remoteExec ["TON_fnc_handleMessages",2];
       hint format["You sent %1 a message: %2",name life_smartphoneTarget,_msg];
       ctrlShow[88885, true];
       closeDialog 88883;
       };
       //copmessage    
       case 2:    { if(({side _x == west} count playableUnits) == 0) exitWith {hint format["The police is currently inaccessible. Please try again later."];
      };
       ctrlShow[888895,false];
       if(_msg == "") exitWith {hint "You must enter a message to be sent!";
       ctrlShow[888895,true];
      };
      [ObjNull,_msg,player,1] remoteExec ["TON_fnc_handleMessages",2];
       _to = "Police";
       hint format["You sent %1 a message: %2",_to,_msg];
       ctrlShow[888895,true];
       closeDialog 887890;
       };
       //msgadmin    
       case 3:    { ctrlShow[888896,false];
       if(_msg == "") exitWith {hint "You must enter a message to be sent!";
       ctrlShow[888896,true];
      };
      [ObjNull,_msg,player,2] remoteExec ["TON_fnc_handleMessages",2];
       _to = "The Admins";
       hint format["You sent %1 a message: %2",_to,_msg];
       ctrlShow[888896,true];
       closeDialog 887890;
       };
       //emsrequest    
       case 4:    { if(({side _x == independent} count playableUnits) == 0) exitWith {hint format["Currently there is no EMS on duty . Please try again later."];
      };
       ctrlShow[888899,false];
       if(_msg == "") exitWith {hint "You must enter a message to be sent!";
       ctrlShow[888899,true];
      };
      [ObjNull,_msg,player,3] remoteExec ["TON_fnc_handleMessages",2];
       hint format["You have sent a message to all EMS units.",_msg];
       ctrlShow[888899,true];
       closeDialog 887890;
       };
       //adminToPerson    
       case 5:    { if((call life_adminlevel) < 1) exitWith {hint "You are not an admin!";
      };
      
       if(isNULL life_smartphoneTarget) exitWith {hint format["No person selected!"];
       };
       if(_msg == "") exitWith {hint "You must enter a message to be sent!";
       };
      [life_smartphoneTarget,_msg,player,4] remoteExec ["TON_fnc_handleMessages",2];
       hint format["Administrator Message sent: %1 - Message: %2",name life_smartphoneTarget,_msg];
       closeDialog 88883;
       };
       //emergencyloading    
       case 6:    { if((FETCH_CONST(life_adminlevel) < 1)) then {
       ctrlShow[888898,false];
       ctrlShow[888896,true];
       } else { 
       ctrlShow[888898,true];
       ctrlShow[888896,false];
       };
       };
       //adminMsgAll    
       case 7:    { if((FETCH_CONST(life_adminlevel) < 1)) exitWith {hint "You are not an admin!";
      };
       if(_msg == "") exitWith {hint "You must enter a message to be sent!";
       };
      [ObjNull,_msg,player,5] remoteExec ["TON_fnc_handleMessages",2];
       hint format["A message sent to all admins: %1",_msg];
       closeDialog 887890;
       };
       
       //adacrequest    
       case 8:    { if(({side _x == east} count playableUnits) == 0) exitWith {hint format["Currently there is no ADAC on duty . Please try again later."];
      };
       ctrlShow[3023,false];
       if(_msg == "") exitWith {hint "You must enter a message to be sent!";
       ctrlShow[3023,true];
      };
      
      [ObjNull,_msg,player,3] remoteExec ["TON_fnc_handleMessages",2];
       hint format["You have sent a message to all ADAC units.",_msg];
       ctrlShow[3023,true];
       closeDialog 3023;
      };
      
       
      };
      Alles anzeigen

      eine der weitern sachen ist das ich keine ahnung habe was die zahl 3 bedeutet

      Code
      [ObjNull,_msg,player,3] remoteExec ["TON_fnc_handleMessages",2];

      Mit freundlichen Grüßen

      TaktischerSpeck - Vincent

      2945262602.gif

      Leidenschaftlicher Analphabet mit leichtem Drang zum Sabbern.

      2945262602.gif
      Welcome to Arma, a game where Physics don't give a f*ck.

      2945262602.gif
      If (ArmA == Bullshit) exitWith {[] call f*uckThisShit};

      2945262602.gif

      Kontaktmöglichkeiten

      Twitch

      Youtube

      Steam

      TLG (Einfach nur TLG ins IP Feld (trust me its gonna work))

      --alternativ--

      Ts.TheLastGamer.de

      Website

      Forum

      E-Mail: [email protected]

      Twitch

      Youtube

      Steam

      TLG (Einfach nur TLG ins IP Feld (trust me its gonna work))

      --alternativ--

      Ts.TheLastGamer.de

      Website

      Forum

      E-Mail: [email protected]

    • moeck
      Erleuchteter
      Reaktionen
      632
      Trophäen
      9
      Beiträge
      3.160
      Bilder
      9
      • 29. März 2018 um 07:19
      • #2

      Moin,


      hänge bitte mal deine fn_handleMessages.sqf an. Ich schätze mal Du hast noch keinen Case für den Adac in der handleMessages angelegt, daher wird auch nix in die DB eingetragen ;)

      Gruß,

      moeck

      Signatur? Was ist eine Signatur? Kann man das essen?

      Bitte beachten: Ich gebe keinen Support über private Nachrichten!


      Ganz wichtig: [Leitfaden] Wie frage Ich richtig um Hilfe?

      Nicht zu vergessen [Tutorial/Selbst-Test] Sollte ich einen Life Server eröffnen ?

    • TaktischerSpeck
      Profi
      Reaktionen
      292
      Trophäen
      9
      Beiträge
      1.211
      Dateien
      6
      Bilder
      35
      • 29. März 2018 um 11:22
      • #3

      hey danke für die antwort


      Code
      private["_msg","_to","_target","_player","_type"];
      _target = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
      _msg = [_this,1,"",[""]] call BIS_fnc_param;
      _player = [_this,2,ObjNull,[ObjNull]] call BIS_fnc_param;
      _type = [_this,3,-1] call BIS_fnc_param;
      switch(_type) do{    //normal message    
      case 0:    { if(isNULL _target) exitWith {};
       _to = call compile format["%1", _target];
      [_msg,name _player,0] remoteExec ["TON_fnc_clientMessage",_to];
       private["_query","_pid","_toID"];
       _pid = getPlayerUID _player;
       _toID = getPlayerUID _target;
       _msg = [_msg] call DB_fnc_mresString;
       _fromName = name _player;
       _toName = name _target;
       _query = format["INSERT INTO messages (fromID, toID, message, fromName, toName) VALUES('%1', '%2', '""%3""', '%4', '%5')",_pid,_toID,_msg,_fromName,_toName];
       diag_log format["Query: %1",_query];
       waitUntil{!DB_Async_Active};
       [_query,1] call DB_fnc_asyncCall;
       };
       //message to cops    
       case 1:    { 
      [_msg,name _player,1] remoteExec ["TON_fnc_clientMessage",west];
       };
       //to admins    
       case 2:    { 
      [_msg,name _player,2] remoteExec ["TON_fnc_clientMessage",0];
       };
       //ems request    
       case 3:    { 
      [_msg,name _player,5] remoteExec ["TON_fnc_clientMessage",independent];
       };
       //adminToPerson    
       case 4:    { _to = call compile format["%1", _target];
       if(isNull _to) exitWith {};
      [_msg,name _player,3] remoteExec ["TON_fnc_clientMessage",_to];
       };
       //adminMsgAll    
       case 5:    {[_msg,name _player,4] remoteExec ["TON_fnc_clientMessage",0];
       };
        case 8:    { 
      [_msg,name _player,5] remoteExec ["TON_fnc_clientMessage",east];
       };
       
      };
      Alles anzeigen


      ich weiß nicht warum ich 8 genommen habe xD ich glaube weil in der anderen datei das case auch 8 war oder weil es nicht geklappt hat mit 6.

      was genau bedeuten eig die zahlen nach _player,?

      Mit freundlichen Grüßen

      TaktischerSpeck - Vincent

      2945262602.gif

      Leidenschaftlicher Analphabet mit leichtem Drang zum Sabbern.

      2945262602.gif
      Welcome to Arma, a game where Physics don't give a f*ck.

      2945262602.gif
      If (ArmA == Bullshit) exitWith {[] call f*uckThisShit};

      2945262602.gif

      Kontaktmöglichkeiten

      Twitch

      Youtube

      Steam

      TLG (Einfach nur TLG ins IP Feld (trust me its gonna work))

      --alternativ--

      Ts.TheLastGamer.de

      Website

      Forum

      E-Mail: [email protected]

      Twitch

      Youtube

      Steam

      TLG (Einfach nur TLG ins IP Feld (trust me its gonna work))

      --alternativ--

      Ts.TheLastGamer.de

      Website

      Forum

      E-Mail: [email protected]

    • moeck
      Erleuchteter
      Reaktionen
      632
      Trophäen
      9
      Beiträge
      3.160
      Bilder
      9
      • 29. März 2018 um 12:33
      • #4

      die Zahl ist ein Parameter und wird für das switch(_type) do in Zeile 6 vrwendet. Heisst es ist die Angabe in welches case er reingehen soll.

      Signatur? Was ist eine Signatur? Kann man das essen?

      Bitte beachten: Ich gebe keinen Support über private Nachrichten!


      Ganz wichtig: [Leitfaden] Wie frage Ich richtig um Hilfe?

      Nicht zu vergessen [Tutorial/Selbst-Test] Sollte ich einen Life Server eröffnen ?

    • TaktischerSpeck
      Profi
      Reaktionen
      292
      Trophäen
      9
      Beiträge
      1.211
      Dateien
      6
      Bilder
      35
      • 29. März 2018 um 14:33
      • #5

      Okay...

      Mit ich probiere nochmal die.6 gibts ansonsten ideen?

      Mit freundlichen Grüßen

      TaktischerSpeck - Vincent

      2945262602.gif

      Leidenschaftlicher Analphabet mit leichtem Drang zum Sabbern.

      2945262602.gif
      Welcome to Arma, a game where Physics don't give a f*ck.

      2945262602.gif
      If (ArmA == Bullshit) exitWith {[] call f*uckThisShit};

      2945262602.gif

      Kontaktmöglichkeiten

      Twitch

      Youtube

      Steam

      TLG (Einfach nur TLG ins IP Feld (trust me its gonna work))

      --alternativ--

      Ts.TheLastGamer.de

      Website

      Forum

      E-Mail: [email protected]

      Twitch

      Youtube

      Steam

      TLG (Einfach nur TLG ins IP Feld (trust me its gonna work))

      --alternativ--

      Ts.TheLastGamer.de

      Website

      Forum

      E-Mail: [email protected]

    • moeck
      Erleuchteter
      Reaktionen
      632
      Trophäen
      9
      Beiträge
      3.160
      Bilder
      9
      • 29. März 2018 um 16:02
      • #6

      es ist case 8 zumindestens laut deiner handlemsg

      Signatur? Was ist eine Signatur? Kann man das essen?

      Bitte beachten: Ich gebe keinen Support über private Nachrichten!


      Ganz wichtig: [Leitfaden] Wie frage Ich richtig um Hilfe?

      Nicht zu vergessen [Tutorial/Selbst-Test] Sollte ich einen Life Server eröffnen ?

    • TaktischerSpeck
      Profi
      Reaktionen
      292
      Trophäen
      9
      Beiträge
      1.211
      Dateien
      6
      Bilder
      35
      • 29. März 2018 um 17:19
      • #7

      hm wie wäre es denn richtig?

      Mit freundlichen Grüßen

      TaktischerSpeck - Vincent

      2945262602.gif

      Leidenschaftlicher Analphabet mit leichtem Drang zum Sabbern.

      2945262602.gif
      Welcome to Arma, a game where Physics don't give a f*ck.

      2945262602.gif
      If (ArmA == Bullshit) exitWith {[] call f*uckThisShit};

      2945262602.gif

      Kontaktmöglichkeiten

      Twitch

      Youtube

      Steam

      TLG (Einfach nur TLG ins IP Feld (trust me its gonna work))

      --alternativ--

      Ts.TheLastGamer.de

      Website

      Forum

      E-Mail: [email protected]

      Twitch

      Youtube

      Steam

      TLG (Einfach nur TLG ins IP Feld (trust me its gonna work))

      --alternativ--

      Ts.TheLastGamer.de

      Website

      Forum

      E-Mail: [email protected]

    Registrieren oder Einloggen

    Du bist noch kein Mitglied von Native-Servers.com? Registriere dich kostenlos und werde Teil einer großartigen Community!

    Benutzerkonto erstellen

    Benutzer online in diesem Thema

    • 1 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. Verhaltensregeln
    3. Datenschutzerklärung
    4. Impressum
    5. Urheberrechts- oder Lizenzverstoß melden
  • Trimax Design coded & layout by Gino Zantarelli 2023-2025©
    Community-Software: WoltLab Suite™