TextDraw Not showing ?
#1

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 ??
Reply
#2

Anyone ? Plz ?
Reply
#3

OnPlayerConnect, Add this.

Код:
TextDrawShowForPlayer(playerid, Stats);
Reply
#4

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
Reply
#5

Try changing the name of the Textdraw? Like "PStats" Just so it doesn't conflict with anything else.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)