A problem in health
#1

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.
Reply
#2

So? no one knows how to fix it?
Reply
#3

boy you got your work cutt out for you hehe...
Reply
#4

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.
Reply
#5

you should show the saving and loading script
Reply
#6

anyway thankx, kinda fixed
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)