DevZupa / AdvancedTrading

Arma 2 Epoch: Advanced Trading
http://epochmod.com/forum/index.php?/topic/20219-alpha-release-advanced-trading-10/
4 stars 12 forks source link

free stuff #10

Open slayterson opened 9 years ago

slayterson commented 9 years ago

Some how after update from 1. it doesn't take money when users buy something.

Windmolders commented 9 years ago

Edit your config.sqf

Gr8z commented 9 years ago

Only Seems to happen when you buy stuff @Windmolders

Windmolders commented 9 years ago

Can you give me full scenario?

Gr8z commented 9 years ago

I don't fully know how to recreate it, But some people reported that if you have the exact amount of coins to buy something, it fails to take the payment. Some say after using the Epoch Trader Menu and then Buying something with Adv Trading.

Windmolders commented 9 years ago

ah ok, that are the money pay fucntions.

slayterson commented 9 years ago

The money is not being taken no matter how much you have, I didn't have it up very long to test a lot myself. this is what my other admins and g/f told me. And something about selling too. I'll try it again later. I don't have a test server, only our live server. and with new regulars it hardly has any down time.

On Sun, Jul 26, 2015 at 8:39 AM, Zupa notifications@github.com wrote:

ah ok, that are the money pay fucntions.

— Reply to this email directly or view it on GitHub https://github.com/DevZupa/AdvancedTrading/issues/10#issuecomment-125009410 .

Windmolders commented 9 years ago

Single currency btw?

Gr8z commented 9 years ago

Single currency btw?

Yes

EthanHay commented 8 years ago

I hate to bring this back up again but I'm running into this issue for the server i'm currently coding. Single currency is true and money variable is set to CashMoney. The error only occurs when you have enough money to buy the items, which it then allows you to do. No money is taken or given when buying or selling as long as you have enough to buy in the first place. I'm kinda stumped, i thought it may be that i'm running one of Souls custom Hiveext.dll's.

Windmolders commented 8 years ago

You might be using the headshots variables instead of the 2.0 variables for the remove money functions.

Windmolders commented 8 years ago

Z_MoneyVariable = "cashMoney";

EthanHay commented 8 years ago

My characters money is located in the cashMoney column in the database. Z_MoneyVariable is set to "cashMoney". I have just double checked that.

EthanHay commented 8 years ago

Okay to resolve this I had to add two lines into the init.sqf for the SC_fnc_removeCoins and SC_fnc_addCoins functions as these were the calls that were missing to give and remove coins to the player. SC_fnc_removeCoins = compile preprocessFileLineNumbers (Z_AT_FolderLocation + "\functions\SC_fnc_removeCoins.sqf"); SC_fnc_addCoins = compile preprocessFileLineNumbers (Z_AT_FolderLocation + "\functions\SC_fnc_addCoins.sqf"); putting these two lines inside the if(isNil "Z_AdvancedTradingInit")then{ bracket.

EthanHay commented 8 years ago

Yes, just don't forget the removeCoins line.

SC_fnc_removeCoins = compile preprocessFileLineNumbers (Z_AT_FolderLocation + "\functions\SC_fnc_removeCoins.sqf");

Alternatively you can put both lines in your compiles.sqf as I found the service point script relies on these functions to work as well.

EthanHay commented 8 years ago

Yes I can help you, my teamspeak is ts3-au.com:10159. Ill be on there for the next 9 hours.