Zockerocker93 13 Posted April 13, 2018 Hi, I have a script that will addmagazineCargoGlobal to some ammocrate. But I try with simple magzine types (eg. 30Rnd_65x39_caseless_mag) and for some reason suddenly I get error message when playing that sais Bad Vehicle type "30Rnd_65x39_caseless_mag". I don't know what causes this and I can't see how I have a typo and it happens for many other magazines too. I have recently installed tanks DLC and it did not happen before. The same code works perfectly when I put it in init line of the ammo box. anyone have the same problem 1 Share this post Link to post Share on other sites
HazJ 1289 Posted April 13, 2018 Try verifying game, etc... If that doesn't do it. Show code so I/others can help you better... 2 Share this post Link to post Share on other sites
GEORGE FLOROS GR 4207 Posted April 14, 2018 9 hours ago, Zockerocker93 said: I have a script that will addmagazineCargoGlobal Hello there Zockerocker93 ! For sure, it's either in your list somewhere a wrong name of magazine , or you might have copy a list , that is including some none existing content in your game , due mods. You should check your list again. 1 Share this post Link to post Share on other sites
Zockerocker93 13 Posted April 14, 2018 I found the cause of the error: I am an idiot... I passed 4 arrays in the params to my function weapons, items, magzines, backpacks. But the function that calls it passed them in weapons, items, backpacks, magazines order. Thus Magazines and Backpacks where mixed up and both are not compatible to the respective other addCargo function. Sorry that I wasted your time - thanks you :) 1 1 Share this post Link to post Share on other sites