TextDraw Not showing ? - 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: TextDraw Not showing ? (
/showthread.php?tid=534190)
TextDraw Not showing ? -
rockhopper - 28.08.2014
My text draw isn't showing it was working first Now Suddenly it doesnt here is the code
pawn Код:
/*----------------------------------Textdraws----------------------------------------------------------*/
Stats = TextDrawCreate(19.5, 209, "PlayerInfo");
TextDrawFont(Stats, 4);
TextDrawLetterSize(Stats, 0.5, 0.7);
TextDrawColor(Stats, COLOR_GHOSTWHITE);
TextDrawSetOutline(Stats, 0);
TextDrawSetProportional(Stats, true);
TextDrawSetShadow(Stats, 0);
TextDrawUseBox(Stats, true);
TextDrawBoxColor(Stats, 0xFFFFFF88);
TextDrawTextSize(Stats, 250, 250);
/*-----------------------------------------------------------------------------------------------------*/
//And The Command Where I am using it
CMD:stats(playerid , params[])
{
new str[500],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(str,sizeof(str),"Player Stats ~n~ ~n~ Name:- %s ~n~ Score:- %d ~n~ Kills:- %d ~n~ Deaths:- %d ",name,GetPlayerScore(playerid),PlayerInfo[playerid][pKills],PlayerInfo[playerid][pDeaths]);
TextDrawSetString(Stats, str);
TextDrawShowForPlayer(playerid, Stats);
What's The problem ??
Re: TextDraw Not showing ? -
rockhopper - 29.08.2014
Anyone ? Plz ?
Re: TextDraw Not showing ? -
Th3UnKnOwN - 29.08.2014
OnPlayerConnect, Add this.
Код:
TextDrawShowForPlayer(playerid, Stats);
Re: TextDraw Not showing ? -
rockhopper - 29.08.2014
Unknown I dont wanna show it when the player connects I wanan show it when he types cmd And it was working but suddenly it doesnt
Re: TextDraw Not showing ? -
Th3UnKnOwN - 29.08.2014
Try changing the name of the Textdraw? Like "PStats" Just so it doesn't conflict with anything else.