stupid tag mismatch - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: stupid tag mismatch (
/showthread.php?tid=71090)
stupid tag mismatch -
StrickenKid - 29.03.2009
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!
Re: stupid tag mismatch -
Sandra18[NL] - 29.03.2009
Health and armour are floats, so use
dini_FloatSet insteas of
dini_IntSet
Re: stupid tag mismatch -
StrickenKid - 29.03.2009
ohh ok thanks!