Hey ich habe heute über ne Stunde an einem Design für mein Sql Smartphone gearbeitet.. Alles ist Fertig und die Spielerliste wird auch angezeigt, dass Problem ist wenn ich versuche jemanden eine Nachricht zu schreiben seinen Namen auswähle und dann auf Senden drücke, dann kommt irgend so ein komischer ein hint mit dem Inhalt (auwln hilt) ich habe alles probiert nur ich kriege irgendwie nicht hin... Ich hoffe ihr habt da eine Lösung. Ich benutzte das SQL Smartphone auf der 3.1.4.8 und habe die Schreiben und senden Funktion in einen Dialog eingebaut und alles definiert!
Danke im Voraus!
Hier mein Dialog:
Code
class Life_my_smartphone {
idd = 88888;
name = "life_my_telephone_menu";
onLoad = "[] spawn life_fnc_smartphone;";
movingEnable = false;
enableSimulation = true;
class controlsBackground {
class MainBackground:Life_RscText
{
idc = -1;
w = 0.440311 * safezoneW;
h = 0.43 * safezoneH;
ColorBackground[] = {0,0,0,0.694117};
};
class Life_RscTitleBackground:Life_RscText
{
idc = -1;
w = 0.440180 * safezoneW;
h = 0.02 * safezoneH;
ColorBackground[] = {0.843137,0.058823,0.176470,1};
};
class MessageTitleBackground:Life_RscText
{
idc = -1;
w = 0.305911 * safezoneW;
h = 0.021 * safezoneH;
ColorBackground[] = {0.843137,0.058823,0.176470,1};
};
class RandomTitleBackground:Life_RscText
{
idc = -1;
w = 0.306042 * safezoneW;
h = 0.021 * safezoneH;
ColorBackground[] = {0.843137,0.058823,0.176470,1};
};
class PlayerListTitleBackground:Life_RscText
{
idc = -1;
w = 0.122156 * safezoneW;
h = 0.021 * safezoneH;
ColorBackground[] = {0.843137,0.058823,0.176470,1};
};
};
class controls {
class Title : Life_RscTitle
{
idc = -1;
text = "$STR_SMARTPHONE_TITLE";
w = 0.44018 * safezoneW;
h = 0.02 * safezoneH;
ColorBackground[] = {1,1,1,0};
ColorText[] = {1,1,1,1};
};
class PlayerListTitle : Life_RscTitle
{
idc = -1;
text = "$STR_SMARTPHONE_PLAYERLISTTITLE";
w = 0.122157 * safezoneW;
h = 0.021 * safezoneH;
ColorBackground[] = {0,0,0,0};
ColorText[] = {1,1,1,1};
};
class RandomTitle : Life_RscTitle
{
idc = 88890;
text = "$STR_SMARTPHONE_RANDOMTITLE";
w = 0.306042 * safezoneW;
h = 0.021 * safezoneH;
ColorBackground[] = {0,0,0,0};
ColorText[] = {1,1,1,1};
};
class MessageTitle : Life_RscTitle
{
idc = 88886;
text = "";
w = 0.305911 * safezoneW;
h = 0.021 * safezoneH;
ColorBackground[] = {0,0,0,0};
ColorText[] = {1,1,1,1};
};
class PlayerList : Life_RscListBox
{
idc = 88881;
onLBSelChanged = "[2] spawn life_fnc_smartphone;";
sizeEx = 0.03;
w = 0.122221 * safezoneW;
h = 0.366639 * safezoneH;
ColorBackground[] = {0,0,0,0.705882};
ColorText[] = {1,1,1,1};
};
class MessageList : Life_RscListNBox
{
idc = 88882;
onLBSelChanged = "[(lbCurSel 88882)] call life_fnc_showMsg;";
sizeEx = 0.03;
w = 0.306302 * safezoneW;
h = 0.109180 * safezoneH;
ColorBackground[] = {0,0,0,0.705882};
ColorText[] = {1,1,1,1};
};
class CloseLoadMenu : Life_RscButtonMenu
{
idc = -1;
text = "$STR_Global_Close";
onButtonClick = "closeDialog 0;[] call life_fnc_p_updateMenu";
w = 0.059385 * safezoneW;
h = 0.021 * safezoneH;
ColorBackground[] = {0,0,0,0.627450};
ColorText[] = {1,1,1,1};
};
class DeleteMessages : Life_RscButtonMenu
{
idc = -1;
text = "Löschen";
onButtonClick = "[3] call life_fnc_smartphone;";
w = 0.054696 * safezoneW;
h = 0.021 * safezoneH;
ColorBackground[] = {1,0,0,1};
ColorText[] = {1,1,1,1};
};
class Notruf : Life_RscButtonMenu
{
idc = -1;
text = "$STR_SMARTPHONE_NOTRUF";
onButtonClick = "createDialog ""Life_smartphone_notruf"";";
w = 0.062510 * safezoneW;
h = 0.021 * safezoneH;
ColorBackground[] = {0.843137,0.623529,0.058823,0.701960};
ColorText[] = {1,1,1,1};
};
class Absenden : Life_RscButtonMenu
{
idc = 88885;
text = "Senden";
onButtonClick = "[1,-1,(ctrlText 88884)] call life_fnc_newMsg;";
w = 0.059171 * safezoneW;
h = 0.022 * safezoneH;
ColorBackground[] = {0.843137,0.058823,0.176470,0.701960};
ColorText[] = {1,1,1,1};
font = TahomaB;
colorFocused[] = {0,0,0,1};
colorDisabled[] = {0,0,0,1};
};
class textEdit : Life_RscEdit
{
idc = 88884;
text = "";
w = 0.370376 * safezoneW;
h = 0.022 * safezoneH;
ColorBackground[] = {1,1,1,0};
ColorText[] = {1,1,1,1};
};
class showText : Life_RscStructuredText
{
idc = 88887;
text = "";
size = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.8)";
shadow = 0;
w = 0.306303 * safezoneW;
h = 0.206557 * safezoneH;
ColorBackground[] = {1,1,1,0};
ColorText[] = {1,1,1,1};
};
};
};
class Life_smartphone_schreiben
{
idd = 88883;
name = "life_my_smartphone_schreiben";
movingEnable = false;
enableSimulation = true;
onLoad = "[0,(lbData[88881,(lbCurSel 88881)])] spawn life_fnc_newMsg;";
class controls {
class Absenden : Life_RscButtonMenu
{
idc = 88885;
text = "Senden";
onButtonClick = "[1,-1,(ctrlText 88884)] call life_fnc_newMsg;";
x = 0.651368 * safezoneW + safezoneX;
y = 0.700147 * safezoneH + safezoneY;
w = 0.059171 * safezoneW;
h = 0.022 * safezoneH;
ColorBackground[] = {0.843137,0.058823,0.176470,0.701960};
ColorText[] = {1,1,1,1};
};
class textEdit : Life_RscEdit
{
idc = 88884;
text = "";
w = 0.370376 * safezoneW;
h = 0.022 * safezoneH;
ColorBackground[] = {1,1,1,0};
ColorText[] = {1,1,1,1};
};
};
};
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.85;
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.85;
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.83; 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 PolizeiMsgAllButton : life_RscButtonMenu
{
idc = 3023;
text = "Rundfunk";
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])", 0.5};
onButtonClick = "[] call TON_fnc_cell_polizeimsgall";
x = 0.11;
y = 0.35;
w = 0.2;
h = (1 / 25);
};
class ADACReq : life_RscButtonMenu
{
idc = 888900;
text = "$STR_CELL_ADACRequest";
colorBackground[] = {0.584, 0.086, 0.086,1.0};
onButtonClick = "[8,-1,(ctrlText 888894)] call life_fnc_newMsg;";
x = 0.74;
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.38 + (1 / 50);
w = (6.25 / 40);
h = (1 / 25);
};
class KoordinatenButton : Life_RscButtonMenu {
idc = 8888961;
text = "Koordinaten mit senden";
onButtonClick = "if(!(player getVariable['sendCords',false])) then {player setVariable ['sendCords',true,false]; hint 'Koordinaten mit senden : OFF';}else{player setVariable ['sendCords',false,false]; hint 'Koordinaten mit senden : ON';};";
x = 0.12 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.36 + (1 / 50);
w = 0.18 + (6.25 / 40);
h = (1 / 25);
};
};
};
Alles anzeigen
PS: Ich habe die Positionen X und Y entfernt, damit meine Arbeit nicht Kopiert wird!
Mfg Pius von Team-Wings