tag mismatch [Error] - 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: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: tag mismatch [Error] (
/showthread.php?tid=552179)
tag mismatch [Error] -
Zodiaco - 23.12.2014
Hola amigos del sa-mp me podrian ayudar y ver cual fue mi error al hacer esta funcion..
Me sale estos errores
pawn Код:
C:\Users\User\Desktop\Server \filterscripts\enPausa.pwn(31) : warning 213: tag mismatch
C:\Users\User\Desktop\Server \filterscripts\enPausa.pwn(32) : warning 213: tag mismatch
C:\Users\User\Desktop\Server \filterscripts\enPausa.pwn(34) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Edito: Agrego imagen
mi funciуn:
pawn Код:
#include <a_samp>
#include <foreach>
new
PlayerText3D:pTextLabel[MAX_PLAYERS],
tiempoPausa[MAX_PLAYERS],
enPausa[MAX_PLAYERS],
cadena[50];
public OnGameModeInit()
{
SetTimer("timer_1m", 60000, true);
return 1;
}
public OnPlayerUpdate(playerid)
{
enPausa[playerid] = 0;
return 1;
}
forward timer_1m();
public timer_1m()
{
foreach(Player, i)
{
if (enPausa[i] == 1)
{
tiempoPausa[i]++;
format(cadena, sizeof(cadena), "[%i minutos]", tiempoPausa[i]);
pTextLabel[i] = Create3DTextLabel(cadena, 0xFFFF00FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(pTextLabel[i], i, 0.0, 0.0, 0.5);
} else {
Delete3DTextLabel(pTextLabel[i]);
tiempoPausa[i] = 0;
enPausa[i] = 1;
}
}
return 1;
}
gracias..
Respuesta: tag mismatch [Error] -
jotajeda - 23.12.2014
Facilitanos las cosas dandonos la linea (34), no hay mucho tiempo de ir viendo codigo por codigo.
Respuesta: tag mismatch [Error] -
Zodiaco - 23.12.2014
Quote:
Originally Posted by jotajeda
Facilitanos las cosas dandonos la linea (34), no hay mucho tiempo de ir viendo codigo por codigo.
|
Ups!! perdon aqui esta..
Respuesta: tag mismatch [Error] -
jotajeda - 23.12.2014
pawn Код:
new
PlayerText3D:pTextLabel,
tiempoPausa[MAX_PLAYERS],
enPausa[MAX_PLAYERS],
cadena[50];
forward timer_1m();
public timer_1m()
{
foreach(i, Player)
{
if (enPausa[i] == 1)
{
tiempoPausa[i]++;
new Float: Pos[3];
GetPlayerPos(i,Pos[0],Pos[1],Pos[2]);
format(cadena, sizeof(cadena), "[%i minutos]", tiempoPausa[i]);
pTextLabel = CreatePlayer3DTextLabel(i,cadena, 0xFFFF00FF, Pos[0], Pos[1], Pos[2], 40.0);
}
else
{
DeletePlayer3DTextLabel ( i, pTextLabel ) ;
tiempoPausa[i] = 0;
enPausa[i] = 1;
}
}
return 1;
}
https://sampwiki.blast.hk/wiki/DeletePlayer3DTextLabel
Respuesta: tag mismatch [Error] -
Zodiaco - 23.12.2014
Quote:
Originally Posted by jotajeda
pawn Код:
new PlayerText3D:pTextLabel, tiempoPausa[MAX_PLAYERS], enPausa[MAX_PLAYERS], cadena[50];
forward timer_1m(); public timer_1m() { foreach(i, Player) { if (enPausa[i] == 1) { tiempoPausa[i]++; new Float: Pos[3]; GetPlayerPos(i,Pos[0],Pos[1],Pos[2]); format(cadena, sizeof(cadena), "[%i minutos]", tiempoPausa[i]); pTextLabel = CreatePlayer3DTextLabel(i,cadena, 0xFFFF00FF, Pos[0], Pos[1], Pos[2], 40.0); } else { DeletePlayer3DTextLabel ( i, pTextLabel ) ; tiempoPausa[i] = 0; enPausa[i] = 1; } } return 1; }
https://sampwiki.blast.hk/wiki/DeletePlayer3DTextLabel
|
muchнsimas gracias men lo probare.