stupid tag mismatch
#1

why am i getting this tag mismatch

pawn Код:
new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    new AccountStr[100];
    format(AccountStr, sizeof(AccountStr), PlayerFile, pname);
   
    new Cash;
    new Float:Health;
    new Float:Armour;
    new Score;
    new Skin;
   
    Cash = GetPlayerMoney(playerid);
    GetPlayerHealth(playerid,Health);
    GetPlayerArmour(playerid,Armour);
    Score = GetPlayerScore(playerid);
    Skin = GetPlayerSkin(playerid);
   
    dini_IntSet(AccountStr, "money", Cash);
    dini_IntSet(AccountStr, "health", Health);
    dini_IntSet(AccountStr, "armour", Armour);
    dini_IntSet(AccountStr, "score", Score);
   
    dini_IntSet(AccountStr, "skin", Skin);
    dini_IntSet(AccountStr, "class", gClass[playerid]);
    dini_IntSet(AccountStr, "skill", gSkill[playerid]);
Код:
C:\Users\Ethan\Desktop\SAMPSERVER\gamemodes\UCnR.pwn(2475) : warning 213: tag mismatch
C:\Users\Ethan\Desktop\SAMPSERVER\gamemodes\UCnR.pwn(2476) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
LINE 2475:
Код:
	dini_IntSet(AccountStr, "health", Health);
LINE 2476:
Код:
	dini_IntSet(AccountStr, "armour", Armour);
thanks for any help!
Reply
#2

Health and armour are floats, so use dini_FloatSet insteas of dini_IntSet
Reply
#3

ohh ok thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)