SA-MP Forums Archive
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: Problem. (/showthread.php?tid=363046)



Problem. - arman'as - 26.07.2012

Hey, I have one problem with OnPlayerClickPlayerTextDraw press on box but nothing.
Quote:

TurgausTDColor[playerid][0] = CreatePlayerTextDraw(playerid,183.000000, 348.000000, "|");
PlayerTextDrawAlignment(playerid,TurgausTDColor[playerid][0], 2);
PlayerTextDrawBackgroundColor(playerid,TurgausTDCo lor[playerid][0], 255);
PlayerTextDrawFont(playerid,TurgausTDColor[playerid][0], 1);
PlayerTextDrawLetterSize(playerid,TurgausTDColor[playerid][0], -0.040000, 1.69999;
PlayerTextDrawColor(playerid,TurgausTDColor[playerid][0], 16711935);
PlayerTextDrawSetOutline(playerid,TurgausTDColor[playerid][0], 0);
PlayerTextDrawSetProportional(playerid,TurgausTDCo lor[playerid][0], 1);
PlayerTextDrawSetShadow(playerid,TurgausTDColor[playerid][0], 0);
PlayerTextDrawUseBox(playerid,TurgausTDColor[playerid][0], 1);
PlayerTextDrawBoxColor(playerid,TurgausTDColor[playerid][0], 16711935);
PlayerTextDrawTextSize(playerid,TurgausTDColor[playerid][0], 2.000000, 12.000000);
PlayerTextDrawShow(playerid, TurgausTDColor[playerid][0]);
PlayerTextDrawSetSelectable(playerid, TurgausTDColor[playerid][0], 1);

OnPlayerClickPlayerTextDraw

Quote:

if(playertextid == TurgausTDColor[playerid][0])
{
ChangeVehicleColorEx(TurgausMasina[playerid],1,1);
PlayerPlaySound(playerid, 2208, 0.0, 0.0, 10.0);
}

Color dont change.

Sorry for bad English knowledge