06.07.2018, 10:32
THIS IS NOT MY FIRST TIME OF IMPORTING TEXTDRAWS, I ALREDY HAVE ALOT OF PTD IN MY GM SO I'M NOT NOOB (I mean, its not some classic issue, like you haven't put it under PlayerConnect or something like that)...
So, i'm making speedo td and i created just one, for test, and guess... it won't show when player state is PLAYER_STATE_DRIVER...
Here is the code of showing td:
Here is where i create TD:
So, i'm making speedo td and i created just one, for test, and guess... it won't show when player state is PLAYER_STATE_DRIVER...
Here is the code of showing td:
Код:
if(newstate == PLAYER_STATE_DRIVER) { PlayerTextDrawShow(playerid, Brzinomer[playerid][0]);
Код:
stock KreirajPTD(playerid) { //..> Brzinomer Brzinomer[playerid][0] = CreatePlayerTextDraw(playerid, 639.000976, 379.699401, "220km/h"); PlayerTextDrawLetterSize(playerid, Brzinomer[playerid][0], 0.200000, 1.200000); PlayerTextDrawAlignment(playerid, Brzinomer[playerid][0], 3); PlayerTextDrawColor(playerid, Brzinomer[playerid][0], 0xFFFFFFFF); PlayerTextDrawSetShadow(playerid, Brzinomer[playerid][0], 0); PlayerTextDrawBackgroundColor(playerid, Brzinomer[playerid][0], 255); PlayerTextDrawFont(playerid, Brzinomer[playerid][0], 2); PlayerTextDrawSetProportional(playerid, Brzinomer[playerid][0], 1); //..> Reg ...