SA-MP Forums Archive
[Ajuda] Text Draw em um raio de... І - 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] Text Draw em um raio de... І (/showthread.php?tid=433295)



Text Draw em um raio de... І - Ley - 26.04.2013

Boa Tarde.

Estou tentando gerar um cуdigo, na qual um player que estiver dentro de uma gangzone x, irб poder visualizar uma textdraw.

Cуdigo

PHP код:
forward textcarga(playerid);
public 
textcarga()
{
   for(new 
i=0i<MAX_PLAYERSi++)
   {
       if(
IsPlayerInPlace(i,268.59371409.626310.474289.8262)) {
       
GangZoneFlashForAll(gangzone0xFFFFFFAA);
       
TextDrawHideForPlayer(itextdraw); }
       if(
IsPlayerInPlace(i2176.9348, -2304.465313.5469166.0616)) {
       
GangZoneFlashForAll(gangzone0xFFFFFFAA);
       
TextDrawHideForPlayer(itextdraw); }
   }
   return 
1;
}
stock IsPlayerInPlace(playerid,Float:XMin,Float:YMin,Float:XMax,Float:YMax )
{
   new 
RetValue 0;
   new 
Float:X,Float:Y,Float:Z;
   
GetPlayerPos(playerid,X,Y,);
   if( 
>= XMin && >= YMin && XMax && YMax )
   {
      
RetValue 1;
   }
   return 
RetValue;

Este й o cуdigo, porйm, quando eu vou atй as coordenadas, em cima da gangzone, a textdraw nгo й apresentada '-'. E a text funciona normalmente, testei em um comando, e ela funcionou.
Aguardo respostas!


Re: Text Draw em um raio de... І - mau.tito - 26.04.2013

Nгo vi tudo o codigo mais so isto ja e estranho
pawn Код:
forward textcarga(playerid);
public textcarga()



Re: Text Draw em um raio de... І - Ley - 26.04.2013

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
Nгo vi tudo o codigo mais so isto ja e estranho
pawn Код:
forward textcarga(playerid);
public textcarga()
Isso й somente o nome da public, nada de mais... '-'


Re: Text Draw em um raio de... І - Ley - 26.04.2013

Desculpe o doble post, mas alguйm poderia me ajudar?


Re: Text Draw em um raio de... І - Gleisson_. - 26.04.2013

PHP код:
public OnPlayerEnterCheckpoint playerid ) {
    
TextDrawShowForPlayer(playeridTextdrawName);
    
//Outras funзхes...
    
return 1;




Re: Text Draw em um raio de... І - Don_Speed - 26.04.2013

Quote:
Originally Posted by Ley
Посмотреть сообщение
Isso й somente o nome da public, nada de mais... '-'
Faltou o playerid.