tag mismatch [Error]
#1

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..
Reply
#2

Facilitanos las cosas dandonos la linea (34), no hay mucho tiempo de ir viendo codigo por codigo.
Reply
#3

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

Reply
#4

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
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)