Tagmismatch?? What is it?
#1

Hello! So Basically I am putting the command /armour, that is:

pawn Код:
CMD:armour(playerid, params[])
{

    if(pInfo[playerid][pAdminLevel] > 1)
    {
        new id,amount;
        if(sscanf(params,"ui",id,amount)) return SendClientMessage(playerid, COLOR_RED1, "[ ! ] USAGE: /armour <playerid> <amount>");
        if(!IsPlayerConnected(id))return SendClientMessage (playerid, COLOR_WHITE, "[ ! ] ERROR: Invalid Player Id");
        SendClientMessage(playerid, COLOR_RED1, "[ ! ] Your Armour Set !");
        SetPlayerArmour(id,amount);
    }
    return 1;
}
But Is giving two warnings on the Same Line.

pawn Код:
E:\SCRIPT\gamemodes\Dafuq.pwn(713) : warning 213: tag mismatch
E:\SCRIPT\gamemodes\Dafuq.pwn(713) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
Line Number 713 is"

pawn Код:
if(pInfo[playerid][pAdminLevel] > 1)
Thanks in Advance.
Reply
#2

How pInfo is defined?
Reply
#3

It is defined like that:

pawn Код:
new pInfo[MAX_PLAYERS][PlayerInfo];



enum pInfo_
{
    bool:pAdminColor,
    bool:pAdminLevel,
}
Reply
#4

Bool has only values of true or false, and you need normal number. Change boolAdminLevel to pAdminLevel
Reply
#5

So.. your enum is PlayerInfo or pInfo_?

By the way, using tag bool: makes it boolean and can get values false, true only.

Just use it as AdminLevel.
Reply
#6

Still Receiving the Same Warning.
Reply
#7

Fixed. Thank you All !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)