SA-MP Forums Archive
Tag Mismatch, Textdraws - 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: Tag Mismatch, Textdraws (/showthread.php?tid=547637)



Tag Mismatch, Textdraws - RedFusion - 23.11.2014

I keep getting these warnings when i compile:
warning 213: tag mismatch

pawn Код:
enum TOOLBAR_ELEMENTS
{
    TOOLBAR_VEHICLE,
    TOOLBAR_OBJECT,
    TOOLBAR_PICKUP,
    TOOLBAR_SAVE,
    TOOLBAR_OPEN,
    TOOLBAR_NEW,
    TOOLBAR_VIEW,
    TOOLBAR_INFO
}
Text: ToolbarTD[TOOLBAR_ELEMENTS][TOOLBAR_TYPES],

pawn Код:
for(new i; i < TOOLBAR_ELEMENTS; i ++) // Tag Mismatch



Re: Tag Mismatch, Textdraws - UltraScripter - 23.11.2014

pawn Код:
for(new 0 = i; i < TOOLBAR_ELEMENTS; i++)



Re: Tag Mismatch, Textdraws - Misiur - 24.11.2014

@UltraScripter: Wtf?

@OP: You encountered a strong tag. Change it's type to "no type"
pawn Код:
for(new 0 = i; i < _:TOOLBAR_ELEMENTS; i++)



Re: Tag Mismatch, Textdraws - RedFusion - 24.11.2014

Quote:
Originally Posted by Misiur
Посмотреть сообщение
@UltraScripter: Wtf?

@OP: You encountered a strong tag. Change it's type to "no type"
pawn Код:
for(new 0 = i; i < _:TOOLBAR_ELEMENTS; i++)
cheers


AW: Tag Mismatch, Textdraws - BigETI - 24.11.2014

Or simply do
pawn Код:
enum _:TOOLBAR_ELEMENTS
{
    TOOLBAR_VEHICLE,
    TOOLBAR_OBJECT,
    TOOLBAR_PICKUP,
    TOOLBAR_SAVE,
    TOOLBAR_OPEN,
    TOOLBAR_NEW,
    TOOLBAR_VIEW,
    TOOLBAR_INFO
}