[AJUDA] Erro
#1

To com um erro que nгo consigo resolver, preciso de ajuda de alguйm por favor

Esse й o erro
Код:
: error 035: argument type mismatch (argument 2)
Linha do erro

Код:
TextDrawShowForPlayer(playerid,gText3);
Comando
Код:
public isPlayerInArea()
   {


    new Float:X, Float:Y, Float:Z;
    for(new playerid=0; playerid < MAX_PLAYERS; playerid++) {
        TextDrawShowForPlayer(playerid,gText3);
        GetPlayerPos(playerid, X, Y, Z);
        if (X <= 2539 && X >= 2442 && Y <= -1628 && Y >= -1720) {
        }
    }
}
Код:
SetTimer("isPlayerInArea", 1000, 1);
         gText3[playerid] = TextDrawCreate(500.00, 100.00, "BASE GROVE STREET");
	TextDrawFont(gText3[playerid],1);
	TextDrawBackgroundColor(gText3[playerid], 0x000000ff);
	TextDrawSetOutline(gText3[playerid], 1);
	TextDrawColor(gText3[playerid], -1);
	TextDrawLetterSize(gText3[playerid],0.499999,1.200000);
	TextDrawAlignment(gText3[playerid], 1);
	TextDrawShowForPlayer (playerid, gText3[playerid]);
	return 1;
}
Ajuda Por Favor
Reply
#2

Код:
  gText3[playerid]
??
Reply
#3

troque

TextDrawShowForPlayer(playerid,gText3);

por

TextDrawShowForPlayer(playerid,gText3[playerid]);
Reply
#4

cara deu compilo sу que eu queria que ela aparecesse quando eu chegasse naquelas coordenadas sу que a textdraw jб aparece em qualquer lugar que eu to sabe como faзo para arrumar isso para ela aparecer sу nas coordenadas que eu quero. Vlw
Reply
#5

Use:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 7.0, x, y, z))
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Reply
#6

pawn Код:
forward isPlayerInArea(playerid);
public isPlayerInArea(playerid)
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    if (X <= 2539 && X >= 2442 && Y <= -1628 && Y >= -1720)
    {
        TextDrawShowForPlayer(playerid,gText3[playerid]);
    }
    else
    {
        TextDrawHideForPlayer(playerid,gText3[playerid]);
    }
    return true;
}
Reply
#7

Cara continua a mesma coisa, acho que й porque eu botei as textdraw no onplayerspawn sу que se eu colocar no OnGameModeInit da 8 erros desses
Код:
error 017: undefined symbol "playerid"
o que faзo entгo ?
Reply
#8

Й sу vocк colocar dentro desse loop

pawn Код:
for(new playerid; playerid < GetMaxPlayers(); playerid++)
{
     //TextDraw
}
Reply
#9

Fiz isso e deu 26 erros e agora ?? e uns erro que nгo tem nada a ver aff
Reply
#10

Manda o cуdigo que vocк colocou no OnGameModeInit.

Os 26 erros devem ser por chaves nгo fechadas
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)