Show The Gravity
#1

Hey guys,
I've got a problem. I'm using a random gravity, changing after a certain time (I'm using a timer therefor).
The gravity change, then a message should be sended. e.g. "New Gravity: 0.002" -> "New Gravity: X.XXX"
My code always shows 0.00000000.
Here's my code:
pawn Код:
new RandomGravity=random(sizeof(GravityValues));
SetGravity(GravityValues[RandomGravity][0]);
new stringG[255];
format(stringG,sizeof(stringG),"Neue Gravitation: %f",RandomGravity);
SendClientMessageToAll(WHITE,stringG);
I hope you can help me.
Reply


Messages In This Thread
Show The Gravity - by Marc_307 - 12.10.2009, 18:29
Re: Show The Gravity - by Pawno_Master - 12.10.2009, 18:52
Re: Show The Gravity - by Correlli - 12.10.2009, 19:24
Re: Show The Gravity - by Marc_307 - 12.10.2009, 19:35
Re: Show The Gravity - by MenaceX^ - 12.10.2009, 19:39
Re: Show The Gravity - by Marc_307 - 12.10.2009, 19:51
Re: Show The Gravity - by Marc_307 - 12.10.2009, 20:07

Forum Jump:


Users browsing this thread: 1 Guest(s)