SA-MP Forums Archive
[Help] Spectate Problem with TextDrawSetString - 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)
+--- Thread: [Help] Spectate Problem with TextDrawSetString (/showthread.php?tid=405080)



[Help] Spectate Problem with TextDrawSetString - David (Sabljak) - 05.01.2013

Hello

i put TextDrawSetString

in my /spectate command but its not showing..

Код:
format(string,sizeof(string),"~g~Name: ~w~%s    ~g~Money: ~w~%d ",tName,GetPlayerMoney(id));
	TextDrawSetString(Spec1[playerid],string);
	TextDrawShowForPlayer(playerid,Spec1[playerid]);
From /spec cmd

And onplayerconnect

Код:
Spec1[playerid] = TextDrawCreate(340.000000, 340.000000, "");
	TextDrawBackgroundColor(Spec1[playerid], 255);
	TextDrawFont(Spec1[playerid], 3);
	TextDrawLetterSize(Spec1[playerid], 0.360000, 1.299998);
	TextDrawColor(Spec1[playerid], -1);
	TextDrawSetOutline(Spec1[playerid], 0);
	TextDrawSetProportional(Spec1[playerid], 1);
	TextDrawSetShadow(Spec1[playerid], 1);



Re: [Help] Spectate Problem with TextDrawSetString - Steve Habbz - 05.01.2013

DId you get any error on pawno?


Re: [Help] Spectate Problem with TextDrawSetString - David (Sabljak) - 05.01.2013

Nope, Everything is clean ....


Re: [Help] Spectate Problem with TextDrawSetString - Vince - 05.01.2013

Are you destroying the textdraws on disconnect as well? Otherwise you'll just get overlapping textdraws that won't go away.


Re: [Help] Spectate Problem with TextDrawSetString - David (Sabljak) - 05.01.2013

Nah, nvm, im using GameTextForPlayer string, its better -.- thanks