txd help
#1

ive got this in onplayerupdate:
Код:
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]);
and this in onfsinit
Код:
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);
	}
Whats wrong?
it wont work.
Reply
#2

postxd[i] = TextDrawCreate(10.0, 415.0,"_");

not

postxd[i] = TextDrawCreate(10.0, 415.0,"no position defined");
Reply
#3

omg thats only for creating it. directly after creating it will be updated.

but i already found out waht caused the not updating. it was the if. but i cant fix that either....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)