Little Help
Hm.. How can i do in shop
if player dont have money for buy the item this write in chat "You Need More "XXX$" To Buy This." ?? some can give me the code i try do PHP Code:
Sorry for bad English .. Thanks for Helpers .. |
Re: Little Help
Well yea.. cs_get_user_money gets the current amount of money and the you want the amount of money that you need.So the amount that you dont have and you need is :
the money for the item minus the money that you have. |
Re: Little Help
can you make one code for me
i want to see how do this ... :D |
Re: Little Help
Quote:
|
Re: Little Help
Since its in Scripting Help I dont have to show you code and you know how to script.
|
Re: Little Help
omg, people, don't be hard..
here you go. PHP Code:
PHP Code:
|
Re: Little Help
Quote:
PHP Code:
|
Re: Little Help
I know, but it's harder to understand for a begginer.
|
Re: Little Help
Hardly, plus its better to teach using proper methods.
|
Re: Little Help
Quote:
All he needs is this: CostToBuy - UserMoney (This is how much more money is needed to buy the item, which is what he asked for). |
| All times are GMT -4. The time now is 21:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.