02.01.2017, 16:44
Uh, I made my own text draw and then I added it on my script, it is a speedo, when I enter a vehicle I get a bugged orange textdraw and I don't understand why.
http://imgur.com/a/psuCC
Please guys.. I really don't know whats wrong
Код:
speedo0[playerid] = CreatePlayerTextDraw(playerid, 522.401550, 103.833152, "000"); PlayerTextDrawLetterSize(playerid, speedo0[playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, speedo0[playerid], 2); PlayerTextDrawColor(playerid, speedo0[playerid], 8388863); PlayerTextDrawSetShadow(playerid, speedo0[playerid], 0); PlayerTextDrawSetOutline(playerid, speedo0[playerid], 1); PlayerTextDrawBackgroundColor(playerid, speedo0[playerid], 51); PlayerTextDrawFont(playerid, speedo0[playerid], 1); PlayerTextDrawSetProportional(playerid, speedo0[playerid], 1); speedo1[playerid] = CreatePlayerTextDraw(playerid, 567.848083, 103.833358, "000"); PlayerTextDrawLetterSize(playerid, speedo1[playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, speedo1[playerid], 1); PlayerTextDrawColor(playerid, speedo1[playerid], 8388863); PlayerTextDrawSetShadow(playerid, speedo1[playerid], 0); PlayerTextDrawSetOutline(playerid, speedo1[playerid], 1); PlayerTextDrawBackgroundColor(playerid, speedo1[playerid], 51); PlayerTextDrawFont(playerid, speedo1[playerid], 1); PlayerTextDrawSetProportional(playerid, speedo1[playerid], 1); speedo2[playerid] = CreatePlayerTextDraw(playerid, 502.723663, 119.583343, "KM/H"); PlayerTextDrawLetterSize(playerid, speedo2[playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, speedo2[playerid], 1); PlayerTextDrawColor(playerid, speedo2[playerid], 339869951); PlayerTextDrawSetShadow(playerid, speedo2[playerid], 0); PlayerTextDrawSetOutline(playerid, speedo2[playerid], 1); PlayerTextDrawBackgroundColor(playerid, speedo2[playerid], 51); PlayerTextDrawFont(playerid, speedo2[playerid], 1); PlayerTextDrawSetProportional(playerid, speedo2[playerid], 1); speedo3[playerid] = CreatePlayerTextDraw(playerid, 565.973999, 120.166656, "FUEL"); PlayerTextDrawLetterSize(playerid, speedo3[playerid], 0.449999, 1.600000); PlayerTextDrawAlignment(playerid, speedo3[playerid], 1); PlayerTextDrawColor(playerid, speedo3[playerid], 440533247); PlayerTextDrawSetShadow(playerid, speedo3[playerid], 0); PlayerTextDrawSetOutline(playerid, speedo3[playerid], 1); PlayerTextDrawBackgroundColor(playerid, speedo3[playerid], 51); PlayerTextDrawFont(playerid, speedo3[playerid], 1); PlayerTextDrawSetProportional(playerid, speedo3[playerid], 1);
Код:
if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER) { TextDrawShowForPlayer(playerid, speedo0[playerid]); TextDrawShowForPlayer(playerid, speedo1[playerid]); TextDrawShowForPlayer(playerid, speedo2[playerid]); TextDrawShowForPlayer(playerid, speedo3[playerid]); /*for(new i=0; i < 4; i++) { TextDrawShowForPlayer(playerid, speedo[i]); return 1; }*/ } else if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER) { TextDrawHideForPlayer(playerid, speedo0[playerid]); TextDrawHideForPlayer(playerid, speedo1[playerid]); TextDrawHideForPlayer(playerid, speedo2[playerid]); TextDrawHideForPlayer(playerid, speedo3[playerid]); /*for(new i=0; i < 4; i++) { TextDrawHideForPlayer(playerid, speedo[i]); return 1; }*/ }
Please guys.. I really don't know whats wrong