[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=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!
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(playeridTextdrawName);
    
//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: 4 Guest(s)