Open slayterson opened 9 years ago
Edit your config.sqf
Only Seems to happen when you buy stuff @Windmolders
Can you give me full scenario?
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.
ah ok, that are the money pay fucntions.
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 .
Single currency btw?
Single currency btw?
Yes
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.
You might be using the headshots variables instead of the 2.0 variables for the remove money functions.
Z_MoneyVariable = "cashMoney";
My characters money is located in the cashMoney column in the database. Z_MoneyVariable is set to "cashMoney". I have just double checked that.
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.
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.
Yes I can help you, my teamspeak is ts3-au.com:10159. Ill be on there for the next 9 hours.
Some how after update from 1. it doesn't take money when users buy something.