09.10.2010, 21:11
ive got this in onplayerupdate:
and this in onfsinit
Whats wrong?
it wont work.
Код:
format(str, sizeof(str), "X:%.4f Y:%.4f Z:%.4f", Px,Py,Pz); TextDrawSetString(postxd[playerid], str); TextDrawHideForPlayer(playerid,postxd[playerid]); TextDrawShowForPlayer(playerid,postxd[playerid]);
Код:
for(new i=0;i<MAX_PLAYERS;i++) { postxd[i] = TextDrawCreate(10.0, 415.0,"no position defined"); TextDrawUseBox(postxd[i], 1); TextDrawBoxColor(postxd[i],0x222222FF); TextDrawLetterSize(postxd[i],0.3,1.0); TextDrawTextSize(postxd[i],230.0,40.0); TextDrawFont(postxd[i], 2); TextDrawSetShadow(postxd[i],0); TextDrawSetOutline(postxd[i],1); TextDrawBackgroundColor(postxd[i],0x000000FF); TextDrawColor(postxd[i],0xFFFFFFFF); }
it wont work.