Deux problèmes de véhicules


#1

Salut à tous,

Voilà j’ai deux problèmes que je n’arrive pas à résoudre alors je m’en remets à vous.

Le premier est que quand je lance le minage auto (dispo uniquement pour pétrole) je vois les ressources qui prennent de la place dans le coffre mais je ne la vois pas dans le coffre du véhicule.

Et le deuxième est que quand un véhicule n’est pas stocké dans le garage il disparaît et ne revient pas dans le garage. Mais il est quand même inscrit dans la database.

Si quelqu’un peut me dire où chercher pour régler tout ça je suis preneur.

Merci d’avance


#2

Smocky Probleme DataBase


#3

Smocky Probleme DataBase

Je l’ai refaite mais le problème est toujours là.


#4

Vérifie dans : **fn_varHandle.sqf et fn_varToStr.sqf **si les cases sont correctement dite.

Pour le second bug, si le véhicule intégre bien le garage, il passe alors en **désactiver *alors faudrait regarder dans ton life_server\Functions\Systems*fn_vehicleStore.sqf


#5

Lewos Je viens de vérifier les deux fichiers et je ne trouve aucune erreur et pour ce qui est du life_server, j’ai le même problème avec le fichier de base dispo sur le site officiel du mod.


#6

Smocky Envoie tes **fn_varHandle.sqf et fn_varToStr.sqf **


#7

Pink3vil

/*  
	File: fn_varHandle.sqf  
	Author: Bryan "Tonic" Boardwine  

	Description:  
	Master handler for getting a variables name, short name, etc.  
*/  
private["_var","_mode"];  
_var = [_this,0,"",[""]] call BIS_fnc_param;  
_mode = [_this,1,-1,[0]] call BIS_fnc_param;  
if(_var == "" OR _mode == -1) exitWith {""};  

