SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 19/05/2020, 12:34 AM   #1
TheOliver
Big Clucker
 
Join Date: Apr 2020
Posts: 94
Reputation: 0
Default warning 213: tag mismatch

Hello, I have some warnigs that I get, but I do not know how to remove them

Quote:
C:\Users\Locucion\Desktop\servidores de samp\competitive_dm\gamemodes\DMC.pwn(736) : warning 213: tag mismatch
C:\Users\Locucion\Desktop\servidores de samp\competitive_dm\gamemodes\DMC.pwn(737) : warning 213: tag mismatch
C:\Users\Locucion\Desktop\servidores de samp\competitive_dm\gamemodes\DMC.pwn(73 : warning 213: tag mismatch
C:\Users\Locucion\Desktop\servidores de samp\competitive_dm\gamemodes\DMC.pwn(739) : warning 213: tag mismatch
C:\Users\Locucion\Desktop\servidores de samp\competitive_dm\gamemodes\DMC.pwn(740) : warning 213: tag mismatch
C:\Users\Locucion\Desktop\servidores de samp\competitive_dm\gamemodes\DMC.pwn(741) : warning 213: tag mismatch
C:\Users\Locucion\Desktop\servidores de samp\competitive_dm\gamemodes\DMC.pwn(742) : warning 213: tag mismatch
C:\Users\Locucion\Desktop\servidores de samp\competitive_dm\gamemodes\DMC.pwn(743) : warning 213: tag mismatch
C:\Users\Locucion\Desktop\servidores de samp\competitive_dm\gamemodes\DMC.pwn(744) : warning 213: tag mismatch
C:\Users\Locucion\Desktop\servidores de samp\competitive_dm\gamemodes\DMC.pwn(745) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


10 Warnings.
here the line of code

Quote:
case DIALOGO_SKINS:
{
if(response) // If they clicked 'Select' or double-clicked a weapon
{
// Give them the weapon
switch(listitem)
{
case 0:
case 1:
{
TextDrawShowForPlayer(playerid, skV1[playerid][0]);
TextDrawShowForPlayer(playerid, skV1[playerid][1]);
TextDrawShowForPlayer(playerid, skV1[playerid][2]);
TextDrawShowForPlayer(playerid, skV1[playerid][3]);
TextDrawShowForPlayer(playerid, skV1[playerid][4]);
TextDrawShowForPlayer(playerid, skV1[playerid][5]);
TextDrawShowForPlayer(playerid, skV1[playerid][6]);
TextDrawShowForPlayer(playerid, skV1[playerid][7]);
TextDrawShowForPlayer(playerid, skV1[playerid][8]);
TextDrawShowForPlayer(playerid, skV1[playerid][9]);
}
}
}
return 1;
}
TheOliver is offline   Reply With Quote
Old 19/05/2020, 12:38 AM   #2
ChandraLouis
Banned
 
Join Date: Mar 2013
Location: Indonesia
Posts: 438
Reputation: 37
Default Re: warning 213: tag mismatch

Try:
pawn Code:
case DIALOGO_SKINS:
{
    if(response) // If they clicked 'Select' or double-clicked a weapon
    {
    // Give them the weapon
        switch(listitem)
        {
            case 0:
            {
                // CODE
            }
            case 1:
            {
                TextDrawShowForPlayer(playerid, skV1[playerid][0]);
                TextDrawShowForPlayer(playerid, skV1[playerid][1]);
                TextDrawShowForPlayer(playerid, skV1[playerid][2]);
                TextDrawShowForPlayer(playerid, skV1[playerid][3]);
                TextDrawShowForPlayer(playerid, skV1[playerid][4]);
                TextDrawShowForPlayer(playerid, skV1[playerid][5]);
                TextDrawShowForPlayer(playerid, skV1[playerid][6]);
                TextDrawShowForPlayer(playerid, skV1[playerid][7]);
                TextDrawShowForPlayer(playerid, skV1[playerid][8]);
                TextDrawShowForPlayer(playerid, skV1[playerid][9]);
            }
        }
    }
    return 1;
}
ChandraLouis is offline   Reply With Quote
Old 19/05/2020, 06:35 AM   #3
GameOvr
Huge Clucker
 
GameOvr's Avatar
 
Join Date: Jun 2018
Posts: 296
Reputation: 9
Default Re: warning 213: tag mismatch

You have to use PlayerTextDrawShow for PlayerTexts not TextDrawShowForPlayer
__________________
GameOvr is offline   Reply With Quote
Old 19/05/2020, 06:37 AM   #4
SharpenBlade
Huge Clucker
 
Join Date: May 2020
Posts: 202
Reputation: 25
Default Re: warning 213: tag mismatch

How you defined skV1 variable?
If you want a global textdraw use this:
PHP Code:
new Text:skV1[MAX_PLAYERS][10]; 
Otherwise(player textdraw):
PHP Code:
new PlayerText:skV1[MAX_PLAYERS][10]; 
SharpenBlade is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
callbacks.pwn(1213) : warning 213: tag mismatch callbacks.pwn(1217) : warning 213: tag mismatch callbacks.pwn(1221) : wa Dawkin Scripting Help 14 30/07/2018 12:58 PM
Warning 213: Tag mismatch and warning 202: number of arguments does not match definition ConnorG Scripting Help 5 12/01/2018 02:32 AM
warning 213: tag mismatch Sunciits Scripting Help 3 24/12/2014 01:43 PM


All times are GMT. The time now is 10:30 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.