SA-MP Forums Archive
[Off] Drawn's Clicaveis - 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: [Off] Drawn's Clicaveis (/showthread.php?tid=538308)



Drawn's Clicaveis - Cidiei - 20.09.2014

Cуdigo:
pawn Код:
new Text:Textdraw0;

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid){
    if(playertextid == Textdraw0){
         SendClientMessage(playerid, 0xFFFFFFAA, "LOL VOCК CLICOU NA TEXTDRAW \"welcomeText\".");
         CancelSelectTextDraw(playerid);
    }
    return 1;
}
Erro:

pawn Код:
C:\Users\Edilson\Downloads\SA-MP Dayz\gamemodes\GM.pwn(175) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
Obs: Й textdrawn global.


Re: Drawn's Clicaveis - RebeloX - 20.09.2014

Claro, tбs a criar uma textdraw global e a usar numa funзгo que sу utiliza textdraws para jogadores..


Re: Drawn's Clicaveis - PT - 20.09.2014

lendo isto vc obtem a sua resposta:

https://sampwiki.blast.hk/wiki/OnPlayerClickPlayerTextDraw


Re: Drawn's Clicaveis - CyNiC - 20.09.2014

Se й global, o correto seria usar OnPlayerClickTextDraw.


Re: Drawn's Clicaveis - Cidiei - 21.09.2014

Quote:
Originally Posted by CyNiC
Посмотреть сообщение
Se й global, o correto seria usar OnPlayerClickTextDraw.
Obrigdao CyNiC. Sdds brazucas :3