Money Spent
Dudes, I'm trying to pick the money spent from a player.
Thats the code: PHP Code:
Output in the first round: Code:
Player spenting: EFFx, Money spent: 7975 ( AWP+FULL AMMO, DEAGLE+FULL AMMO, VESTHELM AND ALL GRENADESWhat I want know is any other method to return the money spent at the beginning of the round. And ahh, i'm reseting it with Ham_Spawn and it doesn't fix the issue. |
Re: Money Spent
Done -
PHP Code:
|
Re: Money Spent
i didn't understand the propose of this plugin you made. :/
|
Re: Money Spent
Show how much money a player has spent.
|
Re: Money Spent
There is no weapon index 2 and you can accomplish this using a single dimension array by putting in a placeholder. This makes the weapon index the index of the weapon price.
PHP Code:
|
Re: Money Spent
Should be like this:
PHP Code:
PHP Code:
|
Re: Money Spent
No, you should not do '-1'. What I gave you will directly take the CSW_ weapon index.
Example using P228, weapon index 1, which is $600. With what I told you: PHP Code:
PHP Code:
PHP Code:
|
Re: Money Spent
Yea, its showing a debug with index out of bounds. It works only with -1.
|
Re: Money Spent
I'm assuming you're using the full sized array and not just the sample I posted.
If you are, which weapon throws that error? |
Re: Money Spent
I was picking all the weapons's price, not only until the ump45.
Vesthelm 1 and 2. All others weapon's index more than the ump45. |
| All times are GMT -4. The time now is 20:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.