JoSchaap / GoT_Wasteland_V2.Stratis

WARNING! This repo is no longer updated, find the updated version on the A3Wasteland git! -
http://www.a3wasteland.com
11 stars 20 forks source link

Gunstore *lag* purchase glitch #50

Closed s3kShUn61 closed 11 years ago

s3kShUn61 commented 11 years ago

Currently in gunstores if a player adds say 5 mags to their cart, then spams purchase (assuming they have enough money for the 5 mags), it will give them 5xHowever many times they pressed purchase mags while only charging them for the initial 5. This grows exponentially with lag in the server. I was thinking of fixing it by subtracting the cost of the mags from the player's money immediately upon placement however addToCart.sqf would need to be modified so that the individual items price can be deducted immediately upon placing it in the player's inventory. The only other solution which I do not know how to do would be to disable the purchase button immediately after the first press for about a sec or so for the lag to catch up.

JoSchaap commented 11 years ago

or just add a check to the button to re-check the money the player has :+1:

thanks for reporting this

s3kShUn61 commented 11 years ago

Didnt know you could do that lol. Still learning all the arma coding stuff

JoSchaap commented 11 years ago

Please keep issues open so i dont forget to implement them ;)

JoSchaap commented 11 years ago

fixed in v2.3