MacRae 12 Posted July 3, 2013 Hey Guys, I am trying to get my Boat shop to work on my version of Stratis Life. This is the code im using: if(side player == civilian) then { _carspawn = _civboatspawn; if((lbCurSel 11124) == 0) then { displayname = "Boat"; thisprice = 3000; vehname = "C_Rubberboat"; if((player getVariable "mymoney") >= thisprice) then { closeDialog 0; player setVariable ['mymoney', getmymoney - thisprice]; hint format['You bought a %1 for %2$! You have %3 $ left!',displayname,thisprice,(player getVariable 'mymoney')]; _veh = vehname createVehicle (_carspawn); vehiclelock = _veh addAction ['Unlock / Lock','vehiclelock\unlocklock.sqf',[],7,true,true,'','(_target distance _this) < 10']; _veh setVehicleInit _vehinit; processInitCommands; } else { Hint format ["you have %1$ and need %2$",(player getVariable 'mymoney'),(thisprice)]; }; }; }; }else { hint "You need a boating license to purchase a boat"; }; But when i launch the game in a server i get this error... Please help I'm really confused! ~MacRae~ Share this post Link to post Share on other sites
eagledude4 3 Posted July 3, 2013 Can't use setvehicleinit anymore. Share this post Link to post Share on other sites
MacRae 12 Posted July 3, 2013 how do i fix it then? ---------- Post added at 13:50 ---------- Previous post was at 13:34 ---------- Please help! Share this post Link to post Share on other sites