ID:145548
 
Alright I have a couple procs I use to update a players HUD. 1 to create the objects (that's is the only one that works all the time), 1 for HP bars on the HUD, 1 for MP bars on the HUD, and 1 to update text on the HUD. The HP and MP ones update the bars. I place all of them in my Login() coding and works fine when a player creates a character. Then after they load their character the same few procs should be called and executed because I pasted the same thing as in the Login() to the continue part. I get runtimes like type mismatch pointing to if(src.str >= 9999), or pretty much any code that looks at the src's vars. As for the HP/MP bar errors I get Undefined Operation pointing to var/ratio = src.mp/src.mmp, which gets the ratio for where the stat bars should be at. Also, if I put these in a verb I get the same errors. It's like it only wants to work were it wants. I've been working on this for the last couple days and finally got fed up enough to ask for help >.<
Also could you guys explain what the error messages mean? I mean what the heck does Undefined operation mean? Lol Thanks for any help.

PS: If you need me to elaborate on anything or show code just ask.

FFG
I've been having the same problems. I posted a question about it but no one helped...
Your variables *probably* are getting text "100" put in them instead of numbers, 100.
In response to Jon88
What? I believe I checked that.
I found out that src.hp/src.mhp is wrong. I don't know why and I don't know why it works in my CreatChar() proc. Undefined operation is the runtime I get when I execute src.hp/src.mhp out side the CreateChar() proc (even in a verb).