18.05.2012, 11:01
Hi, I have some problem with SelectTextDraw(playerid,color);
I have created txtdraw :
In OnPlayerconnect :
and in keystatechange :
But when I press CTRL+ NUM1 and set cursor on textdraw, textdraw is still white
I have created txtdraw :
Код:
userpanel = TextDrawCreate(0,428,"User panel"); TextDrawLetterSize(userpanel,1.000000,2.000000); TextDrawAlignment(userpanel,0); TextDrawBackgroundColor(userpanel,0x000000FF); TextDrawFont(userpanel,0); TextDrawUseBox(userpanel,1); TextDrawBoxColor(userpanel,0x000000FF); TextDrawTextSize(userpanel,700.000000,438.000000); TextDrawSetOutline(userpanel,0); TextDrawSetProportional(userpanel,1); TextDrawSetShadow(userpanel,1);
Код:
PlayerTextDrawSetSelectable(playerid,PlayerText:userpanel[playerid],1); TextDrawShowForPlayer(playerid,userpanel[playerid]);
Код:
if((newkeys & (KEY_FIRE | KEY_LOOK_BEHIND)) == (KEY_FIRE | KEY_LOOK_BEHIND)){ SelectTextDraw(playerid,0xFF4040AA); }