Bienvenue sur ce tutoriel qui vous permettra de payer vos factures de  Billing System en cash ou par virement bancaire 
Ce tutoriel fait suite à la demande d'aide de
 
		ArmaEliteRP.

Ce tutoriel fait suite à la demande d'aide de
C'est parti !
Dans votre @The_Programmer/addons/billing_system/client/fn_lbChangedFacture.sqf, remplacez cette ligne :
		Code:
	
	
	_payBtn buttonSetAction "[] call max_facture_fnc_payFacture;";
	
		Code:
	
	
	_payBtn buttonSetAction "[] spawn max_facture_fnc_payFacture;";
	Et dans votre @The_Programmer/addons/billing_system/client/fn_payFacture.sqf, supprimez cette ligne :
		Code:
	
	
	if (life_atmbank < _price) exitWith {hint (["STR_NOT_ENOUGHT_MONEY","Max_Settings_Facture","Facture_Localization"] call theprogrammer_core_fnc_localize);};
	Et dans le même fichier, remplacez ces lignes :
		Code:
	
	
	life_atmbank = life_atmbank - _price;
[1] call SOCK_fnc_updatePartial;
	
		Code:
	
	
	_bank = [
    "Par quel moyen souhaitez-vous payer cette facture ?",
    "Moyen de paiement",
    "Virement",
    "Cash"
] call BIS_fnc_guiMessage;
_exit = false;
if (_bank) then {
    if (life_atmbank < _price) exitWith {_exit = true; hint (["STR_NOT_ENOUGHT_MONEY","Max_Settings_Facture","Facture_Localization"] call theprogrammer_core_fnc_localize);};
    life_atmbank = life_atmbank - _price;
    [1] call SOCK_fnc_updatePartial;
} else {
    if (life_cash < _price) exitWith {_exit = true; hint (["STR_NOT_ENOUGHT_MONEY","Max_Settings_Facture","Facture_Localization"] call theprogrammer_core_fnc_localize);};
    life_cash = life_cash - _price;
    [0] call SOCK_fnc_updatePartial;
};
if (_exit) exitWith {};
	Et voilà !
Cordialement,
Forum Manager - Mathis
			
				Dernière édition par un modérateur: 
			
		
	
										
										
											
	
										
									
								
	