[Ajuda] Text Draw em um raio de... І
#1

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=0; i<MAX_PLAYERS; i++)
   {
       if(
IsPlayerInPlace(i,268.5937, 1409.6263, 10.4742, 89.8262)) {
       
GangZoneFlashForAll(gangzone, 0xFFFFFFAA);
       
TextDrawHideForPlayer(i, textdraw); }
       if(
IsPlayerInPlace(i, 2176.9348, -2304.4653, 13.5469, 166.0616)) {
       
GangZoneFlashForAll(gangzone, 0xFFFFFFAA);
       
TextDrawHideForPlayer(i, textdraw); }
   }
   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,Z );
   if( 
X >= XMin && Y >= YMin && X < XMax && Y < 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!
Reply
#2

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

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... '-'
Reply
#4

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

PHP код:
public OnPlayerEnterCheckpoint ( playerid ) {
    
TextDrawShowForPlayer(playerid, TextdrawName);
    
//Outras funзхes...
    
return 1;
} 
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)