[Ajuda] Tag Mistach
#1

pawn Код:
new PlayerText:OpcaoSkin;

public OnPlayerConnect(playerid) {
    OpcaoSkin = CreatePlayerTextDraw(playerid,40.000000, 230.000000, "Skin");
    PlayerTextDrawBackgroundColor(playerid,OpcaoSkin, 255);
    PlayerTextDrawFont(playerid,OpcaoSkin, 1);
    PlayerTextDrawLetterSize(playerid,OpcaoSkin, 0.500000, 1.000000);
    PlayerTextDrawColor(playerid,OpcaoSkin, -1);
    PlayerTextDrawSetOutline(playerid,OpcaoSkin, 1);
    PlayerTextDrawSetProportional(playerid,OpcaoSkin, 1);
    PlayerTextDrawUseBox(playerid,OpcaoSkin, 1);
    PlayerTextDrawBoxColor(playerid,OpcaoSkin, 572662472);
    PlayerTextDrawTextSize(playerid,OpcaoSkin, 75.000000, 0.000000);
    PlayerTextDrawSetSelectable(playerid,OpcaoSkin, 1);
    return 1;
}

public OnPlayerClickTextDraw(playerid, Text:clickedid) {
    if(clickedid == OpcaoSkin)
    {
         SendClientMessage(playerid, 0xFFFFFFAA, "Vocк clicou na opзгo Skin.");
         CancelSelectTextDraw(playerid);
         return true;
    }
    return 1;
}
O erro ta na public OnPlayerClickTxtDraw, na linha

pawn Код:
if(clickedid == OpcaoSkin)
sqn eu nao sei pq ta dando isso
Reply
#2

@edit

Don ja achou o erro
Reply
#3

Na reaalidade o erro esta aque
pawn Код:
new PlayerText:OpcaoSkin;
Nгo e PlayerText e sim Text. Apenas Text
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)