[SOLVED]
[SOLVED] Thanks to xPaw :P
|
Re: help with setting users health
Quote:
|
Re: help with setting users health
Theres no need to post more code, all other codes works fine, and its pretty much code
|
Re: help with setting users health
Quote:
|
Re: help with setting users health
[SOLVED]
|
Re: help with setting users health
In my opinion your code looks horrible and you made many mistakes and I'm not talking about indentation or about if it works fine or not, but the whole idea.
Why do you divide players into ts and cts? You could get the same effect by displaying only 2 items in menu (increase health when in ct, increase health when in t). You should store costs and health bonuses in some global arrays so you can use them to check everything in 2 lines of code instead of making very long switch with 10 cases. In other words: your menu handler could be like 10 times shorter and much easier to read. When you are coding xp/points mod you should do it step by step and make sure it all works fine after each step. Before you code saving and loading from database, you should check if health adding works by doing this: PHP Code:
Recently I started to code RPG mod and this is how my handler for buy upgrades menu with multiple pages looks like: PHP Code:
|
Re: help with setting users health
@Sylwester: Am i done with this plugin yet? No.
First i make it, then i make it better. EDIT: I make all first to see if it works, then i make it better... |
Re: [SOLVED]
The problem was what he was registering pre spawn forward, and in that moment player wasnt alive, so putting it as post forward solved problem.
|
Re: [SOLVED]
zacky, why did you remove your problem in the first post, it's really stupid. Back your changes, please.
|
Re: [SOLVED]
Quote:
|
| All times are GMT -4. The time now is 23:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.