switch (_mode) do  
{  
	case 0:  
	{  
		switch (_var) do  
		{  
			case "oilu": {"life_inv_oilu"};  
			case "oilp": {"life_inv_oilp"};  
			case "heroinu": {"life_inv_heroinu"};  
			case "heroinp": {"life_inv_heroinp"};  
			case "cannabis": {"life_inv_cannabis"};  
			case "marijuana": {"life_inv_marijuana"};  
			case "medmarijuana": {"life_inv_medmarijuana"};  
			case "apple": {"life_inv_apple"};  
			case "cherry": {"life_inv_cherry"};  
			case "pear": {"life_inv_pear"};  
			case "water": {"life_inv_water"};  
			case "rabbit": {"life_inv_rabbit"};  
			case "salema": {"life_inv_salema"};  
			case "ornate": {"life_inv_ornate"};  
			case "mackerel": {"life_inv_mackerel"};  
			case "tuna": {"life_inv_tuna"};  
			case "mullet": {"life_inv_mullet"};  
			case "catshark": {"life_inv_catshark"};  
			case "turtle": {"life_inv_turtle"};  
			case "fishing": {"life_inv_fishingpoles"};  
			case "coffee": {"life_inv_coffee"};  
			case "turtlesoup": {"life_inv_turtlesoup"};  
			case "donuts": {"life_inv_donuts"};  
			case "fuelE": {"life_inv_fuelE"};  
			case "fuelF": {"life_inv_fuelF"};  
			case "barriere": {"life_inv_barriere"};  
			case "money": {"life_cash"};  
			case "pickaxe": {"life_inv_pickaxe"};  
			case "copperore": {"life_inv_copperore"};  
			case "ironore": {"life_inv_ironore"};  
			case "iron_r": {"life_inv_ironr"};  
			case "copper_r": {"life_inv_copperr"};  
			case "salt": {"life_inv_salt"};  
			case "salt_r": {"life_inv_saltr"};  
			case "sand": {"life_inv_sand"};  
			case "glass": {"life_inv_glass"};  
			case "tbacon": {"life_inv_tbacon"};  
			case "lockpick": {"life_inv_lockpick"};  
			case "redgull": {"life_inv_redgull"};  
			case "peach": {"life_inv_peach"};  
			case "diamond": {"life_inv_diamond"};  
			case "diamondc": {"life_inv_diamondr"};  
			case "cocaine": {"life_inv_coke"};  
			case "cocainep": {"life_inv_cokep"};  
			case "ephedra": {"life_inv_ephedra"};  
			case "ephedrap": {"life_inv_ephedrap"};  
			case "spikeStrip": {"life_inv_spikeStrip"};  
			case "cement": {"life_inv_cement"};  
			case "rock": {"life_inv_rock"};  
			case "goldbar": {"life_inv_goldbar"};  
			case "blastingcharge": {"life_inv_blastingcharge"};  
			case "boltcutter": {"life_inv_boltcutter"};  
			case "defusekit": {"life_inv_defusekit"};  
			case "storagesmall": {"life_inv_storagesmall"};  
			case "storagebig": {"life_inv_storagebig"};  
			case "battery": {"life_inv_battery"};  
		};  
	};  

	case 1:  
	{  
		switch (_var) do  
		{  
			case "life_inv_oilu": {"oilu"};  
			case "life_inv_oilp": {"oilp"};  
			case "life_inv_heroinu": {"heroinu"};  
			case "life_inv_heroinp": {"heroinp"};  
			case "life_inv_cannabis": {"cannabis"};  
			case "life_inv_marijuana": {"marijuana"};  
			case "life_inv_medmarijuana": {"medmarijuana"};  
			case "life_inv_apple": {"apple"};  
			case "life_inv_cherry": {"cherry"};  
			case "life_inv_pear": {"pear"};  
			case "life_inv_water": {"water"};  
			case "life_inv_rabbit": {"rabbit"};  
			case "life_inv_salema": {"salema"};  
			case "life_inv_ornate": {"ornate"};  
			case "life_inv_mackerel": {"mackerel"};  
			case "life_inv_tuna": {"tuna"};  
			case "life_inv_mullet": {"mullet"};  
			case "life_inv_catshark": {"catshark"};  
			case "life_inv_turtle": {"turtle"};  
			case "life_inv_fishingpoles": {"fishing"};  
			case "life_inv_coffee": {"coffee"};  
			case "life_inv_turtlesoup": {"turtlesoup"};  
			case "life_inv_donuts": {"donuts"};  
			case "life_inv_fuelE": {"fuelE"};  
			case "life_inv_fuelF": {"fuelF"};  
			case "life_cash": {"money"};  
			case "life_inv_pickaxe": {"pickaxe"};  
			case "life_inv_barriere": {"barriere"};  
			case "life_inv_copperore": {"copperore"};  
			case "life_inv_ironore": {"ironore"};  
			case "life_inv_ironr": {"iron_r"};  
			case "life_inv_copperr": {"copper_r"};  
			case "life_inv_sand": {"sand"};  
			case "life_inv_salt": {"salt"};  
			case "life_inv_glass": {"glass"};  
			case "life_inv_redgull": {"redgull"};  
			case "life_inv_lockpick": {"lockpick"};  
			case "life_inv_tbacon": {"tbacon"};  
			case "life_inv_peach": {"peach"};  
			case "life_inv_diamond": {"diamond"};  
			case "life_inv_diamondr": {"diamondc"};  
			case "life_inv_saltr": {"salt_r"};  
			case "life_inv_coke": {"cocaine"};  
			case "life_inv_cokep": {"cocainep"};  
			case "life_inv_ephedra": {"ephedra"};  
			case "life_inv_ephedrap": {"ephedrap"};  
			case "life_inv_spikeStrip": {"spikeStrip"};  
			case "life_inv_cement": {"cement"};  
			case "life_inv_rock": {"rock"};  
			case "life_inv_goldbar": {"goldbar"};  
			case "life_inv_blastingcharge": {"blastingcharge"};  
			case "life_inv_boltcutter": {"boltcutter"};  
			case "life_inv_defusekit": {"defusekit"};  
			case "life_inv_storagesmall": {"storagesmall"};  
			case "life_inv_storagebig": {"storagebig"};  
			case "life_inv_battery": {"battery"};  
		};  
	};  
};  

