Jump to content
Fopeak

[Tutorial] 5.0 Dynamic Market

Recommended Posts

You will need to edit the scripts. This market system has had that bug for a while.

Edited by Fawks

Share this post


Link to post
Share on other sites
15 minutes ago, Fawks said:

You will need to edit the scripts. This market system has had that bug for a while.

Do I start looking at marketSell and MarketBuy right?

Share this post


Link to post
Share on other sites

@Fawks thanks for the response.

Retried getting this error sadly

which init do you place step 7 in as i have tried the init in core, init server, init player server. All produce this error.

image.thumb.png.3decbe1b868d933768fa89ea5e029b2b.png

Share this post


Link to post
Share on other sites
2 hours ago, john123 said:

@Fawks thanks for the response.

Retried getting this error sadly

which init do you place step 7 in as i have tried the init in core, init server, init player server. All produce this error.

InitServer.sqf should be fine as it's meant to run only on the server. At the bottom should work. It sounds like you have a hidden character or are missing an ";" in whatever you paste in. Pastebin the file once you have made the changes and get that error.

Edited by imthatguyhere

Share this post


Link to post
Share on other sites
5 minutes ago, john123 said:

hmmm, that seemed to get rid of the error. But I'm now having my original issue. Here a  Paste bin of the init anyway

 

I think that's set when it loads your configuration on the server (publicVariable). Pastebin your server rpt.

Share this post


Link to post
Share on other sites

Found the issue. I'm not running it as a dedi. I'm doing the lan hosting testing method haha. Thanks for the help guys appreciate it!

Edited by john123

Share this post


Link to post
Share on other sites
Just now, john123 said:

Found the issue. I'm not running it as a dedi. I'm doing the lan hosting testing method haha. Thanks for the help guys appreciate it!

Makes sense, definitely good info to share next time you are having a problem 😁

  • Haha 1

Share this post


Link to post
Share on other sites

Little question all work ok for me but i wan to know 

 

what is this number define 

 

["brownies", 900, 0, 1680, 3, 1, 
		[ 
			["glass",1] 
		] 
	],

the 3, 1, 

and if i understand the second item its the item who make down the price or make up ?

 

sorry for my bad english 

Share this post


Link to post
Share on other sites
20 hours ago, BarneyR. v2 said:

the 3, 1, 

and if i understand the second item its the item who make down the price or make up ?

 

sorry for my bad english 

Those are  the modifiers for buying and selling I believe.

Share this post


Link to post
Share on other sites

Hi i have an issue it display nothing ingame just a bunch of x Nothing in Server Log but in Client Log :

Spoiler

Error in expression <[1500, _index, _x select 0];

} forEach life_market_resources;
}

else
{
_shortn>
 0:34:44   Error position: <life_market_resources;
}

else
{
_shortn>
 0:34:44   Error Undefined variable in expression: life_market_resources
 0:34:44 File core\market\fn_refreshMarketView.sqf [life_fnc_refreshMarketView..., line 91
 0:34:44 Error in expression <[1500, _index, _x select 0];

} forEach life_market_resources;
}

else
{
_shortn>
 0:34:44   Error position: <life_market_resources;
}

Picture of error

 

fn_refreshMarketView.sqf

20190808011334_1.jpg

Edited by LordWinterfell

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...