Textdraws only shows damage when player stands still
#3

pawn Код:
if(issuerid == INVALID_PLAYER_ID)
    {
    TextDrawBackgroundColor(Textdraw11[playerid], 255);
    TextDrawFont(Textdraw11[playerid], 1);
    TextDrawLetterSize(Textdraw11[playerid], 0.350000, 1.300000);
    TextDrawColor(Textdraw11[playerid], -16776961);
    TextDrawSetOutline(Textdraw11[playerid], 1);
    TextDrawSetProportional(Textdraw11[playerid], 1);
    format(cstring, sizeof(cstring), "Collision -(%.0f)",amount);
    TextDrawSetString(Textdraw11[playerid], cstring);
    TextDrawShowForPlayer(playerid, Textdraw11[playerid]);
    }
WTF IS THAT !!!

try like this :

pawn Код:
if(issuerid != INVALID_PLAYER_ID)
    {
    TextDrawBackgroundColor(Textdraw11[playerid], 255);
    TextDrawFont(Textdraw11[playerid], 1);
    TextDrawLetterSize(Textdraw11[playerid], 0.350000, 1.300000);
    TextDrawColor(Textdraw11[playerid], -16776961);
    TextDrawSetOutline(Textdraw11[playerid], 1);
    TextDrawSetProportional(Textdraw11[playerid], 1);
    format(cstring, sizeof(cstring), "Collision -(%.0f)",amount);
    TextDrawSetString(Textdraw11[playerid], cstring);
    TextDrawShowForPlayer(playerid, Textdraw11[playerid]);
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)