Hast du ein Objekt auf der Karte mit der Variable: bank_obj auf der Karte?
Ausweis script
-
- Altis Life
-
Bledhox -
27. April 2020 um 19:07 -
Erledigt
-
-
nope
-
Dann setz mal auf die spawn Insel oder sonst wo ein Objekt mit dem Variablennamen bank_obj
Danach sollte es gehen
-
okay habe ich gemacht geht aber immer noch net
-
Schau dir bitte noch mal deine fn_lizenzzeigen.sqf an, wenn ich das richtig sehe sieht die am Anfang so aus
sollte aber so aussehen
Code//Author: PierreAmyf if(isServer)exitWith{}; private["_ziel", "_rang", "_marke", "_org", "_message"]; if(vehicle player != player )exitWith{};
Ich weiß zwar nicht wieso er die Fehler nicht in die Logs ausgibt, dass die Variablen nicht definiert sind, aber wahrscheinlich hast du in dem Log nicht versucht jemandem den Ausweis zu zeigen.
-
Schau dir bitte noch mal deine fn_lizenzzeigen.sqf an, wenn ich das richtig sehe sieht die am Anfang so aus
sollte aber so aussehen
Code//Author: PierreAmyf if(isServer)exitWith{}; private["_ziel", "_rang", "_marke", "_org", "_message"]; if(vehicle player != player )exitWith{};
Ich weiß zwar nicht wieso er die Fehler nicht in die Logs ausgibt, dass die Variablen nicht definiert sind, aber wahrscheinlich hast du in dem Log nicht versucht jemandem den Ausweis zu zeigen.
So werden aber die Variablen auch nur Private gemacht und nicht gesetzt. Dementsprechend dürfte das nicht viel bringen
-
also ich habe es so
Code
Alles anzeigen//Author: PierreAmyf if(isServer)exitWith{}; private["_ziel", "_rang", "_marke", "_org", "_message", "_rang","_MainLEVELNAME"]; if(vehicle player != player )exitWith{}; _ziel = cursorTarget; if(isNull _ziel) then {_ziel = player;}; if(!(_ziel isKindOf "Man")) then {_ziel = player;}; if(!(alive _ziel)) then {_ziel = player;}; if(player distance _ziel > 6) exitWith {hint parseText format ["<t color='#FFFF00'>Deine Arme sind viel zu kurz um den Ausweis zu zeigen! Geh näher ran.</t>"]}; // Nix mehr mit auf 500m Ausweis zeigen. switch(playerSide)do{ case west:{ switch (call life_coplevel) do{ case 1: { _rang = "Praktikant"; }; case 2: { _rang = "Anwärter"; }; case 3: { _rang = "Meister"; }; case 4: { _rang = "Obermeister"; }; case 5: { _rang = "Hauptmeister"; }; case 6: { _rang = "Kommissar"; }; case 7: { _rang = "OberKommissar"; }; case 8: { _rang = "Hauptkommissar"; }; case 9: { _rang = "Ausbilder"; }; case 10: { _rang = "Leitung"; }; default { _rank = "Error";}; }; _marke = "marke_civ"; _MainLEVELNAME = getText((Player getVariable "Level") >> "Name"); _org = "Polizei Altis"; }; case independent:{ switch (call life_mediclevel) do{ case 1: { _rang = "Praktikant"; }; case 2: { _rang = "Auszubildener"; }; case 3: { _rang = "Rettungsassistent"; }; case 4: { _rang = "Rettungssanitäter"; }; case 5: { _rang = "Rettungspilot"; }; case 6: { _rang = "Assistentsarzt"; }; case 7: { _rang = "Oberarzt"; }; case 8: { _rang = "Chefarzt"; }; case 9: { _rang = "Ausbilder"; }; case 10: { _rang = "Vorstand"; }; default { _rank = "Error";}; }; _marke = "marke_civ"; _MainLEVELNAME = getText((Player getVariable "Level") >> "Name"); _org = "Altis Rotes Kreuz"; }; case civilian:{ if(playerSide == civilian)then{ _rang = "Zivilist"; _marke = "marke_ziv"; _MainLEVELNAME = getText((Player getVariable "Level") >> "Name"); _org = "Republik Altis"; }else{ _rang = "Zivilist"; _marke = "marke_civ"; _MainLEVELNAME = getText((Player getVariable "Level") >> "Name"); _org = "Republik Altis"; }; }; }; _message = format["<img size='10' color='#FFFFFF' image='icons\%1.paa'/><br/><br/><t size='2.5' color='#F4FA58'>%2</t><br/><t size ='1.5' color='#D0B81F'>%5</t><br/><t size='1.8'>%4</t><br/><t size='1.8'>%3</t>",_marke, name player, _rang, _org,_MainLEVELNAME]; [player, _message] remoteExec ["life_fnc_Lizenzsehen",_ziel];
musst nur das MainLevel ausbauen:D
-
und das funktioniert?
-
Klar warum sollte es nicht geht teste Es aus und wenn nicht bitte deine Funktion.hpp und remoteexce.hpp
-
Funtion.hpp
Code
Alles anzeigenclass Socket_Reciever { tag = "SOCK"; class SQL_Socket { file = "core\session"; class dataQuery {}; class insertPlayerInfo {}; class requestReceived {}; class syncData {}; class updatePartial {}; class updateRequest {}; }; }; class SpyGlass { tag = "SPY"; class Functions { file = "SpyGlass"; class cookieJar{}; class notifyAdmins{}; class observe{}; }; }; class Life_Client_Core { tag = "life"; class Master_Directory { file = "core"; class initCiv {}; class initCop {}; class initMedic {}; class setupActions {}; class setupEVH {}; class survival {}; class welcomeNotification {}; }; class Actions { file = "core\actions"; class arrestAction {}; class buyLicense {}; class captureHideout {}; class catchFish {}; class dpFinish {}; class dropFishingNet {}; class escortAction {}; class gather {}; class getDPMission {}; class gutAnimal {}; class healHospital {}; class impoundAction {}; class mine {}; class newsBroadcast {}; class packupSpikes {}; class pickupItem {}; class pickupMoney {}; class postBail {}; class processAction {}; class pulloutAction {}; class putInCar {}; class removeContainer {}; class repairTruck {}; class restrainAction {}; class robAction {}; class searchAction {}; class searchVehAction {}; class seizePlayerAction {}; class serviceChopper {}; class stopEscorting {}; class storeVehicle {}; class surrender {}; class ticketAction {}; class unrestrain {}; class robShops {}; //Rob Gas Station & Shops Script class introCam {}; }; class Admin { file = "core\admin"; class adminCompensate {}; class adminDebugCon {}; class adminFreeze {}; class admingetID {}; class adminGodMode {}; class adminid {}; class admininfo {}; class adminMarkers {}; class adminMenu {}; class adminQuery {}; class adminSpectate {}; class adminTeleport {}; class adminTpHere {}; }; class Civilian { file = "core\civilian"; class civLoadout {}; class civMarkers {}; class demoChargeTimer {}; class freezePlayer {}; class jail {}; class jailMe {}; class knockedOut {}; class knockoutAction {}; class removeLicenses {}; class robPerson {}; class robReceive {}; class tazed {}; }; class Config { file = "core\config"; class houseConfig {}; class itemWeight {}; class vehicleAnimate {}; class vehicleWeightCfg {}; }; class Cop { file = "core\cop"; class bountyReceive {}; class containerInvSearch {}; class copInteractionMenu {}; class copLights {}; class copLoadout {}; class copMarkers {}; class copSearch {}; class copSiren {}; class doorAnimate {}; class fedCamDisplay {}; class licenseCheck {}; class licensesRead {}; class questionDealer {}; class radar {}; class repairDoor {}; class restrain {}; class searchClient {}; class seizeClient {}; class sirenLights {}; class spikeStripEffect {}; class ticketGive {}; class ticketPaid {}; class ticketPay {}; class ticketPrompt {}; class vehInvSearch {}; class wantedGrab {}; class copShowLicense {}; class copLicenseShown {}; }; class Dialog_Controls { file = "dialog\function"; class bankDeposit {}; class bankTransfer {}; class bankWithdraw {}; class displayHandler {}; class gangDeposit {}; class gangWithdraw {}; class garageLBChange {}; class impoundMenu {}; class progressBar {}; class safeFix {}; class safeInventory {}; class safeOpen {}; class safeTake {}; class sellGarage {}; class setMapPosition {}; class spawnConfirm {}; class spawnMenu {}; class spawnPointCfg {}; class spawnPointSelected {}; class unimpound {}; class vehicleGarage {}; class wireTransfer {}; }; class Functions { file = "core\functions"; class AAN {}; class accType {}; class actionKeyHandler {}; class animSync {}; class calWeightDiff {}; class clearVehicleAmmo {}; class dropItems {}; class escInterupt {}; class fetchCfgDetails {}; class fetchDeadGear {}; class fetchVehInfo {}; class isDamaged {}; class giveDiff {}; class handleDamage {}; class handleInv {}; class handleItem {}; class hideObj {}; class hudSetup {}; class hudUpdate {}; class inventoryClosed {}; class inventoryOpened {}; class isUIDActive {}; class keyHandler {}; class loadDeadGear {}; class loadGear {}; class nearATM {}; class nearestDoor {}; class nearUnits {}; class numberText {}; class onFired {}; class onTakeItem {}; class playerSkins {}; class playerTags {}; class postNewsBroadcast {}; class pullOutVeh {}; class pushObject {}; class receiveItem {}; class receiveMoney {}; class revealObjects {}; class saveGear {}; class searchPosEmpty {}; class simDisable {}; class stripDownPlayer {}; class tazeSound {}; class teleport {}; class whereAmI {}; }; class Gangs { file = "core\gangs"; class createGang {}; class gangCreated {}; class gangDisband {}; class gangDisbanded {}; class gangInvite {}; class gangInvitePlayer {}; class gangKick {}; class gangLeave {}; class gangMenu {}; class gangNewLeader {}; class gangUpgrade {}; class initGang {}; }; class Housing { file = "core\housing"; class buyHouse {}; class buyHouseGarage {}; class containerMenu {}; class copBreakDoor {}; class copHouseOwner {}; class garageRefund {}; class getBuildingPositions {}; class houseMenu {}; class initHouses {}; class lightHouse {}; class lightHouseAction {}; class lockHouse {}; class lockupHouse {}; class placeContainer {}; class PlayerInBuilding {}; class raidHouse {}; class sellHouse {}; class sellHouseGarage {}; }; class Items { file = "core\items"; class blastingCharge {}; class boltcutter {}; class defuseKit {}; class flashbang {}; class jerrycanRefuel {}; class jerryRefuel {}; class lockpick {}; class placestorage {}; class spikeStrip {}; class storageBox {}; }; class Medical_System { file = "core\medical"; class deathScreen {}; class medicLights {}; class medicLoadout {}; class medicMarkers {}; class medicRequest {}; class medicSiren {}; class medicSirenLights {}; class onPlayerKilled {}; class onPlayerRespawn {}; class requestMedic {}; class respawned {}; class revived {}; class revivePlayer {}; }; class Network { file = "core\functions\network"; class broadcast {}; class corpse {}; class jumpFnc {}; class say3D {}; class setFuel {}; class soundDevice {}; }; class Player_Menu { file = "core\pmenu"; class cellphone {}; class giveItem {}; class giveMoney {}; class keyDrop {}; class keyGive {}; class keyMenu {}; class p_openMenu {}; class p_updateMenu {}; class pardon {}; class removeItem {}; class s_onChar {}; class s_onCheckedChange {}; class s_onSliderChange {}; class settingsMenu {}; class updateViewDistance {}; class useItem {}; class wantedAddP {}; class wantedInfo {}; class wantedList {}; class wantedMenu {}; }; class Shops { file = "core\shops"; class atmMenu {}; class buyClothes {}; class changeClothes {}; class chopShopMenu {}; class chopShopSelection {}; class chopShopSell {}; class clothingFilter {}; class clothingMenu {}; class fuelLBchange {}; class fuelStatOpen {}; class levelCheck {}; class vehicleShop3DPreview {}; class vehicleShopBuy {}; class vehicleShopEnd3DPreview {}; class vehicleShopInit3DPreview {}; class vehicleShopLBChange {}; class vehicleShopMenu {}; class virt_buy {}; class virt_menu {}; class virt_sell {}; class virt_update {}; class weaponShopAccs {}; class weaponShopBuySell {}; class weaponShopFilter {}; class weaponShopMags {}; class weaponShopMenu {}; class weaponShopSelection {}; }; class Vehicle { file = "core\vehicle"; class addVehicle2Chain {}; class colorVehicle {}; class deviceMine {}; class FuelRefuelcar {}; class fuelStore {}; class fuelSupply {}; class lockVehicle {}; class openInventory {}; class vehiclecolor3DRefresh {}; class vehicleOwners {}; class vehicleWeight {}; class vehInventory {}; class vehStoreItem {}; class vehTakeItem {}; class vInteractionMenu {}; }; class Ausweis { file = "scripts\Ausweis"; class Lizenzsehen {}; class Lizenzzeigen {}; }; };
Remoteexec.hpp
Code
Alles anzeigen#define F(NAME,TARGET) class NAME { \ allowedTargets = TARGET; \ }; #define ANYONE 0 #define CLIENT 1 #define SERVER 2 #define HC HC_Life class CfgRemoteExec { class Functions { mode = 1; jip = 0; /* Client only functions */ F(life_fnc_AAN,CLIENT) F(life_fnc_addVehicle2Chain,CLIENT) F(life_fnc_adminID,CLIENT) F(life_fnc_adminInfo,CLIENT) F(life_fnc_bountyReceive,CLIENT) F(life_fnc_copLights,CLIENT) F(life_fnc_copSearch,CLIENT) F(life_fnc_copSiren,CLIENT) F(life_fnc_freezePlayer,CLIENT) F(life_fnc_gangCreated,CLIENT) F(life_fnc_gangDisbanded,CLIENT) F(life_fnc_gangInvite,CLIENT) F(life_fnc_garageRefund,CLIENT) F(life_fnc_giveDiff,CLIENT) F(life_fnc_hideObj,CLIENT) F(life_fnc_impoundMenu,CLIENT) F(life_fnc_jail,CLIENT) F(life_fnc_jailMe,CLIENT) F(life_fnc_knockedOut,CLIENT) F(life_fnc_licenseCheck,CLIENT) F(life_fnc_licensesRead,CLIENT) F(life_fnc_lightHouse,CLIENT) F(life_fnc_mediclights,CLIENT) F(life_fnc_medicRequest,CLIENT) F(life_fnc_medicSiren,CLIENT) F(life_fnc_moveIn,CLIENT) F(life_fnc_pickupItem,CLIENT) F(life_fnc_pickupMoney,CLIENT) F(life_fnc_receiveItem,CLIENT) F(life_fnc_receiveMoney,CLIENT) F(life_fnc_removeLicenses,CLIENT) F(life_fnc_restrain,CLIENT) F(life_fnc_revived,CLIENT) F(life_fnc_robPerson,CLIENT) F(life_fnc_robReceive,CLIENT) F(life_fnc_searchClient,CLIENT) F(life_fnc_seizeClient,CLIENT) F(life_fnc_soundDevice,CLIENT) F(life_fnc_spikeStripEffect,CLIENT) F(life_fnc_tazeSound,CLIENT) F(life_fnc_ticketPaid,CLIENT) F(life_fnc_ticketPrompt,CLIENT) F(life_fnc_vehicleAnimate,CLIENT) F(life_fnc_wantedList,CLIENT) F(life_fnc_wireTransfer,CLIENT) F(SOCK_fnc_dataQuery,CLIENT) F(SOCK_fnc_insertPlayerInfo,CLIENT) F(SOCK_fnc_requestReceived,CLIENT) F(SOCK_fnc_updateRequest,CLIENT) F(TON_fnc_clientGangKick,CLIENT) F(TON_fnc_clientGangLeader,CLIENT) F(TON_fnc_clientGangLeft,CLIENT) F(TON_fnc_clientGetKey,CLIENT) F(TON_fnc_clientMessage,CLIENT) F(TON_fnc_player_query,CLIENT) F(life_fnc_lizenzzeigen,CLIENT) /* Server only functions */ F(BIS_fnc_execVM,SERVER) F(DB_fnc_insertRequest,SERVER) F(DB_fnc_queryRequest,SERVER) F(DB_fnc_updatePartial,SERVER) F(DB_fnc_updateRequest,SERVER) F(life_fnc_jailSys,SERVER) F(life_fnc_wantedAdd,SERVER) F(life_fnc_wantedBounty,SERVER) F(life_fnc_wantedCrimes,SERVER) F(life_fnc_wantedFetch,SERVER) F(life_fnc_wantedProfUpdate,SERVER) F(life_fnc_wantedRemove,SERVER) F(SPY_fnc_cookieJar,SERVER) F(SPY_fnc_observe,SERVER) F(TON_fnc_addContainer,SERVER) F(TON_fnc_addHouse,SERVER) F(TON_fnc_chopShopSell,SERVER) F(TON_fnc_cleanupRequest,SERVER) F(TON_fnc_deleteDBContainer,SERVER) F(TON_fnc_getID,SERVER) F(TON_fnc_getVehicles,SERVER) F(TON_fnc_insertGang,SERVER) F(TON_fnc_keyManagement,SERVER) F(TON_fnc_manageSC,SERVER) F(TON_fnc_pickupAction,SERVER) F(TON_fnc_removeGang,SERVER) F(TON_fnc_sellHouse,SERVER) F(TON_fnc_sellHouseContainer,SERVER) F(TON_fnc_setObjVar,SERVER) F(TON_fnc_spawnVehicle,SERVER) F(TON_fnc_spikeStrip,SERVER) F(TON_fnc_updateGang,SERVER) F(TON_fnc_updateHouseContainers,SERVER) F(TON_fnc_updateHouseTrunk,SERVER) F(TON_fnc_vehicleCreate,SERVER) F(TON_fnc_vehicleDelete,SERVER) F(TON_fnc_vehicleStore,SERVER) F(TON_fnc_vehicleUpdate,SERVER) F(TON_fnc_handleBlastingCharge,SERVER) F(TON_fnc_houseGarage,SERVER) /* HeadlessClient only functions */ F(HC_fnc_addContainer,HC) F(HC_fnc_addHouse,HC) F(HC_fnc_chopShopSell,HC) F(HC_fnc_deleteDBContainer,HC) F(HC_fnc_getVehicles,HC) F(HC_fnc_houseGarage,HC) F(HC_fnc_insertGang,HC) F(HC_fnc_insertRequest,HC) F(HC_fnc_insertVehicle,HC) F(HC_fnc_jailSys,HC) F(HC_fnc_keyManagement,HC) F(HC_fnc_queryRequest,HC) F(HC_fnc_removeGang,HC) F(HC_fnc_sellHouse,HC) F(HC_fnc_sellHouseContainer,HC) F(HC_fnc_spawnVehicle,HC) F(HC_fnc_spikeStrip,HC) F(HC_fnc_updateGang,HC) F(HC_fnc_updateHouseContainers,HC) F(HC_fnc_updateHouseTrunk,HC) F(HC_fnc_updatePartial,HC) F(HC_fnc_updateRequest,HC) F(HC_fnc_vehicleCreate,HC) F(HC_fnc_vehicleDelete,HC) F(HC_fnc_vehicleStore,HC) F(HC_fnc_vehicleUpdate,HC) F(HC_fnc_wantedAdd,HC) F(HC_fnc_wantedBounty,HC) F(HC_fnc_wantedCrimes,HC) F(HC_fnc_wantedFetch,HC) F(HC_fnc_wantedProfUpdate,HC) F(HC_fnc_wantedRemove,HC) /* Functions for everyone */ F(BIS_fnc_effectKilledAirDestruction,ANYONE) F(BIS_fnc_effectKilledSecondaries,ANYONE) F(life_fnc_animSync,ANYONE) F(life_fnc_broadcast,ANYONE) F(life_fnc_colorVehicle,ANYONE) F(life_fnc_corpse,ANYONE) F(life_fnc_demoChargeTimer,ANYONE) F(life_fnc_flashbang,ANYONE) F(life_fnc_jumpFnc,ANYONE) F(life_fnc_lockVehicle,ANYONE) F(life_fnc_pulloutVeh,ANYONE) F(life_fnc_say3D,ANYONE) F(life_fnc_setFuel,ANYONE) F(life_fnc_simDisable,ANYONE) F(SPY_fnc_notifyAdmins,ANYONE) }; class Commands { mode = 1; jip = 0; F(addHandgunItem,ANYONE) F(addMagazine,ANYONE) F(addPrimaryWeaponItem,ANYONE) F(addWeapon,ANYONE) F(setFuel,ANYONE) }; };
-
Schicke dir wenn ich Home bin was
-
-
Endlich Super es hat geklappt Vielen DANK!!!
-
kein Problem immer gerne
-