23.12.2014, 03:23
Hola amigos del sa-mp me podrian ayudar y ver cual fue mi error al hacer esta funcion..
Me sale estos errores
Edito: Agrego imagen

mi funciуn:
gracias..
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

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..