/*  
	File: fn_varToStr.sqf  
	Author: Bryan "Tonic" Boardwine  

	Description:  
	Takes the long-name (variable) and returns a display name for our  
	virtual item.  
*/  
private["_var"];  
_var = [_this,0,"",[""]] call BIS_fnc_param;  
if(_var == "") exitWith {""};  

switch (_var) do  
{  
	//Virtual Inventory Items  
	case "life_inv_oilu": {(localize "STR_Item_OilU")};  
	case "life_inv_oilp": {(localize "STR_Item_OilP")};  
	case "life_inv_heroinu": {(localize "STR_Item_HeroinU")};  
	case "life_inv_heroinp": {(localize "STR_Item_HeroinP")};  
	case "life_inv_cannabis": {(localize "STR_Item_Cannabis")};  
	case "life_inv_marijuana": {(localize "STR_Item_Marijuana")};  
	case "life_inv_medmarijuana": {(localize "STR_Item_Medmarijuana")};  
	case "life_inv_apple": {(localize "STR_Item_Apple")};  
	case "life_inv_cherry": {(localize "STR_Item_Cherry")};  
	case "life_inv_pear": {(localize "STR_Item_Pear")};  
	case "life_inv_rabbit": {(localize "STR_Item_RabbitMeat")};  
	case "life_inv_salema": {(localize "STR_Item_SalemaMeat")};  
	case "life_inv_ornate": {(localize "STR_Item_OrnateMeat")};  
	case "life_inv_mackerel": {(localize "STR_Item_MackerelMeat")};  
	case "life_inv_tuna": {(localize "STR_Item_TunaMeat")};  
	case "life_inv_mullet": {(localize "STR_Item_MulletMeat")};  
	case "life_inv_catshark": {(localize "STR_Item_CatSharkMeat")};  
	case "life_inv_turtle": {(localize "STR_Item_TurtleMeat")};  
	case "life_inv_fishingpoles": {(localize "STR_Item_FishingPole")};  
	case "life_inv_water": {(localize "STR_Item_WaterBottle")};  
	case "life_inv_coffee": {(localize "STR_Item_Coffee")};  
	case "life_inv_turtlesoup": {(localize "STR_Item_TurtleSoup")};  
	case "life_inv_donuts": {(localize "STR_Item_Donuts")};  
	case "life_inv_fuelE": {(localize "STR_Item_FuelE")};  
	case "life_inv_fuelF": {(localize "STR_Item_FuelF")};  
	case "life_inv_pickaxe": {(localize "STR_Item_Pickaxe")};  
	case "life_inv_copperore": {(localize "STR_Item_CopperOre")};  
	case "life_inv_ironore": {(localize "STR_Item_IronOre")};  
	case "life_inv_ironr": {(localize "STR_Item_IronIngot")};  
	case "life_inv_copperr": {(localize "STR_Item_CopperIngot")};  
	case "life_inv_sand": {(localize "STR_Item_Sand")};  
	case "life_inv_salt": {(localize "STR_Item_Salt")};  
	case "life_inv_saltr": {(localize "STR_Item_SaltR")};  
	case "life_inv_glass": {(localize "STR_Item_Glass")};  
	case "life_inv_diamond": {(localize "STR_Item_DiamondU")};  
	case "life_inv_diamondr": {(localize "STR_Item_DiamondC")};  
	case "life_inv_tbacon": {(localize "STR_Item_TBacon")};  
	case "life_inv_redgull": {(localize "STR_Item_RedGull")};  
	case "life_inv_lockpick": {(localize "STR_Item_Lockpick")};  
	case "life_inv_peach": {(localize "STR_Item_Peach")};  
	case "life_inv_coke": {(localize "STR_Item_CocaineU")};  
	case "life_inv_barriere": {"Barrière"};  
	case "life_inv_cokep": {(localize "STR_Item_CocaineP")};  
	case "life_inv_ephedra": {(localize "STR_Item_EphedraU")};  
	case "life_inv_ephedrap": {(localize "STR_Item_EphedraP")};  
	case "life_inv_spikeStrip": {(localize "STR_Item_SpikeStrip")};  
	case "life_inv_rock": {(localize "STR_Item_Rock")};  
	case "life_inv_cement": {(localize "STR_Item_CementBag")};  
	case "life_inv_goldbar": {(localize "STR_Item_GoldBar")};  
	case "life_inv_blastingcharge": {(localize "STR_Item_BCharge")};  
	case "life_inv_boltcutter": {(localize "STR_Item_BCutter")};  
	case "life_inv_defusekit": {(localize "STR_Item_DefuseKit")};  
	case "life_inv_storagesmall": {(localize "STR_Item_StorageBS")};  
	case "life_inv_storagebig": {(localize "STR_Item_StorageBL")};  
	case "life_inv_battery": {(localize "STR_Item_Battery")};  

	//License Block  
	case "license_civ_driver": {(localize "STR_License_Driver")};  
	case "license_civ_air": {(localize "STR_License_Pilot")};  
	case "license_civ_heroin": {(localize "STR_License_Heroin")};  
	case "license_civ_oil": {(localize "STR_License_Oil")};  
	case "license_civ_dive": {(localize "STR_License_Diving")};  
	case "license_civ_boat": {(localize "STR_License_Boat")};  
	case "license_civ_gun": {(localize "STR_License_Firearm")};  
	case "license_cop_air": {(localize "STR_License_Pilot")};  
	case "license_cop_swat": {(localize "STR_License_Swat")};  
	case "license_cop_cg": {(localize "STR_License_CG")};  
	case "license_civ_rebel": {(localize "STR_License_Rebel")};  
	case "license_civ_truck": {(localize "STR_License_Truck")};  
	case "license_civ_diamond": {(localize "STR_License_Diamond")};  
	case "license_civ_copper": {(localize "STR_License_Copper")};  
	case "license_civ_iron": {(localize "STR_License_Iron")};  
	case "license_civ_sand": {(localize "STR_License_Sand")};  
	case "license_civ_salt": {(localize "STR_License_Salt")};  
	case "license_civ_coke": {(localize "STR_License_Cocaine")};  
	case "license_civ_ephedra": {(localize "STR_License_Ephedra")};  
	case "license_civ_marijuana": {(localize "STR_License_Marijuana")};  
	case "license_civ_medmarijuana": {(localize "STR_License_Medmarijuana")};  
	case "license_civ_cement": {(localize "STR_License_Cement")};  
	case "license_med_air": {(localize "STR_License_Pilot")};  
	case "license_civ_home": {(localize "STR_License_Home")};  
	case "license_civ_ci": {"Carte d'identité"};  
	case "license_civ_fci": {"Faux papiers"};  
};  


#8

Problème résolu !

Pour le garage c’est juste un soucis de database. Il suffit de changer ça

CREATE DEFINER=`arma3`@`localhost` PROCEDURE `resetLifeVehicles`()  

Par ça

CREATE DEFINER=`root`@`localhost` PROCEDURE `resetLifeVehicles`()  

Et pour le problème de coffre, j’ai fait un oublie dans la fichier deviceMine.sqf.

J’avais ça

_itemIndex = [_item,_items] call fnc_index; ```

À la place de ça

_itemIndex = [_item,_items] call TON_fnc_index;


#9

Smocky Ah ok merci du partage