tag mismatch
#1

Код:
new skin = GetPlayerSkin(playerid);
Код:
if(pInfo[playerid][KiSize][skin] == 0.0) pInfo[playerid][KiSize][skin] = 1.5;
	  else pInfo[playerid][KiSize][skin] += 0.5;
Код:
F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(1514) : warning 213: tag mismatch
F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(1527) : warning 213: tag mismatch
Reply
#2

I assume your array doesn't hold more than two collums, you are trying to call for three which causes the tag mismatch warning.

Can you show me your PlayerInfo enum please? Only the part that defines "skin".
Reply
#3

Show your variable declaration and its enumeration...

And isn't it supposed to be defined like this?
pInfo[MAX_PLAYERS][<the enum where SKIN is located>][<the variable where KiSize is located]
so you use this instead?
pawn Код:
pInfo[playerid][skin][KiSize]
Because i'm sure you shouldn't change "skin" id with a floating value right (like what you did above) and instead using "KiSize" for the floating value right? (as it's a size)
so it's should be declared like this:
pawn Код:
//lets says that you are having enum like this:
enum E_SKIN_DATA
{
        Float:KiSize,
        // etc
};
new pInfo[MAX_PLAYERS][300][SKIN_DATA]; // 300 for the skins
// then use it like this
Float:KiSize

OR if the form is true "KiSize" then "skin" (where a player can hold every 300 skins size, eh for what?)
it should be declared like this:
pawn Код:
Float:KiSize[300]
as max skin id is 299


The 2 options above depends on how your enumeration looks like,


But if you are looking for a single SKIN and single KiSize, then you should combine it like this:
pawn Код:
// lets says that you are having enum like this:
enum E_PLAYER_DATA // change to your player info enum
{
        // your other data
        skin,
        Float:KiSize,
        // your other data
};
new pInfo[MAX_PLAYERS][E_PLAYER_DATA];
// then use it like this:
pInfo[playerid][skin] = GetPlayerSkin(playerid);
// and for the size:
pInfo[playerid][KiSize] = 1.5;
Reply
#4

Код:
KiMax[MAX_SKINS],
with this i get only 2 warnings of mismatch
but when i try
Код:
Float:KiMax[MAX_SKINS],
Код:
F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(622) : warning 213: tag mismatch
F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(1525) : warning 213: tag mismatch
F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(1538) : warning 213: tag mismatch
F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(3096) : warning 213: tag mismatch
line 622
Код:
	INI_Int("KiMax[MAX_SKINS]",pInfo[playerid][KiMax]);
line 1525
Код:
if(pInfo[playerid][KiSize][skin] == 0.0) pInfo[playerid][KiSize][skin] = 1.5;
line 1538
Код:
if(pInfo[playerid][KiSize][skin] == 0.5) pInfo[playerid][KiSize][skin] = 0.5;
line 3096
Код:
new KiGiocatore = pInfo[playerid][KiMax][skin];
the skin
Код:
new skin = GetPlayerSkin(playerid);
and i use y_ini
Reply
#5

I cannot answer some of your questions above, PLEASE:
Quote:
Originally Posted by Mionee
Посмотреть сообщение
Can you show me your PlayerInfo enum please? Only the part that defines "skin".
Quote:
Originally Posted by Robo_N1X
Посмотреть сообщение
Show your variable declaration and its enumeration...
But only one that can be solved:
Quote:
Originally Posted by AroseKhanNaizi
Посмотреть сообщение
Код:
KiMax[MAX_SKINS],
with this i get only 2 warnings of mismatch
but when i try
Код:
Float:KiMax[MAX_SKINS],
Код:
F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(622) : warning 213: tag mismatch
F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(1525) : warning 213: tag mismatch
F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(1538) : warning 213: tag mismatch
F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(3096) : warning 213: tag mismatch
line 622
Код:
	INI_Int("KiMax[MAX_SKINS]",pInfo[playerid][KiMax]);
line 1525
Код:
if(pInfo[playerid][KiSize][skin] == 0.0) pInfo[playerid][KiSize][skin] = 1.5;
line 1538
Код:
if(pInfo[playerid][KiSize][skin] == 0.5) pInfo[playerid][KiSize][skin] = 0.5;
line 3096
Код:
new KiGiocatore = pInfo[playerid][KiMax][skin];
the skin
Код:
new skin = GetPlayerSkin(playerid);
and i use y_ini
It doesn't matter if you are using y_ini, the way you declare variable with value like 0.5 or 1.5 should be with Float: tag
But for line 622, it should be:
pawn Код:
INI_Float("KiMax[MAX_SKINS]",pInfo[playerid][KiMax]);
However i doubt you will get number of MAX_SKINS because it will just written like this:
Код:
KiMax[MAX_SKINS] = value
It should be like this:
pawn Код:
INI_Float("KiMax["MAX_SKINS"]", pInfo[playerid][KiMax]);
Reply
#6

i think i tried but i can't get it the line 622 was fixed
but these
if(pInfo[playerid][KiSize][skin] == 0.5) pInfo[playerid][KiSize][skin] = 0.5;
are still not fixed same warning i tried to remove the [skin] but no use
Reply
#7

can u show ur enum of KiSize and skin
Reply
#8

Код:
enum PlayerInfo
{
  Pass[129], //User's password
  Adminlevel, //User's admin level
  VIPlevel, //User's vip level
  Banned,
  ball1,
  ball2,
  ball3,
  ball4,
  ball5,
  ball6,
  ball7,
  Score,
  DragonRadar,
  Kills, //User's kills
  Deaths, //User's deaths
  Jailed, //was user jailed or not
  JailTime, // Jail Timer
  pBanexp,
  pBanres[100],
  pBanPerm,
  pBanAdmin[20],
  pBanIPP[20],
  style[MAX_SKINS],
  attack[MAX_SKINS],
  speed[MAX_SKINS],
  HEALTHMax[MAX_SKINS],
  Float:KiMax[MAX_SKINS],
  KiSize[MAX_SKINS],
  dsword,
  dBazooka,
  dknife,
};

new pInfo[MAX_PLAYERS][PlayerInfo];
and i already showed the skin one

max
Код:
#define MAX_SKINS              299
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)