SA-MP Forums Archive
Textdraw problem - 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 problem (/showthread.php?tid=494917)



Textdraw problem - Nourdin - 15.02.2014

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.


Re: Textdraw problem - Sawalha - 15.02.2014

is it in ongamemodeinit? and you forgot to use PlayerTextDrawShowForPlayer


Re: Textdraw problem - Nourdin - 15.02.2014

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


Re: Textdraw problem - Clad - 15.02.2014

Are you sure you putted it in OnGameModeInit ?


Re: Textdraw problem - Nourdin - 15.02.2014

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


Re: Textdraw problem - Dignity - 15.02.2014

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


Re: Textdraw problem - Clad - 15.02.2014

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


Re: Textdraw problem - Nourdin - 15.02.2014

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


Re: Textdraw problem - redneckvideogamer - 15.02.2014

Where are you using the 'PlayerTextDrawShowForPlayer' exactly?


Re: Textdraw problem - Duck4coder - 15.02.2014

Код:
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]);