21.03.2016, 14:47
(
Последний раз редактировалось Karolukas123; 21.03.2016 в 16:39.
)
Hey, i have some bug or else.. i don't know...
then i press on textdraw nothing happen..
then i press on textdraw nothing happen..
Код:
DVPV[playerid][3] = CreatePlayerTextDraw(playerid, 109.099929, 170.062484, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, DVPV[playerid][3], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, DVPV[playerid][3], 132.000000, 26.562500);
PlayerTextDrawAlignment(playerid, DVPV[playerid][3], 1);
PlayerTextDrawColor(playerid, DVPV[playerid][3], 724249087);
PlayerTextDrawSetShadow(playerid, DVPV[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, DVPV[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, DVPV[playerid][3], 255);
PlayerTextDrawFont(playerid, DVPV[playerid][3], 4);
PlayerTextDrawSetProportional(playerid, DVPV[playerid][3], 0);
PlayerTextDrawSetShadow(playerid, DVPV[playerid][3], 0);
PlayerTextDrawSetSelectable(playerid, DVPV[playerid][3], true);
}
hook OP_ClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(playertextid == DVPV[playerid][3])
{
if(atidarytasDpvp[playerid])
{
for(new s = 13; s < 34; s++) PlayerTextDrawShow(playerid, DVPV[playerid][s]);
}
return 1;
}
YCMD:dpvp(playerid, params[], help)
{
if(!atidarytasDpvp[playerid]){
for(new s = 0; s < 13; s++) PlayerTextDrawShow(playerid, DVPV[playerid][s]);
atidarytasDpvp[playerid] = true;
SelectTextDraw(playerid, 0x59b3e8);}
else if(atidarytasDpvp[playerid]){
for(new s = 0; s < 34; s++) PlayerTextDrawHide(playerid, DVPV[playerid][s]);
atidarytasDpvp[playerid] = false;
CancelSelectTextDraw(playerid);}
return 1;
FIX: line under #include <YSI\y_hooks>:
DEFINE_HOOK_REPLACEMENT(OnPlayer, OP_);


layertextid)