mho_mod [status: beta testing]
2 Attachment(s)
man... im ready to just smash my damn computer and be done with this crap cause its drivin up a wall.. i've spent more than a week tryin to figure out this damn menu problem.. every freakin time i think i got it, it messes up again.. if anyone actually cares to help me out with this, i'll give u more than the credit u deserve..
my problem: When users select a race, it does NOT set the race.. most of the other stuff seems to work just fine, but users can not select races, well they can, but it reads as Nothing when ever they do select a race.. I think if anyone helps me fix this, im going to leave it alone for awhile.. I'd like someone to help optimize it as well, cause once the menu works properly again, im going to add a type of shop menu, then hopefully submit it as a new plugin.. but it needs some good ole T.L.C. but apperently im not lovin it right :cry: the zip file contains the alien model used int he plugin, i think most scripters should have the rest.. the console will display crap loads of debug info which should help u determine where the problem is.. CONSOLE: --MHO MOD-- KEY 3 SELECTED - Machine for: Al AuthId: STEAM_0:0:8861339 --MHO MOD-- [SAVED Choosen] Race for: Al AuthId: STEAM_0:0:8861339 as 4 --MHO MOD-- Loaded XP for: Machine --MHO MOD-- [SHOWING HUD] for: Al ---- [Nothing] Level: 0 XP: 0 im assuming the problem is within the loadxp function, but ive tried making so many changes i cant even start to think about it anymore, its driving me nuts!!!!!!!!!!!! __________________________ UPDATED SOURCE - 2-23-07 |
Re: mho_mod needs help
u got everything right?
|
Re: mho_mod needs help
1 Attachment(s)
I changed a few things with the plugin.
Test this: |
Re: mho_mod needs help
i got the majority of the problems fixed, however i am no good with menus man.. i dont know what it is, i jus mess up every menu i touch.. i had thought it was the race menu itself that was causing the problems with not registering their race/and causing some fault in the loading of the users xp.. after re-doing my loadxp function, i found that was my problem..
i had a bunch of if statements asking what the lastchosen race was, then attemtping to load the xp of the last race, if there was no previous xp, the race woul dbe reset to 0, with 0 lvl and xp. this cleared that up: Code:
that cleared a number of lines off, and helped organize things a little more cleanly, but that still doesnt help with the ghetto shop-menu.. throught out today. ill be creating a new menu for the shop.. i did learn how to charge users money and all that, so i think it should be fairly easy.. but then again, menus dislike me.. [shrugs] hopefully by friday i'll have a copy ready for review so everyone can flame me for trying to release a plugin heh thanks for the reply guys |
Re: mho_mod needs help
A tip is to use switch statements.
ex: Code:
|
Re: mho_mod needs help
do u know if they would not approve a plugin for something like that? i havent really read into it yet, before i do im trying to get everything working, the specials are coming along pretty well.. i've added a set_task delaying the use of the special for a set time period and such, im actually having a productive day :)
id like to stray from the switch statements since ive used if statements for over 15 years now, starting with vb, php and such, its just my style heh but maybe i'll give it a try with these menus since i've having so much trouble with them. //------- edited: Oh yea!! Does anyone know where i can find info on displaying an image on the users HUD, like for example the images used for WAR3 when ur special is ready? id like to do that with mine as well. |
Re: mho_mod needs help [HUD DIsplay]
If you want approval I would recommend using switch statements and pcvars.
|
Re: mho_mod needs help [HUD DIsplay]
ok ill be checking into that soon, thanks
|
Re: mho_mod needs help [Money Issue]
Code:
does anyone see why options 1-6 work, and 7 and 8 do not? i honestly dont get it, the first few will charge the user money, but the last two will not, im baffled. |
Re: mho_mod needs help [Money Issue]
For the first thing you shouldn't do PlayersMoney as an array. Do this instead:
Code:
Code:
Code:
Hope that helped you. |
| All times are GMT -4. The time now is 00:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.