Hallo.
Bei mir geht soweit alles.
Nur wenn man den Medic ruft per Notruf, kommt beim Medic die Nachricht aber Ohne Text den der Jenige eingegeben hat und keine Koordinaten.
Jemand ne Lösung?
Denn bei mir besteht das Problem immer noch.
Hallo.
Bei mir geht soweit alles.
Nur wenn man den Medic ruft per Notruf, kommt beim Medic die Nachricht aber Ohne Text den der Jenige eingegeben hat und keine Koordinaten.
Jemand ne Lösung?
Denn bei mir besteht das Problem immer noch.
Ich schliesse mich an, alles andere läuft nur bei den Medic nicht.
LG
Frank
Ich habs dadurch gelöst, in der functions bei life_server die case von der polizei zu kopieren und es wieder einfügen und halt so bearbeiten das es für die medics passt, ging bei mir, sogar mit den neu eingefügten adac.
Ich habs dadurch gelöst, in der functions bei life_server die case von der polizei zu kopieren und es wieder einfügen und halt so bearbeiten das es für die medics passt, ging bei mir, sogar mit den neu eingefügten adac.
OK und was genau haste da geändert?
Oder wie sollte die Zeile: 9 und 10 aussehen?
Ganz unten bei den cases kopier und ersetz die ienfach mal, nehm ggf. anpassungen vor:
case 5:
{
if(side player != independent) exitWith {};
private[""_message"",""_loc"",""_unit""];
_loc = _this select 3;
_unit = _this select 4;
_message = format["">>> 112 Notruf von %1: %2"",_from,_msg];
if(isNil ""_loc"") then {_loc = ""Unknown"";};
hint parseText format [""<t color='#FF0000'><t size='2'><t align='center'>EMS Notruf<br/><br/><t color='#33CC33'><t align='left'><t size='1'>An: <t color='#ffffff'>Allen Sanitaetern<br/><t color='#33CC33'>Von: <t color='#ffffff'>%1<br/><t color='#33CC33'>Koords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Mitteilung:<br/><t color='#ffffff'>%3"",_from,_loc,_msg];
[""PoliceDispatch"",[format[""EMS Notruf von: %1"",_from]]] call bis_fnc_showNotification;
systemChat _message;
};
Alles anzeigen
sieht zwar komisch aus, funktioniert bei mir zumindest
Welche sqf hast Du bearbeitet?
die fn_handleMessages.sqf ?
Hallo Liebe Community,
jetzt kommt die Dümmste frage EU-West:
WO in der CfgRemoteExec.hpp kommt das rein?
Unter Server only, HC only, Client only oder Commands???
Welche sqf hast Du bearbeitet?
die fn_handleMessages.sqf ?
Ich nehme an er meint die \life_server\functions.sqf, wenn man sich den Aufbau anschaut, wobei ich auf den ersten Blick keine alzu großen Unterschiede zum Original feststellen kann...
Hallo Liebe Community,
jetzt kommt die Dümmste frage EU-West:WO in der CfgRemoteExec.hpp kommt das rein?
Unter Server only, HC only, Client only oder Commands???
/* Server only functions */
Dort am einfachsten am Ende hinzufügen, dass es Server only ist, siehst du auch am "SERVER".
Hi,
bei mir speichert das telefon leider keine Nachrichten in der Datenbank.
Kann mir hier jemand helfen? Log hängt an
Die Fehler die die Proceduren betreffen sind mir bewusst und sind in diesem Fall nicht von belang, da es sich hierbei nur um den Test Server handelt^^
In der Server RPT Stehen leider keine Fehler
Ich habe das Problem, dass die Nachrichten nicht im Telefon erscheinen, bzw. nicht aus der Datenbank geladen werden.
In der Datenbank stehen die Nachrichten sauber drin.
RPT Log zeigt nichts an.
extdb2 Log zeigt nichts an.
Jemand eine Idee?
EDIT:
Ich glaube ich habe den Fehler gefunden:
Life_server > Functions > Smartphone > fn_msgRequest.sqf hieß bei mir fn_msqRequest.sqf
Sehr wahrscheinlich lag es daran. Werde ich später testen.
hi danke für das skript!!
Ich würde gerne einen Markt button einfügen.
Wie muss ich das machen? Hab den rayn dyn markt.
Mfg
Roy
hi danke für das skript!!
Ich würde gerne einen Markt button einfügen.
Wie muss ich das machen? Hab den rayn dyn markt.Mfg
Roy
Bruh, ich glaube da bist du im Falschen Thema XD
Was hast du denn für ein Interface für die Spieler? Standart oder Custom?
Solltest du alles über der Player_inv.hpp machen können wenn mich nicht alles Täsuscht, aber bei der Script Beschreibung von RyanTT ist dabei wie du das machst
jup hast recht Sorry!
Ich habe ein problem was ich ein bis zwei mal hier schon gelesen habe undzwar das die Nachrichten nicht ankommen habe allerdings bei den ganzen antworten nicht durch blicken können da ich momentan ziemlich unfähig bin moment. Habe alles dem TUT nachgemacht und befolgt.
bitte helft mir ich verzweifle halb ohne Fehlermeldung^^
alles geregelt
kann mir jemand helfen und mir sagen wie ich den ADAC in das Mysql smartphone bekomme?
auch den ADAC Button
also den button hab ich drinnne aber nur senden er erst garnicht die nachicht ab
meine lfunktions aus der live server
#include "script_macros.hpp"
/*
File: functions.sqf
Author: Bryan "Tonic" Boardwine
Description: They are functions.
*/
TON_fnc_index =
compileFinal "
private [""_item"",""_stack""];
_item = _this select 0;
_stack = _this select 1;
_return = -1;
{
if (_item in _x) exitWith {
_return = _forEachIndex;
};
} forEach _stack;
_return;
";
TON_fnc_player_query =
compileFinal "
private [""_ret""];
_ret = _this select 0;
if (isNull _ret) exitWith {};
if (isNil ""_ret"") exitWith {};
[life_atmbank,life_cash,owner player,player,profileNameSteam,getPlayerUID player,playerSide] remoteExecCall [""life_fnc_adminInfo"",_ret];
";
publicVariable "TON_fnc_player_query";
publicVariable "TON_fnc_index";
TON_fnc_isnumber =
compileFinal "
private [""_valid"",""_array""];
_valid = [""0"",""1"",""2"",""3"",""4"",""5"",""6"",""7"",""8"",""9""];
_array = [_this select 0] call KRON_StrToArray;
_return = true;
{
if (!(_x in _valid)) exitWith {
_return = false;
};
} forEach _array;
_return;
";
publicVariable "TON_fnc_isnumber";
TON_fnc_clientGangKick =
compileFinal "
private [""_unit"",""_group""];
_unit = _this select 0;
_group = _this select 1;
if (isNil ""_unit"" || isNil ""_group"") exitWith {};
if (player isEqualTo _unit && (group player) == _group) then {
life_my_gang = objNull;
[player] joinSilent (createGroup civilian);
hint ""You have been kicked out of the gang."";
};
";
publicVariable "TON_fnc_clientGangKick";
TON_fnc_clientGetKey =
compileFinal "
private [""_vehicle"",""_unit"",""_giver""];
_vehicle = _this select 0;
_unit = _this select 1;
_giver = _this select 2;
if (isNil ""_unit"" || isNil ""_giver"") exitWith {};
if (player isEqualTo _unit && !(_vehicle in life_vehicles)) then {
_name = getText(configFile >> ""CfgVehicles"" >> (typeOf _vehicle) >> ""displayName"");
hint format [""%1 has gave you keys for a %2"",_giver,_name];
life_vehicles pushBack _vehicle;
[getPlayerUID player,playerSide,_vehicle,1] remoteExecCall [""TON_fnc_keyManagement"",2];
};
";
publicVariable "TON_fnc_clientGetKey";
TON_fnc_clientGangLeader =
compileFinal "
private [""_unit"",""_group""];
_unit = _this select 0;
_group = _this select 1;
if (isNil ""_unit"" || isNil ""_group"") exitWith {};
if (player isEqualTo _unit && (group player) == _group) then {
player setRank ""COLONEL"";
_group selectLeader _unit;
hint ""You have been made the new leader."";
};
";
publicVariable "TON_fnc_clientGangLeader";
TON_fnc_clientGangLeft =
compileFinal "
private [""_unit"",""_group""];
_unit = _this select 0;
_group = _this select 1;
if (isNil ""_unit"" || isNil ""_group"") exitWith {};
if (player isEqualTo _unit && (group player) == _group) then {
life_my_gang = objNull;
[player] joinSilent (createGroup civilian);
hint ""You have quit the gang."";
};
";
publicVariable "TON_fnc_clientGangLeft";
//Cell Phone Messaging
/*
-fnc_cell_textmsg
-fnc_cell_textcop
-fnc_cell_textadmin
-fnc_cell_adminmsg
-fnc_cell_adminmsgall
*/
//ZUM EMS
TON_fnc_cell_emsrequest =
compileFinal "
private [""_msg"",""_to""];
ctrlShow[3022,false];
_msg = ctrlText 3003;
_to = ""EMS Units"";
if (_msg isEqualTo """") exitWith {hint ""You must enter a message to send!"";ctrlShow[3022,true];};
[_msg,name player,5,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",independent];
[] call life_fnc_cellphone;
hint format [""You sent %1 a message: %2"",_to,_msg];
ctrlShow[3022,true];
";
//To One Person
TON_fnc_cell_textmsg =
compileFinal "
private [""_msg"",""_to""];
ctrlShow[3015,false];
_msg = ctrlText 3003;
if (lbCurSel 3004 isEqualTo -1) exitWith {hint ""You must select a player you are sending the text to!""; ctrlShow[3015,true];};
_to = call compile format [""%1"",(lbData[3004,(lbCurSel 3004)])];
if (isNull _to) exitWith {ctrlShow[3015,true];};
if (isNil ""_to"") exitWith {ctrlShow[3015,true];};
if (_msg isEqualTo """") exitWith {hint ""You must enter a message to send!"";ctrlShow[3015,true];};
[_msg,name player,0] remoteExecCall [""TON_fnc_clientMessage"",_to];
[] call life_fnc_cellphone;
hint format [""You sent %1 a message: %2"",name _to,_msg];
ctrlShow[3015,true];
";
//To All Cops
TON_fnc_cell_textcop =
compileFinal "
private [""_msg"",""_to""];
ctrlShow[3016,false];
_msg = ctrlText 3003;
_to = ""The Police"";
if (_msg isEqualTo """") exitWith {hint ""You must enter a message to send!"";ctrlShow[3016,true];};
[_msg,name player,1,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",-2];
[] call life_fnc_cellphone;
hint format [""You sent %1 a message: %2"",_to,_msg];
ctrlShow[3016,true];
";
//Zum ADAC
TON_fnc_cell_adacrequest =
compileFinal "
private [""_msg"",""_to""];
ctrlShow[3023,false];
_msg = ctrlText 3003;
_to = ""The ADAC"";
if (_msg isEqualTo """") exitWith {hint ""You must enter a message to send!"";ctrlShow[3023,true];};
[_msg,name player,6,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",east];
[] call life_fnc_cellphone;
hint format [""You sent %1 a message: %2"",_to,_msg];
ctrlShow[3023,true];
";
//To All Admins
TON_fnc_cell_textadmin =
compileFinal "
private [""_msg"",""_to"",""_from""];
ctrlShow[3017,false];
_msg = ctrlText 3003;
_to = ""The Admins"";
if (_msg isEqualTo """") exitWith {hint ""You must enter a message to send!"";ctrlShow[3017,true];};
[_msg,name player,2,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",-2];
[] call life_fnc_cellphone;
hint format [""You sent %1 a message: %2"",_to,_msg];
ctrlShow[3017,true];
";
//Admin To One Person
TON_fnc_cell_adminmsg =
compileFinal "
if (isServer) exitWith {};
if ((call life_adminlevel) < 1) exitWith {hint ""You are not an admin!"";};
private [""_msg"",""_to""];
ctrlShow[3020,false];
_msg = ctrlText 3003;
_to = call compile format [""%1"",(lbData[3004,(lbCurSel 3004)])];
if (isNull _to) exitWith {ctrlShow[3020,true];};
if (isNil ""_to"") exitWith {ctrlShow[3020,true];};
if (_msg isEqualTo """") exitWith {hint ""You must enter a message to send!"";ctrlShow[3020,true];};
[_msg,name player,3] remoteExecCall [""TON_fnc_clientMessage"",_to];
[] call life_fnc_cellphone;
hint format [""Admin Message Sent To: %1 - Message: %2"",name _to,_msg];
ctrlShow[3020,true];
";
TON_fnc_cell_adminmsgall =
compileFinal "
if (isServer) exitWith {};
if ((call life_adminlevel) < 1) exitWith {hint ""You are not an admin!"";};
private [""_msg"",""_from""];
ctrlShow[3021,false];
_msg = ctrlText 3003;
if (_msg isEqualTo """") exitWith {hint ""You must enter a message to send!"";ctrlShow[3021,true];};
[_msg,name player,4] remoteExecCall [""TON_fnc_clientMessage"",-2];
[] call life_fnc_cellphone;
hint format [""Admin Message Sent To All: %1"",_msg];
ctrlShow[3021,true];
";
TON_fnc_cell_polizeimsgall = //NEW
compileFinal "
if(isServer) exitWith {};
if((call life_coplevel) < 6) exitWith {hint ""Du bist dazu nicht berechtigt!"";};
private[""_msg"",""_from""];
ctrlShow[3023,false];
_msg = ctrlText 3003;
if(_msg == """") exitWith {hint ""Du musst eine Nachricht eingeben!"";ctrlShow[3023,true];};
[_msg,name player,6] remoteExecCall [""TON_fnc_clientMessage"",-2];
[] call life_fnc_cellphone;
hint format[""gesendete Rundfunknachricht: %1"",_msg];
ctrlShow[3023,true];
";
publicVariable "TON_fnc_cell_textmsg";
publicVariable "TON_fnc_cell_textcop";
publicVariable "TON_fnc_cell_textadmin";
publicVariable "TON_fnc_cell_adminmsg";
publicVariable "TON_fnc_cell_adminmsgall";
publicVariable "TON_fnc_cell_emsrequest";
publicVariable "TON_fnc_cell_polizeimsgall";
//Client Message
/*
0 = private message
1 = police message
2 = message to admin
3 = message from admin
4 = admin message to all
*/
TON_fnc_clientMessage =
compileFinal "
if (isServer) exitWith {};
private [""_msg"",""_from"", ""_type""];
_msg = _this select 0;
_from = _this select 1;
_type = _this select 2;
if (_from isEqualTo """") exitWith {};
switch (_type) do {
case 0 : {
private [""_message""];
_message = format ["">>>MESSAGE FROM %1: %2"",_from,_msg];
hint parseText format [""<t color='#FFCC00'><t size='2'><t align='center'>New Message<br/><br/><t color='#33CC33'><t align='left'><t size='1'>To: <t color='#ffffff'>You<br/><t color='#33CC33'>From: <t color='#ffffff'>%1<br/><br/><t color='#33CC33'>Message:<br/><t color='#ffffff'>%2"",_from,_msg];
[""TextMessage"",[format [""You Received A New Private Message From %1"",_from]]] call bis_fnc_showNotification;
systemChat _message;
};
case 1 : {
if (side player != west) exitWith {};
private [""_message"",""_loc"",""_unit""];
_loc = _this select 3;
_unit = _this select 4;
_message = format [""--- 911 DISPATCH FROM %1: %2"",_from,_msg];
if (isNil ""_loc"") then {_loc = ""Unknown"";};
hint parseText format [""<t color='#316dff'><t size='2'><t align='center'>New Dispatch<br/><br/><t color='#33CC33'><t align='left'><t size='1'>To: <t color='#ffffff'>All Officers<br/><t color='#33CC33'>From: <t color='#ffffff'>%1<br/><t color='#33CC33'>Coords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Message:<br/><t color='#ffffff'>%3"",_from,_loc,_msg];
[""PoliceDispatch"",[format [""A New Police Report From: %1"",_from]]] call bis_fnc_showNotification;
systemChat _message;
};
case 2 : {
if ((call life_adminlevel) < 1) exitWith {};
private [""_message"",""_loc"",""_unit""];
_loc = _this select 3;
_unit = _this select 4;
_message = format [""!!! ADMIN REQUEST FROM %1: %2"",_from,_msg];
if (isNil ""_loc"") then {_loc = ""Unknown"";};
hint parseText format [""<t color='#ffcefe'><t size='2'><t align='center'>Admin Request<br/><br/><t color='#33CC33'><t align='left'><t size='1'>To: <t color='#ffffff'>Admins<br/><t color='#33CC33'>From: <t color='#ffffff'>%1<br/><t color='#33CC33'>Coords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Message:<br/><t color='#ffffff'>%3"",_from,_loc,_msg];
[""AdminDispatch"",[format [""%1 Has Requested An Admin!"",_from]]] call bis_fnc_showNotification;
systemChat _message;
};
case 3 : {
private [""_message""];
_message = format [""!!! ADMIN MESSAGE: %1"",_msg];
_admin = format [""Sent by admin: %1"", _from];
hint parseText format [""<t color='#FF0000'><t size='2'><t align='center'>Admin Message<br/><br/><t color='#33CC33'><t align='left'><t size='1'>To: <t color='#ffffff'>You<br/><t color='#33CC33'>From: <t color='#ffffff'>An Admin<br/><br/><t color='#33CC33'>Message:<br/><t color='#ffffff'>%1"",_msg];
[""AdminMessage"",[""You Have Received A Message From An Admin!""]] call bis_fnc_showNotification;
systemChat _message;
if ((call life_adminlevel) > 0) then {systemChat _admin;};
};
case 4 : {
private [""_message"",""_admin""];
_message = format [""!!!ADMIN MESSAGE: %1"",_msg];
_admin = format [""Sent by admin: %1"", _from];
hint parseText format [""<t color='#FF0000'><t size='2'><t align='center'>Admin Message<br/><br/><t color='#33CC33'><t align='left'><t size='1'>To: <t color='#ffffff'>All Players<br/><t color='#33CC33'>From: <t color='#ffffff'>The Admins<br/><br/><t color='#33CC33'>Message:<br/><t color='#ffffff'>%1"",_msg];
[""AdminMessage"",[""You Have Received A Message From An Admin!""]] call bis_fnc_showNotification;
systemChat _message;
if ((call life_adminlevel) > 0) then {systemChat _admin;};
};
case 5: {
if(side player != independent) exitWith {};
private[""_message"",""_loc"",""_unit""];
_loc = _this select 3;
_unit = _this select 4;
_message = format["">>> 112 Notruf von %1: %2"",_from,_msg];
if(isNil ""_loc"") then {_loc = ""Unknown"";};
hint parseText format [""<t color='#FF0000'><t size='2'><t align='center'>EMS Notruf<br/><br/><t color='#33CC33'><t align='left'><t size='1'>An: <t color='#ffffff'>Allen Sanitaetern<br/><t color='#33CC33'>Von: <t color='#ffffff'>%1<br/><t color='#33CC33'>Koords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Mitteilung:<br/><t color='#ffffff'>%3"",_from,_loc,_msg];
[""PoliceDispatch"",[format[""EMS Notruf von: %1"",_from]]] call bis_fnc_showNotification;
systemChat _message;
};
case 6: {
if(side player != east) exitWith {};
private[""_message"",""_loc"",""_unit""];
_loc = _this select 3;
_unit = _this select 4;
_message = format["">>> ADAC Notruf von %1: %2"",_from,_msg];
if(isNil ""_loc"") then {_loc = ""Unknown"";};
hint parseText format [""<t color='#FF0000'><t size='2'><t align='center'>ADAC<br/><br/><t color='#33CC33'><t align='left'><t size='1'>An: <t color='#ffffff'>Allen TPAC<br/><t color='#33CC33'>Von: <t color='#ffffff'>%1<br/><t color='#33CC33'>Koords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Mitteilung:<br/><t color='#ffffff'>%3"",_from,_loc,_msg];
[""PoliceDispatch"",[format[""Notruf von: %1"",_from]]] call bis_fnc_showNotification;
systemChat _message;
};
case 7: {
private[""_message"",""_admin""];
_message = format[""POLIZEI RUNDFUNK: %1"",_msg];
hint parseText format [""<t color='#0000FF'><t size='2'><t align='center'>Polizei Rundfunk<br/><br/><t color='#33CC33'><t align='left'><t size='1'>An: <t color='#ffffff'>Alle Bürger<br/><t color='#33CC33'>Von: <t color='#ffffff'>Polizei Altis<br/><br/><t color='#33CC33'>Mitteilung:<br/><t color='#ffffff'>%1"",_msg];
[""PolizeiRundfunk"",[""Neue Polizei Mitteilung""]] call bis_fnc_showNotification;
systemChat _message;
};
};
";
publicVariable "TON_fnc_clientMessage";
TON_fnc_MapMarkersAdmin = compileFinal "
life_markers_Vehicles = [];
life_markers_Players = [];
if (!life_markers) then {
life_markers = true;
hint localize ""STR_ANOTF_MEnabled"";
} else {
life_markers = false;
hint localize ""STR_ANOTF_MDisabled"";
};
for ""_i"" from 0 to 1 step 0 do {
if (!life_markers) exitWith {};
{
if ((vehicle _x isKindOf ""LandVehicle"") || (vehicle _x isKindOf ""Air"") || (vehicle _x isKindOf ""Ship"")) then {
if (count(crew vehicle _x) > 0) then {
{
if (!(_x in life_markers_Vehicles) && (alive _x) && (getPlayerUID _x != """")) then {
private [""_pos"", ""_Markers"", ""_Vehicle""];
_Vehicle = vehicle _x;
_pos = visiblePosition _x;
_Markers = createMarkerLocal[format [""CRW%1%2"", _pos select 0, _pos select 1], [(_pos select 0) + 20, _pos select 1, 0]];
_TypeVehicle = (getText(configFile >> 'CfgVehicles' >> (typeOf vehicle _x) >> 'displayName'));
_Markers setMarkerTextLocal format ['%1---%2---%3m', name _x, _TypeVehicle, round(_x distance player)];
_Markers setMarkerTypeLocal ""mil_dot"";
if (side _x isEqualTo independent) then {
_Markers setMarkerColorLocal (""ColorIndependent"");
};
if (side _x isEqualTo civilian) then {
_Markers setMarkerColorLocal (""ColorCivilian"");
};
if (side _x isEqualTo west) then {
_Markers setMarkerColorLocal (""ColorBLUFOR"");
};
_Markers setMarkerSizeLocal[1, 1];
life_markers_Vehicles pushBack _x;
[_x, _Markers, _Vehicle, _TypeVehicle] spawn {
private [""_PlayersOrVehicles"", ""_Marker"", ""_CrewVehicle""];
_PlayersOrVehicles = _this select 0;
_Marker = _this select 1;
_TypeVehicle = _this select 3;
for ""_i"" from 0 to 1 step 0 do {
if (!life_markers && !(alive _PlayersOrVehicles) && (vehicle _PlayersOrVehicles == _PlayersOrVehicles) && (getPlayerUID _PlayersOrVehicles != """")) exitWith {};
_CrewVehicle = ((crew vehicle _PlayersOrVehicles) find _PlayersOrVehicles);
_Marker setMarkerPosLocal([(visiblePosition _PlayersOrVehicles select 0) + 20, (visiblePosition _PlayersOrVehicles select 1) - (25 + _CrewVehicle * 20), 0]);
_Marker setMarkerTextLocal format ['%1---%2---%3m', name _PlayersOrVehicles, _TypeVehicle, round(_PlayersOrVehicles distance player)];
sleep 0.01;
};
deleteMarkerLocal _Marker;
if (_PlayersOrVehicles in life_markers_Vehicles) then {
life_markers_Vehicles deleteAt (life_markers_Vehicles find _PlayersOrVehicles);
};
true;
};
};
} forEach crew vehicle _x;
};
} else {
if (!(_x in life_markers_Players) && (vehicle _x == _x) && (getPlayerUID _x != """")) then {
private [""_pos"", ""_Markers""];
_pos = visiblePosition _x;
_Markers = createMarkerLocal[format [""PLR%1%2"", _pos select 0, _pos select 1], [(_pos select 0) + 20, _pos select 1, 0]];
_Markers setMarkerTypeLocal ""mil_dot"";
_Markers setMarkerSizeLocal[1, 1];
if (side _x isEqualTo independent) then {
_Markers setMarkerColorLocal (""ColorIndependent"");
};
if (side _x isEqualTo civilian) then {
_Markers setMarkerColorLocal (""ColorCivilian"");
};
if (side _x isEqualTo west) then {
_Markers setMarkerColorLocal (""ColorBLUFOR"");
};
_Markers setMarkerTextLocal format [""%1---%2"", name _x, round(_x distance player)];
if (_x == player) then {
_Markers setMarkerColorLocal ""ColorGreen"";
};
life_markers_Players pushBack _x;
[_x, _Markers] spawn {
private [""_PlayersOrVehicles"", ""_Marker""];
_PlayersOrVehicles = _this select 0;
_Marker = _this select 1;
for ""_i"" from 0 to 1 step 0 do {
if (!life_markers && !(alive _PlayersOrVehicles) && (vehicle _PlayersOrVehicles != _PlayersOrVehicles) && (getPlayerUID _PlayersOrVehicles != """")) exitWith {};
_Marker setMarkerPosLocal([visiblePosition _PlayersOrVehicles select 0, visiblePosition _PlayersOrVehicles select 1, 0]);
_Marker setMarkerTextLocal format [""%1---%2"", name _PlayersOrVehicles, round(_PlayersOrVehicles distance player)];
sleep 0.01;
};
deleteMarkerLocal _Marker;
if (_PlayersOrVehicles in life_markers_Players) then {
life_markers_Players deleteAt (life_markers_Players find _PlayersOrVehicles);
};
true;
};
};
};
} forEach playableUnits;
sleep 0.3;
};
{
_Markers = str _x;
deleteMarkerLocal _Markers;
} forEach playableUnits;
";
publicVariable "TON_fnc_MapMarkersAdmin";
Alles anzeigen
und meine handlemessage
/* file: fn_handleMessages.sqf Author: Silex*/
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];
};
//message to adac
case 6: {
[_msg,name _player,6] remoteExec ["TON_fnc_clientMessage",east];
};
};
Alles anzeigen
und meine smartphone.hpp
class Life_my_smartphone {
idd = 88888;
name = "life_my_telephone_menu";
movingEnable = false;
enableSimulation = true;
onLoad = "[] spawn life_fnc_smartphone;";
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.95;
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.95;
h = 0.7 - (22 / 250);
};
class PlayerListTitleBackground:Life_RscText {
colorBackground[] = {0.588, 0.424, 0.145, 1.0};
idc = -1;
x = 0.11;
y = 0.25;
w = 0.2;
h = (1 / 25);
};
class MessageTitleBackground:Life_RscText {
colorBackground[] = {0.588, 0.424, 0.145, 1.0};
idc = -1;
x = 0.325;
y = 0.25;
w = 0.7;
h = (1 / 25);
};
class RandomTitleBackground:Life_RscText {
colorBackground[] = {0.588, 0.424, 0.145, 1.0};
idc = -1;
x = 0.325;
y = 0.25 + 0.3 + (1 / 25);
w = 0.7;
h = (1 / 25);
};
};
class controls {
class MessageTitle : Life_RscTitle {
colorBackground[] = {0, 0, 0, 0};
idc = 88886;
text = "";
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.9)";
x = 0.325;
y = 0.25;
w = 0.7;
h = (1 / 25);
};
class RandomTitle : Life_RscTitle {
colorBackground[] = {0, 0, 0, 0};
idc = 88890;
text = "$STR_SMARTPHONE_RANDOMTITLE";
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.9)";
x = 0.325;
y = 0.25 + 0.3 + (1 / 25);
w = 0.7;
h = (1 / 25);
};
class PlayerList : Life_RscListBox {
idc = 88881;
onLBSelChanged = "[2] spawn life_fnc_smartphone;";
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.8)";
x = 0.11;
y = 0.25 + (1 / 25);
w = 0.2;
h = 0.5;
};
class MessageList : Life_RscListNBox {
idc = 88882;
onLBSelChanged = "[(lbCurSel 88882)] call life_fnc_showMsg;";
//sizeEx = 0.04;
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.8)";
colorBackground[] = {0, 0, 0, 0.0};
columns[] = {0,0.3};
x = 0.325;
y = 0.25 + (1 / 25);
w = 0.7;
h = 0.3;
};
class TextShow : Life_RscControlsGroup {
x = 0.325;
y = 0.25 + 0.3 + (1 / 25) + (1 / 25);
w = 0.7;
h = 0.15;
class HScrollbar : HScrollbar {
height = 0;
};
class controls {
class showText : Life_RscStructuredText {
idc = 88887;
text = "";
colorBackground[] = {0.28,0.28,0.28,0.28};
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.8)";
shadow = 0;
x = 0;
y = 0;
w = 0.69;//w = 0.7;
h = 1;//h = 2.15;
};
};
};
class Schreiben : Life_RscButtonMenu {
idc = 887892;
text = "$STR_SMARTPHONE_SCHREIBEN";
onButtonClick = "[4] call life_fnc_smartphone;";
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])", 1.0};
x = 0.11;
y = 0.25 + (1 / 25) + 0.51;
w = 0.2;
h = (1 / 25);
};
class Title : Life_RscTitle {
colorBackground[] = {0, 0, 0, 0};
idc = -1;
text = "$STR_SMARTPHONE_TITLE";
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
x = 0.1;
y = 0.2;
w = 0.95;
h = (1 / 25);
};
class PlayerListTitle : Life_RscTitle {
colorBackground[] = {0, 0, 0, 0};
idc = -1;
text = "$STR_SMARTPHONE_PLAYERLISTTITLE";
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.9)";
x = 0.11;
y = 0.25;
w = 0.2;
h = (1 / 25);
};
class CloseLoadMenu : Life_RscButtonMenu {
idc = -1;
text = "$STR_Global_Close";
onButtonClick = "closeDialog 0;";
x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.9 - (1 / 25);
w = (6.25 / 40);
h = (1 / 25);
};
class Notruf : Life_RscButtonMenu {
idc = -1;
text = "$STR_SMARTPHONE_NOTRUF";
onButtonClick = "createDialog ""Life_smartphone_notruf"";";
colorBackground[] = {0.584, 0.086, 0.086,1.0};
x = 0.325 + 0.7 - (6.25 / 40);
y = 0.25 + (1 / 25) + 0.51;
w = (6.25 / 40);
h = (1 / 25);
};
};
};
class Life_smartphone_schreiben{
idd = 88883;
name = "life_my_smartphone_schreiben";
movingEnable = false;
enableSimulation = true;
onLoad = "";
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.1;
};
};
class controls {
class Title : Life_RscTitle {
colorBackground[] = {0, 0, 0, 0};
idc = 88886;
text = "$STR_SMARTPHONE_NACHRICHTTITLE";
x = 0.1;
y = 0.2;
w = 0.95;
h = (1 / 25);
};
class Absenden : Life_RscButtonMenu {
idc = 88885;
text = "$STR_SMARTPHONE_ABSENDEN";
onButtonClick = "[1,-1,(ctrlText 88884)] call life_fnc_newMsg;";
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])", 1.0};
x = 0.6 - (6.25 / 40) + 0.088;
y = 0.3 + (1 / 25) - 0.048;
w = (6.25 / 40);
h = (1 / 25);
};
class AdminMsg : life_RscButtonMenu
{
idc = 888897;
text = "$STR_CELL_AdminMsg";
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])", 1.0};
onButtonClick = "[5,-1,(ctrlText 88884)] call life_fnc_newMsg;";
x = 0.6 - (6.25 / 40) - 0.121;
y = 0.3 + (1 / 25) - 0.048;
w = 0.2;
h = (1 / 25);
};
class Close : Life_RscButtonMenu {
idc = -1;
text = "$STR_Global_Close";
onButtonClick = "closeDialog 0;";
colorBackground[] = {0.584, 0.086, 0.086,1.0};
x = 0.11;
y = 0.3 + (1 / 25) - 0.048;
w = (6.25 / 40);
h = (1 / 25);
};
class textEdit : Life_RscEdit {
idc = 88884;
text = "";
sizeEx = 0.030;
x = 0.11; y = 0.3 - 0.048;
w = 0.58; h = 0.03;
};
};
};
class Life_smartphone_notruf {
idd = 887890;
name= "life_my_smartphone_notruf";
movingEnable = false;
enableSimulation = true;
onLoad = "[6] spawn life_fnc_newMsg;";
class controlsBackground {
class Life_RscTitleBackground:Life_RscText {
colorBackground[] = {0.584, 0.086, 0.086,1.0};
idc = -1;
x = 0.1;
y = 0.2;
w = 0.64;
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.64;
h = 0.15 - (5 / 250);
};
};
class controls {
class Title : Life_RscTitle {
colorBackground[] = {0, 0, 0, 0};
idc = 888892;
text = "$STR_SMARTPHONE_Notruftitle";
x = 0.1;
y = 0.2;
w = 0.6;
h = (1 / 25);
};
class textEdit : Life_RscEdit {
idc = 888894;
text = "";
sizeEx = 0.030;
x = 0.11; y = 0.25;
w = 0.62; h = 0.03;
};
class TxtCopButton : life_RscButtonMenu
{
idc = 888895;
text = "$STR_CELL_TextPolice";
colorBackground[] = {0.584, 0.086, 0.086,1.0};
onButtonClick = "[2,-1,(ctrlText 888894)] call life_fnc_newMsg;";
x = 0.32;
y = 0.30;
w = 0.2;
h = (1 / 25);
};
class TxtAdminButton : life_RscButtonMenu
{
idc = 888896;
text = "$STR_CELL_TextAdmins";
colorBackground[] = {0.584, 0.086, 0.086,1.0};
onButtonClick = "[3,-1,(ctrlText 888894)] call life_fnc_newMsg;";
x = 0.53;
y = 0.30;
w = 0.2;
h = (1 / 25);
};
class AdminMsgAll : life_RscButtonMenu
{
idc = 888898;
text = "$STR_CELL_AdminMSGAll";
colorBackground[] = {0.584, 0.086, 0.086,1.0};
onButtonClick = "[7,-1,(ctrlText 888894)] call life_fnc_newMsg;";
x = 0.53;
y = 0.30;
w = 0.2;
h = (1 / 25);
};
class EMSReq : life_RscButtonMenu
{
idc = 888899;
text = "$STR_CELL_EMSRequest";
colorBackground[] = {0.584, 0.086, 0.086,1.0};
onButtonClick = "[4,-1,(ctrlText 888894)] call life_fnc_newMsg;";
x = 0.11;
y = 0.30;
w = 0.2;
h = (1 / 25);
};
class ADACReq : life_RscButtonMenu
{
idc = 888899;
text = "$STR_CELL_ADACRequest";
colorBackground[] = {0.584, 0.086, 0.086,1.0};
onButtonClick = "[8,-1,(ctrlText 888894)] call life_fnc_newMsg;";
x = 0.63;
y = 0.30;
w = 0.2;
h = (1 / 25);
};
class CloseButton : Life_RscButtonMenu {
idc = -1;
text = "$STR_Global_Close";
onButtonClick = "closeDialog 0;";
x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.36 + (1 / 50);
w = (6.25 / 40);
h = (1 / 25);
};
};
};
Alles anzeigen
am ende habe ich das ADAReq
das sagt meine client log an
No entry 'mpmissions\__CUR_MP.LakesideValley\description.ext/Life_my_smartphone/controls/MessageList.rowHeight'.
14:00:20 Warning Message: '/' is not a value
14:00:20 Warning Message: No entry 'mpmissions\__CUR_MP.LakesideValley\description.ext/Life_my_smartphone/controls/MessageList.drawSideArrows'.
14:00:20 Warning Message: '/' is not a value
14:00:20 Warning Message: No entry 'mpmissions\__CUR_MP.LakesideValley\description.ext/Life_my_smartphone/controls/MessageList.idcLeft'.
14:00:20 Warning Message: '/' is not a value
14:00:20 Warning Message: No entry 'mpmissions\__CUR_MP.LakesideValley\description.ext/Life_my_smartphone/controls/MessageList.idcRight'.
14:00:20 Warning Message: '/' is not a value
hab es soweit hinbekommen das die message gesndet wird aber bei dem adac kommt keine message an pls help