Raised This Month: $ Target: $400
 0% 

set specific price for each player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Siveroo
Junior Member
Join Date: Apr 2020
Old 10-24-2020 , 10:17   Re: set specific price for each player
Reply With Quote #6

Quote:
Originally Posted by CrazY. View Post
You could just multiply the default price by the percent of discount instead of doing this
Code:
cod_itemPrice[id][item] = cod_defaultPrice[item] *3 / 4
You will have something like this
Code:
// 1.0 is 100 percent
new price = floatround(cod_itemPrice[id][item] * 0.25) // 75% off
So if you want, say 25% off, multiply the defaultPrice by 0.75
If you want 70% off, multiply by 0.3
etc.
well, that works aswell, but that's not a big problem tho, i also mastered basic mathematics
Siveroo is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode