Guten Tag NN,
Ich habe folgendes Problem ich habe das Calling System von The Programmer Installiert und jetzt erscheint nicht ein Fehler in den Datein wo ich was rein schreiben sollte sondern in den Vorgegebenen Dateien.
Ich war auch schon dort bei dem Support und wurde nach meiner E-Mail gefragt mit der ich es gekauft habe Problem ist bloß folgendes dass ich das von einem Kumpel geschenkt bekommen habe und dieser momentan nicht zuerreichen ist also wende ich mich nun an euch in der Hoffnung das Ihr mir helfen könnt.
Ausschnitt des Fehlers
Spoiler anzeigen
if (_num != "0") then {_numTxt ctrlSetStruct>
14:59:32 Error position: <_num != "0") then {_numTxt ctrlSetStruct>
14:59:32 Error Nicht definierte Variable in Ausdruck: _num
14:59:32 File The-Programmer\Phone\scripts\fn_boutique_orange.sqf [max_phone_fnc_boutique_orange], line 86
14:59:41 Error in expression <ayer getVariable "maxence_numero";
So sieht die Datei aus
#include "..\..\script_macros.hpp"
/*
Author: Maxence Lyon
Altis DEV: https://altisdev.com/user/maxence-lyon
Teamspeak 3: ts.the-programmer.com
Web site: www.the-programmer.com
Steam: « Une Vache Sur CS – Maxence », please leave a message on my profile who says the exact reason before adding me.
Terms of use:
- This file is forbidden unless you have permission from the author. If you have this file without permission to use it please do not use it and do not share it.
- If you have permission to use this file, you can use it on your server however it is strictly forbidden to share it.
- Out of respect for the author please do not delete this information.
License number:
Server's name:
Owner's name:
*/
_type = param [0,0,[0]];
_curConfig = missionConfigFile >> "Max_Settings_Phone";
switch (_type) do {
case 0 : { //MENU
disableSerialization;
_display = findDisplay 1420;
_smsTxt = _display displayCtrl 1421;
_appelTxt = _display displayCtrl 1422;
_numTxt = _display displayCtrl 1423;
_num = player getVariable "maxence_numero";
if (_num != "0") then {_numTxt ctrlSetStructuredText parseText format [(["STR_ACTUAL_PHONE_NUMBER_PARSETEXT"] call max_phone_fnc_localize),_num];};
_smsTxt ctrlSetStructuredText parseText format[(["STR_SMS_PARSETEXT"] call max_phone_fnc_localize),maxence_sms];
_time = maxence_appel / 3600;
_time = [_time] call BIS_fnc_timeToString;
_appelTxt ctrlSetStructuredText parseText format[(["STR_CALL_PARSETEXT"] call max_phone_fnc_localize),_time];
(_display displayCtrl 1424) ctrlSetStructuredText parseText format ["<t align='center'><t color='#FF8000'><t size='0.9'>%1%2</t></t></t>",getNumber(_curConfig >> "price_buy_sim"),(["STR_MONEY"] call max_phone_fnc_localize)];
(_display displayCtrl 1425) ctrlSetStructuredText parseText format ["<t align='center'><t color='#FF8000'><t size='1.8'>%1%2</t></t></t>",getNumber(_curConfig >> "price_offer_1"),(["STR_MONEY"] call max_phone_fnc_localize)];
(_display displayCtrl 1426) ctrlSetStructuredText parseText format ["<t align='center'><t color='#FF8000'><t size='1.8'>%1%2</t></t></t>",getNumber(_curConfig >> "price_offer_2"),(["STR_MONEY"] call max_phone_fnc_localize)];
(_display displayCtrl 1427) ctrlSetStructuredText parseText format ["<t align='center'><t color='#FF8000'><t size='1.8'>%1%2</t></t></t>",getNumber(_curConfig >> "price_offer_3"),(["STR_MONEY"] call max_phone_fnc_localize)];
if ((getText (_curConfig >> "default_lang")) isEqualTo "fr") then {
(_display displayCtrl 1428) ctrlSetText "The-Programmer\Phone\textures\boutique_orange_fr.paa";
} else {
if ((getText (_curConfig >> "default_lang")) isEqualTo "de") then {
(_display displayCtrl 1428) ctrlSetText "The-Programmer\Phone\textures\boutique_orange_de.paa";
} else {
(_display displayCtrl 1428) ctrlSetText "The-Programmer\Phone\textures\boutique_orange_en.paa";
};
};
};
case 1 : { //FORFAIT 1
if ((player getVariable "maxence_numero") isEqualTo "0") exitWith {hint (["STR_YOU_MUST_BUY_SIM"] call max_phone_fnc_localize);};
_price = getNumber(_curConfig >> "price_offer_1");
if (BANK < _price) exitWith {hint (["STR_NOT_ENOUGHT_MONEY_BANK"] call max_phone_fnc_localize);};
BANK = BANK - _price;
[1] call SOCK_fnc_updatePartial;
_sms = 50;
_appel = 3600;
hint format [(["STR_BUY_FORFAIT"] call max_phone_fnc_localize),_sms,(_appel / 3600)];
maxence_sms = maxence_sms + _sms;
maxence_appel = maxence_appel + _appel;
[getPlayerUID player,maxence_sms,maxence_appel] remoteExec ["max_phone_fnc_updateForfait",2];
[0] spawn max_phone_fnc_boutique_orange;
};
case 2 : { //FORFAIT 2
if ((player getVariable "maxence_numero") isEqualTo "0") exitWith {hint (["STR_YOU_MUST_BUY_SIM"] call max_phone_fnc_localize);};
_price = getNumber(_curConfig >> "price_offer_2");
if (BANK < _price) exitWith {hint (["STR_NOT_ENOUGHT_MONEY_BANK"] call max_phone_fnc_localize);};
BANK = BANK - _price;
[1] call SOCK_fnc_updatePartial;
_sms = 150;
_appel = 7200;
hint format [(["STR_BUY_FORFAIT"] call max_phone_fnc_localize),_sms,(_appel / 3600)];
maxence_sms = maxence_sms + _sms;
maxence_appel = maxence_appel + _appel;
[getPlayerUID player,maxence_sms,maxence_appel] remoteExec ["max_phone_fnc_updateForfait",2];
[0] spawn max_phone_fnc_boutique_orange;
};
case 3 : { //FORFAIT 3
if ((player getVariable "maxence_numero") isEqualTo "0") exitWith {hint (["STR_YOU_MUST_BUY_SIM"] call max_phone_fnc_localize);};
_price = getNumber(_curConfig >> "price_offer_3");
if (BANK < _price) exitWith {hint (["STR_NOT_ENOUGHT_MONEY_BANK"] call max_phone_fnc_localize);};
BANK = BANK - _price;
[1] call SOCK_fnc_updatePartial;
_sms = 550;
_appel = 18000;
hint format [(["STR_BUY_FORFAIT"] call max_phone_fnc_localize),_sms,(_appel / 3600)];
maxence_sms = maxence_sms + _sms;
maxence_appel = maxence_appel + _appel;
[getPlayerUID player,maxence_sms,maxence_appel] remoteExec ["max_phone_fnc_updateForfait",2];
[0] spawn max_phone_fnc_boutique_orange;
};
case 4 : { //CARTE SIM
_price = getNumber(_curConfig >> "price_buy_sim");
if (BANK < _price) exitWith {hint (["STR_NOT_ENOUGHT_MONEY_BANK"] call max_phone_fnc_localize);};
BANK = BANK - _price;
[1] call SOCK_fnc_updatePartial;
_num = getNumber (_curConfig >> "first_numbers");
if ((getNumber (_curConfig >> "start_with_0")) == 1) then {_num = format ["0%1",_num];};
for "_i" from 1 to getNumber(_curConfig >> "numbers_after_first_numbers") do {
_num = format ["%1%2",_num,round (random 9)]
};
hint (["STR_RANDOMING_PHONE_NUMBER"] call max_phone_fnc_localize);
uiSleep 3;
player setVariable ["maxence_numero",_num,true];
[getPlayerUID player,_num,maxence_contact] remoteExec ["max_phone_fnc_updatePhone",2];
hint format [(["STR_NEW_PHONE_NUMBER"] call max_phone_fnc_localize),_num];
[0] spawn max_phone_fnc_boutique_orange;
};
};
Alles anzeigen