Why doesn't
Hello
I'm trying to learn some small now and I have made a little stupid plugin just to learn but I can't get it to work :oops: Here is the code, please can anyone say what I have done wrong and dont just say bla bla, please show me with code so I know the next time. Code:
|
Quote:
Third, you spelled "register" "regester" Fourth, you did not give the cvars default values. Five your using fun, whats up with that? Heres mine: Code:
Or, my FM alternative: Code:
Try spelling the damn natives right next time, k? |
LoL, man thanks, I don't understand how stupid I can be some times :oops:
But one thing I don't understand is why did you add register_cvar("mp_god", "0") and why did you add "0" after amx_god as well? What does this do? Code:
I thought i would need to use fun bc set_user_godmode is ni the fun.inc Sorry that I'm noob. |
Quote:
You must give a cvar a default value, thus the 0. those defines make FM defines of FUN stock, set_user_god and get_user_god. I hate FUN, so I made a list of stocks to replace its functions. |
ok thanx man, I have made a new plugin with almost the same code. Do you think I scripted this bad or good and if bad what should i do better?
Code:
The meaning of this code is to get the player when he joins to get tha mopunt of hp you have set with amx_health |
Twilight u were really stupid for using FM. The kid is a newb and now u got him even more confused. Next time keep ur preferences and likes to yourself :wink:
|
1 Attachment(s)
What, is it my fault for thinking fun module is a waste of perfectly good CPU and memory?
Look at the attached file. I converted every function from fun but give_item (which I can do, just lazy) and hitzones, to FM. I could do it to engine just as easily. Why do we still have fun module then, when we could replace it with a stock file, and move the rest of its functions to core or to engine? Its archaic. |
Maybe your right - but FakeMeta isn't really a tool for newbies to play with.
I agree that its using CPU w/o any reason if theres only one set_user_godmode or set_user_health native - but its made as its made. I think it shouldn't be replaced so easily, and if some1 wants to save CPU time, go ahead. P.S. THNX for the stocks ! ;) |
Quote:
|
Yeah. Ok. But that's not really my fault.
|
| All times are GMT -4. The time now is 14:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.