12.10.2009, 18:29
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:
I hope you can help me.
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);