Weird Vehicle Health Bug
#4

Quote:
Originally Posted by YoYo123
Посмотреть сообщение
Happened to me when tried making /sethealth for an admin system. Just don't declare the Health variable as a Float. Hope this works
Quote:
Originally Posted by Herald_Groove
Посмотреть сообщение
Take away the Float variable.
It should be float.
Quote:
Originally Posted by YoYo123
Посмотреть сообщение
P.S. If that doesn't work replace %d in the formatted string with %f.
This is the correct answer, however it'll show 1000.00000, so change it to the following for 1000/1000 (an example).
pawn Код:
format(string, sizeof(string), "~r~Health~w~: %.0f/1000", Health);
Reply


Messages In This Thread
Weird Vehicle Health Bug - by WinterAce - 17.12.2012, 07:22
Re: Weird Vehicle Health Bug - by YoYo123 - 17.12.2012, 10:49
Re: Weird Vehicle Health Bug - by Herald_Groove - 17.12.2012, 11:07
Re: Weird Vehicle Health Bug - by Konstantinos - 17.12.2012, 11:15

Forum Jump:


Users browsing this thread: 1 Guest(s)