McclaudEagle Posted August 21, 2012 Author Share Posted August 21, 2012 Did you make the formlist (L4DNVWeaponList)? If so then grab powerup (the newer one that works with 1.4) and it will let you know what line the error is on. I never thought of the Powerup, thanks :) Link to comment Share on other sites More sharing options...
McclaudEagle Posted August 21, 2012 Author Share Posted August 21, 2012 The error is: "Script 'L4DNVActivateAssaultRifleSCRIPT', line 13: Item 'iAmmoCount' not found for parameter Object ID. Compiled script not saved." Second error: "Script 'L4DNVActivateAssaultRifleSCRIPT', line 13: Syntax Error. Missing expression in set command." Any ideas what needs to be done? Link to comment Share on other sites More sharing options...
Ladez Posted August 21, 2012 Share Posted August 21, 2012 (edited) This line: Set iAmmoToGive to 350 - Player.GetItemCount iAmmoCountAn oversight of mine. Change iAmmoCount to L4DNVAmmoRifle. iAmmoCount is a variable of type integer, and the function needs a base object. Edited August 21, 2012 by Ladez Link to comment Share on other sites More sharing options...
McclaudEagle Posted August 21, 2012 Author Share Posted August 21, 2012 This line: Set iAmmoToGive to 350 - Player.GetItemCount iAmmoCountAn oversight of mine. Change iAmmoCount to L4DNVAmmoRifle. iAmmoCount is a variable of type integer, and the function needs a base object. That script works beautifully now, thanks. Works just how I want it to. :D Do you think you'd be willing to help me with more scripts if possible? Thanks, McclaudEagle Link to comment Share on other sites More sharing options...
Ladez Posted August 21, 2012 Share Posted August 21, 2012 Sure, I'll do what I can. ;) Link to comment Share on other sites More sharing options...
Recommended Posts