[Help] Spectate Problem with TextDrawSetString
#1

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);
Reply
#2

DId you get any error on pawno?
Reply
#3

Nope, Everything is clean ....
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)