SA-MP Forums Archive
Warning 213: 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)
+--- Thread: Warning 213: tag mismatch (/showthread.php?tid=445349)



Warning 213: tag mismatch - Vlad64 - 20.06.2013

Код:
C:\Users\Vlad\Desktop\Shits\Samp Projects\Xstunts\gamemodes\Xstunts.pwn(32889) : warning 213: tag mismatch
C:\Users\Vlad\Desktop\Shits\Samp Projects\Xstunts\gamemodes\Xstunts.pwn(32890) : warning 213: tag mismatch
C:\Users\Vlad\Desktop\Shits\Samp Projects\Xstunts\gamemodes\Xstunts.pwn(32891) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
The command:

pawn Код:
CMD:plantbomb(playerid)
{
    if(pInfo[playerid][Bombs] == 0)
    {
        SCM(playerid,COLOR_RED,"You don't have any bomb! Use /buybomb to buy one!");
    }
    else
    {
        if(BombPlanted[playerid] == 1)
        {
            SCM(playerid,COLOR_RED,"You already planted a bomb! Use /removebomb to remove it or /detonate to detonate it!");
        }
        else
        {
            new file[100],Name[MAX_PLAYER_NAME]; GetPlayerName(playerid,Name,MAX_PLAYER_NAME);
            format(file,sizeof(file),PlayerFile,Name);
            pInfo[playerid][Bombs]--;
            new Float:xpos, Float:ypos, Float:zpos;
            GetPlayerPos(playerid,xpos,ypos,zpos);
            dini_IntSet(file,"BombXpos",xpos); // Line 32889
            dini_IntSet(file,"BombYpos",ypos); // Line 32890
            dini_IntSet(file,"BombZpos",zpos); // Line 32891
            BombX[playerid] = dini_Int(file,"BombXpos");
            BombY[playerid] = dini_Int(file,"BombYpos");
            BombZ[playerid] = dini_Int(file,"BombZpos");
            BombPlanted[playerid] = 1;
            SCM(playerid,COLOR_YELLOW,"Bomb planted! Use /detonate to detonate the bomb!");
        }
    }
    return 1;
}
Any help please?


Re: Warning 213: tag mismatch - BossZk - 20.06.2013

..

edit: here, try using dini_FloatSet instead of dini_IntSet maybe that'll fix it


Re: Warning 213: tag mismatch - SwisherSweet - 20.06.2013

Код:
            dini_FloatSet(file,"BombXpos",xpos); // Line 32889
            dini_FloatSet(file,"BombYpos",ypos); // Line 32890
            dini_FloatSet(file,"BombZpos",zpos); // Line 32891
edited i misspelled!!!


Re: Warning 213: tag mismatch - Vlad64 - 20.06.2013

Quote:
Originally Posted by Aveger
Посмотреть сообщение
Код:
            dini_FloatSet(file,"BombXpos",xpos); // Line 32889
            dini_FloatSet(file,"BombYpos",ypos); // Line 32890
            dini_FloatSet(file,"BombZpos",zpos); // Line 32891
edited i misspelled!!!
Quote:
Originally Posted by BossZk
Посмотреть сообщение
..

edit: here, try using dini_FloatSet instead of dini_IntSet maybe that'll fix it
Thanks to both of you I really needed to repair that warning