buy meny
How can i change i menu if someone buy something?
Exemple if my menu look like this Knife Skin [NOT BOUGHT] And when someone buy it. I want it to look like this Knife Skin [BOUGHT] How can i do that? and im using nvault... so i want to save. so if someone buy a knife and it changes map i want it to stay as [BOUGHT] |
Re: buy meny
With a boolean or booleans but depends how many items you add for each boolean. ;D
Example: PHP Code:
|
Re: buy meny
Quote:
yeah i got like 5 items but im going to add more but how can i save booleans on nvault? if not how should i do then? Code:
stock save_item( index ) |
Re: buy meny
|
Re: buy meny
oh sorry i mean like this
Becuse i save my Knife models like this Code:
SaveKnife(id)and they Saves in vault.ini like this (this is knife model 1) Code:
; Don't modify!Code:
; Don't modify!Code:
; Don't modify! |
Re: buy meny
It's because your saving over the same key. You should save all of your skin indexes under the one vault key, it would be more efficient. Also, your going from vault to nvault over different posts ... pick one.
|
Re: buy meny
Quote:
example: PHP Code:
|
Re: buy meny
Quote:
|
Re: buy meny
Quote:
|
Re: buy meny
Quote:
Code:
Your new data functions look like this: Code:
And now you need to go and rebuild your menu create code accordingly to the new skins array. |
| All times are GMT -4. The time now is 21:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.