Jump to content
Sign in to follow this  
MacRae

Problem with Buying Boat - Stratis life

Recommended Posts

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...

giY5ytb.png

Please help I'm really confused!

~MacRae~

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×