6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood),
1,268
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Player.x?
#210201
06/08/08 22:25
06/08/08 22:25
|
Joined: Jan 2007
Posts: 59
Creepinbox
OP
Junior Member
|
OP
Junior Member
Joined: Jan 2007
Posts: 59
|
PANEL* player_xyz=
{
pos_x = 100;
pos_y = 100;
layer = 2;
digits(0,0,"%f",*,1,player.x);
flags = OVERLAY,VISIBLE;
}
Why is it displaying "0" ? is it so that panels or texts cant display vectors and defines? cause Player.HEALTH doesent work eider ... what do i do ?!
|
|
|
Re: Player.x?
[Re: Creepinbox]
#210207
06/08/08 23:22
06/08/08 23:22
|
Joined: Nov 2007
Posts: 1,143 United Kingdom
DJBMASTER
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,143
United Kingdom
|
I just tested your code and everything is running fine. I move the player about and the digits change as expected.
I don't think this part of your script is causing you the problem. Make sure the player is set up properly and that the player pointer is initialized properly.
Panels should be able to display vectors, variables and defines. I've never had a case where i couldn't display one of them.
Apart from that i can't think why you are getting a constant 0.
Last edited by DJBMASTER; 06/08/08 23:23.
|
|
|
Re: Player.x?
[Re: Creepinbox]
#210211
06/08/08 23:46
06/08/08 23:46
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
make sure the "player" is not null.
you sure you are using "player = me;" in your supposed_to_be_player_action ??
3333333333
|
|
|
Re: Player.x?
[Re: Creepinbox]
#210284
06/09/08 16:27
06/09/08 16:27
|
Joined: Aug 2005
Posts: 343 Germany
HPW
Senior Member
|
Senior Member
Joined: Aug 2005
Posts: 343
Germany
|
%f don't show anything, just use %1.0f as the thierd parameter.
Evil Blood (v. 0.52) RPG Commport.de (Social Network Community)
|
|
|
|