TextdrawSetString Help!
#1

hello i have problem with textdrawsetstring .
this is textdraw script

BSText1 = TextDrawCreate(464.000000, 340.000000, " ");
TextDrawBackgroundColor(BSText1, 255);
TextDrawFont(BSText1, 0);
TextDrawLetterSize(BSText1, 0.500000, 1.000000);
TextDrawColor(BSText1, -1);
TextDrawSetOutline(BSText1, 0);
TextDrawSetProportional(BSText1, 1);
TextDrawSetShadow(BSText1, 1);
TextDrawSetSelectable(BSText1, 0);
That textdraw is for Name Box Define .

and i try to add

forward InfosPlayer(playerid);
public InfosPlayer(playerid)
{
new string[128];
new Pname[64];
GetPlayerName(playerid,Pname,sizeof(Pname));
format(string, sizeof (string), "%s", Pname);
TextDrawSetString(BSText1, string);
}


and textdrawshowforplayer already added . and try to compile . no error...
and i try to check INGame textdraw is showed but no name / word showed .

how to fix thiss pls help .
thx
Reply
#2

Help plss ....
Reply
#3

https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer

You have to show it first.
Reply
#4

Are you calling InfosPlayer(playerid); in ONPLAYERCONNECT?

Also, new Pname[64]; could be new Pname[24] (MAX_PLAYER_NAME) and string[128] -> string[24];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)