SA-MP Forums Archive
txd help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: txd help (/showthread.php?tid=182272)



txd help - legodude - 09.10.2010

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.


Re: txd help - willsuckformoney - 09.10.2010

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

not

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


Re: txd help - legodude - 10.10.2010

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....