TextdrawSetString Help! -
bobys16 - 17.05.2016
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
Re: TextdrawSetString Help! -
bobys16 - 17.05.2016
Help plss

....
Re: TextdrawSetString Help! -
Aliassassin123456 - 17.05.2016
https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer
You have to show it first.
Re: TextdrawSetString Help! -
Nin9r - 17.05.2016
Are you calling InfosPlayer(playerid); in ONPLAYERCONNECT?
Also, new Pname[64]; could be new Pname[24] (MAX_PLAYER_NAME) and string[128] -> string[24];