Textdraw problem
#1

Hello there,

Can anyone explain why this textdraw doesn't appear ingame? I have tried almost everything but it still doesn't work.

pawn Код:
Textdraw2[playerid] = CreatePlayerTextDraw(playerid, 541.666748, 377.481414, pInfo[playerid][points]);
    PlayerTextDrawLetterSize(playerid, Textdraw2[playerid], 0.449999, 1.600000);
    PlayerTextDrawAlignment(playerid, Textdraw2[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw2[playerid], 16711935);
    PlayerTextDrawSetShadow(playerid, Textdraw2[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw2[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, Textdraw2[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw2[playerid], 1);
    PlayerTextDrawSetProportional(playerid, Textdraw2[playerid], 1);
Thanks.
Reply
#2

is it in ongamemodeinit? and you forgot to use PlayerTextDrawShowForPlayer
Reply
#3

Yea I already have PlayerTextDrawShowForPlayer, and it's in OnPlayerConnect because OnGameModeInit doesn't have playerid.
Reply
#4

Are you sure you putted it in OnGameModeInit ?
Reply
#5

I have it in `OnPlayerConnect` because ґOnGameModeInitґ doesnґt have playerid.
Reply
#6

Quote:
Originally Posted by Clad
Посмотреть сообщение
Are you sure you putted it in OnGameModeInit ?
Player textdraws don't go on OnGameModeInit.
Reply
#7

Quote:
Originally Posted by Mionee
Посмотреть сообщение
Player textdraws don't go on OnGameModeInit.
I personally use them in OnGameModeInit & it goes fine
Reply
#8

I still need help with this, I didnґt managed to fix this..
Reply
#9

Where are you using the 'PlayerTextDrawShowForPlayer' exactly?
Reply
#10

Код:
Textdraw2[playerid] = CreatePlayerTextDraw(playerid, 541.666748, 377.481414, pInfo[playerid][points]);
    PlayerTextDrawLetterSize(playerid, Textdraw2[playerid], 0.449999, 1.600000);
    PlayerTextDrawAlignment(playerid, Textdraw2[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw2[playerid], 16711935);
    PlayerTextDrawSetShadow(playerid, Textdraw2[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw2[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, Textdraw2[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw2[playerid], 1);
    PlayerTextDrawSetProportional(playerid, Textdraw2[playerid], 1);
    PlayerTextDrawShowForPlayer(playerid, TextDraw2[playerid]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)