[AJUDA] Erro -
thaw_ps - 19.03.2012
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
Re: [AJUDA] Erro -
mau.tito - 19.03.2012
??
Re: [AJUDA] Erro -
zbt - 19.03.2012
troque
TextDrawShowForPlayer(playerid,gText3);
por
TextDrawShowForPlayer(playerid,gText3[playerid]);
Re: [AJUDA] Erro -
thaw_ps - 19.03.2012
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
Re: [AJUDA] Erro -
BreakDriFT - 19.03.2012
Use:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 7.0, x, y, z))
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Re: [AJUDA] Erro -
zbt - 19.03.2012
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;
}
Re: [AJUDA] Erro -
thaw_ps - 19.03.2012
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

?
Re: [AJUDA] Erro -
ViniBorn - 19.03.2012
Й sу vocк colocar dentro desse loop
pawn Код:
for(new playerid; playerid < GetMaxPlayers(); playerid++)
{
//TextDraw
}
Re: [AJUDA] Erro -
thaw_ps - 19.03.2012
Fiz isso e deu 26 erros e agora ?? e uns erro que nгo tem nada a ver aff
Re: [AJUDA] Erro -
ViniBorn - 19.03.2012
Manda o cуdigo que vocк colocou no OnGameModeInit.
Os 26 erros devem ser por chaves nгo fechadas