Thanks for the reply! It seems to work like a charm!
But alas! things never seem to go smoothly. I am now having problems with one of my shops. Or more precisely my vehicle shop.
I have this in my init.sqf:
[
["Prices.sqf"],
"£",
{ 1000 }, // Always $50 in pocket.
{ 10000 }, // Americans have more money in the bank.
0.33333 // You keep 1/3 of cash when you respawn.
] execVM "SPON\Money\initMoney.sqf";
//---------------------Guns
_stock1 =
[
// Weapons.
["RPG7V", "G36K","G36A","G36C", "Makarov", "PK", "SVD", "AKS74U", "AK74", "MP5A5", "M16A2", "M16A4", "M16A4_ACG", "M4SPR", "M4", "M4A1", "M24", "M240", "M249", "M9","PipeBomb", "SmokeShell", "Flare","Binocular", "NVGoggles"],
["PG7V","PG7VR", "30Rnd_556x45_G36", "10Rnd_762x54_SVD", "100Rnd_762x54_PK" ,"8Rnd_9x18_Makarov" ,"30Rnd_545x39_AK" ,"30Rnd_556x45_Stanag" ,"20Rnd_556x45_Stanag" ,"5Rnd_762x51_M24" ,"100Rnd_762x51_M240" ,"200Rnd_556x45_M249" ,"15Rnd_9x19_M9" ,"30Rnd_9x19_MP5"]
];
[Gunstore, 0.5, 1.0, _stock1] execVM "SPON\Money\setShop.sqf";
//-------------------vehicles
_stock2 =
[
["UH60MG", "MH6","HMMWV50", "HMMWV","Skoda","Skodablue","skodaRed","Skodagreen","datsun1_civil_1_open","datsun1_civil_2_covered","datsun1_civil_3_open","car_hatchback","car_sedan","LandroverMG","UralCivil2","UralRepair","UralRefuel","UAZMG","BRDM2","M1030","TT650G","TT650C","Truck5tMG"]
];
[equipmentstore, 0.5, 1.0, _stock2] execVM "SPON\Money\setShop.sqf";
//--------------------bank
[banker1] execVM "SPON\Money\setBank.sqf";And when i try to access the 'Equipmentstore' and error is thrown up somthing along the lines of 'Error Zero devisor' and shopdiologui.sqf line 436.
Im sure its most likely some mistyping on my part or something iv missed out. Iv checked my price SQF over and every thing seems to be in order there so im guessing its my init.sqf