Warning tag mismatch, but what is wrong?
#1

Hi, i have some warnings by my 3D Labels...
I got 3 warnings from a tag mismatch...

This are the piece of codes wheres the warning.

Code:
CMD:dutymodeon(playerid, params[])
{
     if(IsPlayerLuxAdmin(playerid))
    {
    new string[128];
    new pname[24];
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos( playerid, X, Y, Z );
    GetPlayerName(playerid, pname, sizeof(pname));
    playertextid = Create3DTextLabel("Admin On Duty\n-!!- You cant kill this person! -!!-", 0xFF2800FF, 0, 0, 0, 50, 0, 1);
    Attach3DTextLabelToPlayer(playertextid, playerid, 0.0, 0.0, 0.7);
    SetPlayerHealth(playerid, 99999);
    format(string, sizeof(string), "[ADMIN] Admin %s Is now on Duty mode!", pname);
    SendClientMessageToAll(COLOR_RED, string);
    }
    else SendClientMessage(playerid, COLOR_RED, "[ERROR] {00FC15}You need to be admin!");
    return 1;
}
CMD:dutymodeoff(playerid, params[])
{
    if(IsPlayerLuxAdmin(playerid))
    {
    Delete3DTextLabel(playertextid);
    SetPlayerHealth(playerid, 99999);
    }
    else SendClientMessage(playerid, COLOR_RED, "[ERROR] {00FC15}You need to be admin!");
    return 1;
}
Warnings:

C:\Users\***\Desktop\Pawno\pawno\pawno\PENFS.pwn(1 290) : warning 213: tag mismatch
C:\Users\***\Desktop\Pawno\pawno\pawno\PENFS.pwn(1 291) : warning 213: tag mismatch
C:\Users\***\Desktop\Pawno\pawno\pawno\PENFS.pwn(1 303) : warning 213: tag mismatch


The first line of code, with the CMDutymodeon is line 1281...


Thanks!
Penait
Reply
#2

pawn Code:
new Text3D:playertextid[MAX_PLAYERS]; // This is how the symbol should look like.

CMD:dutymodeon(playerid, params[])
{
    if(IsPlayerLuxAdmin(playerid))
    {
        new string[128];
        new pname[24];
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos( playerid, X, Y, Z );
        GetPlayerName(playerid, pname, sizeof(pname));
        playertextid[playerid] = Create3DTextLabel("Admin On Duty\n-!!- You cant kill this person! -!!-", 0xFF2800FF, 0, 0, 0, 50, 0, 1);
        Attach3DTextLabelToPlayer(playertextid[playerid], playerid, 0.0, 0.0, 0.7);
        SetPlayerHealth(playerid, 99999);
        format(string, sizeof(string), "[ADMIN] Admin %s Is now on Duty mode!", pname);
        SendClientMessageToAll(COLOR_RED, string);
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "[ERROR] {00FC15}You need to be admin!");
    }
    return 1;
}
CMD:dutymodeoff(playerid, params[])
{
    if(IsPlayerLuxAdmin(playerid))
    {
        Delete3DTextLabel(playertextid[playerid]);
        SetPlayerHealth(playerid, 99999);
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "[ERROR] {00FC15}You need to be admin!");
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by Cameltoe
View Post
pawn Code:
new Text3D:playertextid[MAX_PLAYERS]; // This is how the symbol should look like.

CMD:dutymodeon(playerid, params[])
{
    if(IsPlayerLuxAdmin(playerid))
    {
        new string[128];
        new pname[24];
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos( playerid, X, Y, Z );
        GetPlayerName(playerid, pname, sizeof(pname));
        playertextid[playerid] = Create3DTextLabel("Admin On Duty\n-!!- You cant kill this person! -!!-", 0xFF2800FF, 0, 0, 0, 50, 0, 1);
        Attach3DTextLabelToPlayer(playertextid[playerid], playerid, 0.0, 0.0, 0.7);
        SetPlayerHealth(playerid, 99999);
        format(string, sizeof(string), "[ADMIN] Admin %s Is now on Duty mode!", pname);
        SendClientMessageToAll(COLOR_RED, string);
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "[ERROR] {00FC15}You need to be admin!");
    }
    return 1;
}
CMD:dutymodeoff(playerid, params[])
{
    if(IsPlayerLuxAdmin(playerid))
    {
        Delete3DTextLabel(playertextid[playerid]);
        SetPlayerHealth(playerid, 99999);
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "[ERROR] {00FC15}You need to be admin!");
    }
    return 1;
}
Thanks! Works
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)