View Full Version : A problem in health

Chris White
20/01/2012, 01:12 AM
When an admin types /aduty, his health becomes 1000000, which means that he can't die, and his armor too. but when he relogs, he finds his health and armor set to 15. Why? and I checked the user files after I log out, and found that it's set to 15. BTW, that also happened to me once in my interior id, and it was set to 15. I've spend a week trying to figure it out, and have seen my FS for something, but didn't find any code suspicious that contains 15.
I use a GF edit as GM, yom_buttons as FS, and streamer as plugin.

Chris White
20/01/2012, 01:19 AM
So? no one knows how to fix it?

20/01/2012, 01:55 AM
boy you got your work cutt out for you hehe...

20/01/2012, 02:01 AM
Have you made it so when he actually relogs the /aduty command actiave itselfs?
If you want to set his health back to 100000, use the saving system such as dini, y_ini, and others to save his health into a file, then load it when the player connect again.

20/01/2012, 02:50 AM
you should show the saving and loading script

Chris White
20/01/2012, 03:08 PM
anyway thankx, kinda fixed

Chris White
20/01/2012, 04:02 PM
No, I mean 1 million health and armor points. I also tried to debug it using printf to print the health of admin after logging in. I've put it after the SetHealth and found that the value is null, why? anyway I fixed it by setting it again in another part of the code