SA-MP Forums Archive
[Ajuda] Tag Mistach - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Tag Mistach (/showthread.php?tid=439090)



Tag Mistach - Geo1996 - 23.05.2013

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


Re: Tag Mistach - Caio_Freeze - 23.05.2013

@edit

Don ja achou o erro


Re: Tag Mistach - Don_Speed - 23.05.2013

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